Skip to main content
POST
Send email

Authorizations

Authorization
string
header
required

Workspace-scoped Dench API key from workspace settings. This is the same key used by DENCH_API_KEY in sandboxes.

Body

application/json
fromEmail
string
required

Verified sender mailbox.

to
object[]
required

Primary recipients. to+cc+bcc is capped at 50.

Minimum array length: 1
subject
string
required
fromName
string

Display name override.

cc
object[]
bcc
object[]
replyToEmail
string
htmlBody
string

HTML body. Provide htmlBody and/or textBody.

textBody
string
replyToMessageId
string

Dench messageId or RFC 5322 Message-ID to thread this send as a reply.

configurationSetName
string

Response

Successful response

ok
boolean
required
messageId
string
required

Dench message id for dench email message status.

providerMessageId
string
required
recipients
number
required
status
string
required
Allowed value: "sent"
message
string
required
rfcMessageId
string

RFC 5322 Message-ID usable for reply threading.

inReplyTo
string