Contents
Email sending, templates, and delivery
Create a ban for an email address in an account. Bans prevent inbound or outbound email to the address. More
Body application/json
Responses
Remove a ban on an email address, allowing emails to be sent to it again. More
Responses
Search email message events using Lucene-style query syntax.
Supported fields:
event_type:- Filter by event type (delivered, opened, bounced, etc.)email_message_id:- Filter by specific message IDoccurred_at:- Filter by time range usingstart..end
Time range examples:
occurred_at:2026-01-01..2026-01-31occurred_at:2026-01-01T00:00:00Z..2026-01-31T23:59:59Zoccurred_at:..2026-01-31T23:59:59Z(open start)occurred_at:2026-01-01T00:00:00Z..(open end)
Operators:
AND- Both conditions must matchOR- Either condition must match*- Wildcard (e.g.,event_type:deliv*)
Body application/json
Responses
Delete email message events matching a Lucene-style query. Use dry_run=true to preview what would be deleted.
Supported fields:
event_type:- Filter by event typeemail_message_id:- Filter by specific message IDoccurred_at:- Filter by time range usingstart..end
Time range examples:
occurred_at:2026-01-01..2026-01-31occurred_at:..2026-01-31T23:59:59Zoccurred_at:2026-01-01T00:00:00Z..
Operators:
AND- Both conditions must matchOR- Either condition must match*- Wildcard (e.g.,event_type:deliv*)
Safety:
- Use
dry_run: truefirst to verify the query matches expected events - The
limitparameter caps deletions (default 100)
Body application/json
Responses
Search email messages using Lucene-style query syntax.
Supported fields:
from:- Search sender email/nameto:- Search recipient email/namesubject:- Search subject linebody:- Search body texthostname:- Filter by hostnamedirection:- Filter by direction (in/out)
Operators:
AND- Both conditions must matchOR- Either condition must match*- Wildcard (e.g.,from:*@example.com)
Examples:
from:john@example.comsubject:invoice AND direction:into:*@acme.com OR to:*@corp.com
Body application/json
Responses
Delete email messages matching a Lucene-style query. Use dry_run=true to preview what would be deleted.
Supported fields:
from:- Search sender email/nameto:- Search recipient email/namesubject:- Search subject linebody:- Search body texthostname:- Filter by hostnamedirection:- Filter by direction (in/out)
Operators:
AND- Both conditions must matchOR- Either condition must match*- Wildcard (e.g.,from:*@example.com)
Safety:
- Use
dry_run: truefirst to verify the query matches expected messages - The
limitparameter caps deletions (default 100)
Body application/json
Responses
Send an email via the configured mail infrastructure. The email is queued as a job and delivered asynchronously. More Email
Body application/json
Responses
Create a new email template for an account. Templates support {{variable}} placeholders for dynamic content substitution. More Email
Body application/json
Responses
Body application/json
Responses
Delete an application email template mapping. More
Responses
Get an application email template mapping by ID. More
Responses
Update an application email template mapping. More
Body application/json
Responses
List email template mappings for an application. More
Responses
Map an email template to an event type for an application. More
Body application/json
Responses
Search application email template mappings using Lucene syntax. More
Body application/json
Responses
Send an application event email using configured application template mappings, with fallback to defaults when no mapping is available. More
Body application/json
Responses
Get an email message by its email message ID. More
Responses
Update an unsent outbound email message using JSON Merge Patch (RFC 7396). More
Body application/json
Responses
Delete an email template. More
Responses
Get an email template by its email template ID. More
Responses
Update properties of an email template by its ID within an account via RFC7396. Used to edit an email template. More