Skip to main content
POST

Authorizations

Authorization
string
header
required

An API key from the dashboard. sk_live_… sends; sk_test_… validates and returns ids without sending.

Headers

Idempotency-Key
string

Up to 255 characters. The same key and body return the same response for 24 hours.

Maximum string length: 255

Body

application/json
from
string
required

A bare address or Name <address> on a verified domain, or the shared test address onboarding@sendbaze.com (own addresses only).

Example:

"Yourshop <orders@yourshop.co.za>"

to
required

One address or up to 50.

cc

One address or up to 50.

bcc

One address or up to 50.

replyTo
string<email>
subject
string

Required unless templateId is set, in which case it overrides the template's subject.

Maximum string length: 998
html
string

HTML body, up to 2 MB. One of html, text or templateId is required.

text
string

Plain-text body, up to 2 MB.

templateId
string

Render a template (its current version) instead of passing html or text.

variables
object

String, number or boolean values keyed by placeholder name.

attachments
object[]

Up to 10 files, 3 MB decoded in total.

Maximum array length: 10
headers
object

Custom headers. Standard headers such as From, To and Subject cannot be overridden.

tags
string[]
Maximum array length: 10
Maximum string length: 64
class
enum<string>
default:transactional
Available options:
transactional,
marketing

Response

Queued

id
string
required
Example:

"em_01j9x7k2r4m8q3v5n6b7c8d9e0"

status
enum<string>
required
Available options:
queued
mode
enum<string>
required

test when sent with an sk_test_ key: validated and stored, never delivered.

Available options:
live,
test