POST /smtp/email
Send a transactional emailServers
- https://api.brevo.com/v3
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
htmlContent |
String | No |
HTML body content of the email. Required when |
messageVersions[] |
Array | No |
Array of message version objects for sending customized email variants. The |
messageVersions[].to[] |
Array | Yes |
Array of recipient objects. Each object contains an email address and an optional display name. |
messageVersions[].to[].email |
String | Yes |
Email address of the recipient |
messageVersions[].to[].name |
String | No |
Display name of the recipient. Maximum length is 70 characters. |
messageVersions[].params |
Object | No |
Key-value pairs for template variable substitution. Only applicable when the template uses the New Template Language format. |
messageVersions[].htmlContent |
String | No |
HTML body content of the email. Required when |
messageVersions[].cc[] |
Array | No |
Array of CC recipient objects. Each object contains an email address and an optional name. |
messageVersions[].cc[].email |
String | Yes |
CC recipient email address |
messageVersions[].cc[].name |
String | No |
Display name of the CC recipient. Maximum length is 70 characters. |
messageVersions[].bcc[] |
Array | No |
Array of BCC recipient objects. Each object contains an email address and an optional name. |
messageVersions[].bcc[].email |
String | Yes |
BCC recipient email address |
messageVersions[].bcc[].name |
String | No |
Display name of the BCC recipient. Maximum length is 70 characters. |
messageVersions[].replyTo |
Object | No |
Reply-to email address (required) and optional display name. Recipients will use this address when replying to the email. |
messageVersions[].replyTo.email |
String | Yes |
Email address in reply to |
messageVersions[].replyTo.name |
String | No |
Display name for the reply-to address. Maximum length is 70 characters. |
messageVersions[].textContent |
String | No |
Plain text body content of the email. Ignored when |
messageVersions[].subject |
String | No |
Email subject line for this message version |
replyTo |
Object | No |
Reply-to email address (required) and optional display name. Recipients will use this address when replying to the email. |
replyTo.email |
String | Yes |
Email address in reply to |
replyTo.name |
String | No |
Display name for the reply-to address. Maximum length is 70 characters. |
textContent |
String | No |
Plain text body content of the email. Ignored when |
sender |
Object | No |
Sender information. Required when |
sender.id |
Integer | No |
Sender identifier. Required when |
sender.email |
String | No |
Sender email address. Required when |
sender.name |
String | No |
Display name of the sender. Maximum length is 70 characters. Only applicable when |
scheduledAt |
String | No |
UTC date-time when the email should be sent (format: YYYY-MM-DDTHH:mm:ss.SSSZ). Include timezone information in the date-time value. Scheduled emails may be delayed by up to 5 minutes. |
subject |
String | No |
Email subject line. Required when |
attachment[] |
Array | No |
Array of attachment objects. Each attachment must include either an absolute URL (no local file paths) or base64-encoded content, along with the attachment filename. The |
attachment[].name |
String | No |
Attachment filename. Required when |
attachment[].url |
String | No |
Absolute URL of the attachment. Local file paths are not supported. |
attachment[].content |
String | No |
Base64-encoded attachment data |
to[] |
Array | No |
Array of recipient objects. Each object contains an email address and an optional display name. Required when |
to[].email |
String | Yes |
Email address of the recipient |
to[].name |
String | No |
Display name of the recipient. Maximum length is 70 characters. |
params |
Object | No |
Key-value pairs for template variable substitution. Only applicable when the template uses the New Template Language format. |
batchId |
String | No |
UUIDv4 identifier for the scheduled batch of transactional emails. If omitted, a valid UUIDv4 batch identifier is automatically generated. |
templateId |
Integer | No |
Template identifier |
cc[] |
Array | No |
Array of CC recipient objects. Each object contains an email address and an optional name. |
cc[].email |
String | Yes |
CC recipient email address |
cc[].name |
String | No |
Display name of the CC recipient. Maximum length is 70 characters. |
bcc[] |
Array | No |
Array of BCC recipient objects. Each object contains an email address and an optional name. |
bcc[].email |
String | Yes |
BCC recipient email address |
bcc[].name |
String | No |
Display name of the BCC recipient. Maximum length is 70 characters. |
tags[] |
Array | No |
Array of tags for categorizing and filtering emails |
headers |
Object | No |
Custom email headers (non-standard headers) to include in the email. The |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.