Send mail
Send transactional mail
Use this endpoint to send transactional email.Request Requirements
You must use one of the following options to send email. Each option has its own required fields:-
Option 1: Send raw email content.
- Required fields:
email_content: The rich HTML or text content of the email.sender: Email address of the sender.subject: Subject line of the email.to: The recipient’s email address.
- Required fields:
-
Option 2: Use a custom template.
- Required fields:
template_uuid: The UUID of the custom template.sender: Email address of the sender.subject: Subject line of the email.to: The recipient’s email address.
- Required fields:
-
Option 3: Use a predefined transactional template.
- Required fields:
transactional_id: The ID of the transactional template to use.to: The recipient’s email address.
- Required fields:
Example Payloads
- Raw Content
- Custom Template
- Transactional Template
Response fields
| Property | Description |
|---|---|
| 201 | Transactional mails sent successfully |
| 400 | Bad request |
| 401 | Request authentication |
| 403 | Too many bad requests. Temparory block |
| 406 | Missing accept header. For example : Accept: application/json |
| 429 | Too many requests/ Rate limit exceeded |
| 500 | Internal server error |
Authorizations
Use your API key with the 'Bearer ' prefix
Body
- Raw Content
- Custom Template
- Transactional Template
API payload when email content is provided.
Email content
"<h1>Hello John,</h1><p>Welcome to our service!</p>"
From email address
"sender@example.com"
Email subject
"Hello from us"
Email address of the recipient.
Valid email address.
Object containing key-value pairs to replace merge tags in the email template
Attachment
Remote attachments
Add recipient to contact
Date and time when the email should be sent (ISO 8601 format)
"2023-12-31T23:59:59Z"
Enable tracking of link clicks within the email.
Enable tracking of email opens using tracking pixels.
Send emails even to addresses that previously bounced.
Send emails to recipients even if they have unsubscribed.
Enable view in browser
Include unsubscribe link in the email footer
Email address of the CC recipient.
Array of strings to tag the message with.
["tag1", "tag2"]