postNotifySendEmailWithHttpInfo method
Delivers one transactional email through the caller org's own provider credential.
Delivers one transactional email through the caller org's own provider credential. It is the channel-pinned form of the generic send: identical in every respect except that the channel is fixed to email, OVERRIDING whatever the body names — so a body that says sms still goes out as mail. The provider is the org's own email credential from KMS (Twilio Email, then SMTP), resolved for the validated principal's org; an unauthenticated caller gets 401. Subject is carried on the email channel only.
Note: This method returns the HTTP Response.
Parameters:
- NotifySend notifySend (required):
Implementation
Future<Response> postNotifySendEmailWithHttpInfo(NotifySend notifySend,) async {
// ignore: prefer_const_declarations
final path = r'/v1/notify/send/email';
// ignore: prefer_final_locals
Object? postBody = notifySend;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}