Skip to content

Send one transactional email

Requires email:send in a project-scoped key supplied as X-API-Key. Server-side only. Select an eligible verified project identity and one authorized recipient. Reuse Idempotency-Key with the same credential and payload to retry a logical send. Browser-origin requests are refused.

projectId
required
string
Idempotency-Key
string
<= 128 characters /^[A-Za-z0-9._:-]+$/
Media typeapplication/json
object
identityId
required
string
<= 128 characters
to
required
string format: email
<= 254 characters
subject
required
string
<= 256 characters
html
required
string
<= 120000 characters
Examplegenerated
json
{
"identityId": "example",
"to": "hello@example.com",
"subject": "example",
"html": "example"
}

Success

Media typeapplication/json
object
ok
boolean
messageId
string | null
replayed
boolean

Invalid payload or idempotency key

Missing or invalid scoped credential

Required scope is missing

Project or requested resource not found

Idempotency key conflict or delivery pending/unknown

Request exceeds 128 KiB

Sender identity unavailable or recipient suppressed

Send quota exceeded

Delivery failed

Send unavailable