Skip to main content
POST
Send an email

Authorizations

Authorization
string
header
required

API key authentication. Use your API key as the bearer token.

Body

application/json
to
required
from
string

Sender email. Accepts '[email protected]' or 'Name [email protected]' format. Required if not using a template with from_email set.

Pattern: ^(?:[^<]+<[^@\s]+@[^@\s]+\.[^@\s]+>|[^@\s]+@[^@\s]+\.[^@\s]+)$
Example:

"John Doe <[email protected]>"

cc

CC recipients

bcc

BCC recipients

subject
string

Email subject. Required if not using a template.

Minimum string length: 1
Example:

"Hello World"

html
string
Example:

"<h1>Hello</h1>"

text
string
Example:

"Hello"

template_id
string<uuid>

Template ID. When provided, template values are used for subject, html, text, from, reply_to, and preview_text.

Example:

"123e4567-e89b-12d3-a456-426614174000"

template_data
object

Variables to render in the template. Must include all variables defined in the template.

Example:
tags
object
Example:
attachments
object[]
replyTo
object
reply_to_email
string<email>

Reply-To email address. Overrides template reply_to if provided.

preview_text
string

Preview text (preheader). Overrides template preview_text if provided.

Example:

"Check out our latest updates..."

scheduled_at
string<date-time>

Schedule email to be sent at this time. If not provided, email is sent immediately.

Example:

"2024-01-15T10:30:00Z"

inbox_id
string<uuid>

Inbox ID to associate with this email. If not provided, resolved from template's inbox_id.

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

Email sent successfully

success
boolean
required
Example:

true

message_id
string
required
Example:

"123e4567-e89b-12d3-a456-426614174000"

recipients
integer
required
Example:

1

scheduled_at
string<date-time>

Present when email is scheduled

Example:

"2024-01-15T10:30:00Z"

status
string

Email status: 'sent' for immediate emails, 'scheduled' for scheduled emails

Example:

"sent"