Action-based email covers triggered, one-to-one sends driven by a user action or system event — order confirmations, password resets, receipts, account alerts. Uses channel type EMAIL with message_type: MESSAGE. Charged per email, regardless of HTML length or images.

Request

string
required
Bearer <api_key>
string
UUID to prevent duplicate sends on retry.

Body — inline content

string
required
Email channel id from the dashboard. Determines the sender domain and identity.
string
required
Recipient email address. Checked against suppression lists before send.
string
required
Email subject line. Required unless the template provides it.
string
required
MESSAGE for action-based sends.
string
HTML body. Provide both html and text for maximum deliverability.
string
Plain text fallback. Used by clients that cannot render HTML.

Body — template reference

Template IDs aren’t shown in the dashboard or the API yet — send inline content.
string
Template id from the dashboard. Mutually exclusive with inline content.
string
Specific version to render. Omit to use the latest published version.
object
Variables passed into the template at render time.

Responses

string
Message id for GET /v1/messages/{id}, revoke, and webhook correlation.
string
Initial state — queued. Provider events (delivered, bounced) arrive via webhook.
string
Always basic_message for email sends. A label of the content shape only — it does not select a price.
number
The price reserved for this email, at this month’s price. Charged when the email is sent; released when it fails or is revoked.
object
The organisation’s credit after this reservation. Only for a key with billing:read whose creator is an owner or admin of the organisation — left out for every other key.
number
Same value as hold_amount.
number
1 — an email is one unit.
object