POST /v1/emails validates the request, stores the message, queues it and returns an id. The email leaves through Amazon SES in Cape Town within seconds. Delivery is asynchronous: watch the webhooks or the Logs page.
Fields
string
required
A bare address or
Name <address>. Live keys must use a verified domain or a subdomain of one, or the shared test address onboarding@sendbaze.com, which delivers to your own addresses only.string | string[]
required
One address or up to 50.
string | string[]
Up to 50. Visible to every recipient.
string | string[]
Up to 50. Hidden from other recipients.
string
Where replies go when it is not the sender.
string
Up to 998 characters. Required unless
templateId is set, in which case it overrides the template’s subject.string
HTML body, up to 2 MB. One of
html, text or templateId is required.string
Plain-text body, up to 2 MB. Send both
html and text when you can: some clients and most spam filters read the text part.object
Values for every
{{placeholder}} in the template. Requires templateId.object[]
Up to 10 files, 3 MB decoded in total. See attachments.
object
Custom headers. Names are letters, digits and dashes.
From, To, Subject, Date, Message-ID, DKIM-Signature and the other standard headers cannot be overridden.string[]
Up to 10 tags of 64 characters. Returned on the message and on webhook events; filter the logs and
GET /v1/emails by tag.'transactional' | 'marketing'
default:"transactional"
See email types. Marketing mail gets unsubscribe headers.
Response
mode is test when the request used an sk_test_ key: the message was validated and stored but never sent.
Before anything is queued
The API refuses, with nothing stored, when:- the
fromdomain is not verified for your organisation (403 domain_not_verified) - a recipient is on a suppression list (
422 recipient_suppressed, naming each address) - your plan’s monthly allowance is used up and nothing else covers the send (
402 allowance_exhausted) - sending is paused by the complaint monitor (
423 org_paused)
What happens next
- queued: stored and handed to a worker, usually within a second.
- sent: accepted by Amazon SES. The
sentevent carries the SES message id. - delivered, bounced or complained: reported by the receiving server, usually within seconds, sometimes hours for greylisting mail servers.
- failed: the worker gave up after retries;
errorsays why and, for SMS, credits are refunded.
GET /v1/emails/{id} for its status and full timeline, or list and filter with GET /v1/emails.