Skip to main content
POST
cURL
Guide: Sending email

Authorizations

Authorization
string
header
required

Authorization: Bearer . An application key (tk_live_, tk_test_) has full access, which covers every product and any product added later, or custom access, chosen when the key is created: one or more of the scopes verify:check, verify:send (includes verify:check), notifications:read, notifications:send (includes notifications:read), email:read, email:send (includes email:read), email:manage (includes email:send), webhooks:manage, email:inbound, notifications:templates (includes notifications:read), chat:menus, chat:attendant. No key made on the API keys page holds notifications:templates, full access included: the three template writes answer such a key 403 insufficient_scope. A connected app's key holds it. Nor chat:menus: the five conversation menu operations answer such a key 403 insufficient_scope, and a connected app's key holds it once the client approved it. Nor chat:attendant: the five auto-attendant operations answer such a key 403 insufficient_scope too, and a connected app's key holds it once the client approved it. email:manage and webhooks:manage are held only by a key someone chose them for: a full-access key, old or new, never holds them. email:inbound, which reads, deletes and forwards received e-mail, is opt-in on every key, full access included: a key holds it only when it was turned on when the key was created. A call outside the key's access answers 403 insufficient_scope and names the scope it needs in the WWW-Authenticate response header. A partner key (tk_partner_) always has full access. Whatever its access, a key is a server-side secret.

Headers

Idempotency-Key
string

A 1 to 256 printable-ASCII-character key you generate, scoped to your API key, as on WhatsApp messages. Replaying the same key with the same message returns a 202 for that message, its status as it stands now, with the response header Idempotent-Replayed: true: nothing is sent or charged again. The same key with a different message (recipients, subject, body, reply-to, headers, tags, time or files) answers 409 idempotency_key_reused. A message that fails before it is sent releases the key, and a key is free again after 24 hours.

Body

application/json
application
string

Partner keys only: the partner's own id (external_id) for one of its own applications. The legacy name service is accepted identically. An application key leaves it out.

from

{ "name": "…", "address": "…" }, or one string, "Name <orders@acme.sa>" or "orders@acme.sa". address must be on a verified domain of this application, any local part. Omitted, name is the domain's default from name and address its default local part (no-reply unless changed) on the application's verified domain.

to

The recipients: one address as a string, or an array of them. Each is a bare address or Name <address> (the name 1 to 120 printable characters). Required unless cc or bcc holds an address. Together to, cc and bcc hold at most 50 addresses (counted before duplicates are removed); an address given twice, in any case, is kept once, in the first of to, cc, bcc that holds it.

cc

Copies, as to: shown to every recipient.

bcc

Blind copies, as to: never shown to the other recipients.

reply_to

Where replies go: one address, or an array of up to 10, on your domain or not.

subject
string

The subject line, 1 to 255 characters. Required, unless template gives it: with a template it overrides the template's.

html
string

The HTML body. Give html, text or both, or template; together they are at most 512 KiB.

text
string

The plain-text body, shown by clients that do not render HTML. Give html, text or both.

template
object

{"id": "<id or alias>", "variables": {"KEY": "value"}, "version": "draft"}: a hosted template of the application, rendered when the message is accepted. html and text are then refused; subject overrides the template's, from and reply_to the version's. version: "draft" sends the draft, with a test key only.

reference
string

Your own reference (order id, event id), 1 to 64 printable characters. Echoed back, carried by the webhooks, filterable in the list, and searchable on Email → Messages in the console.

headers
object

Your own headers, { "Name": "value" }: at most 15, each name 1 to 126 header-name characters, each value one line of at most 870 characters. Tawked's own are refused with 422 header_not_allowed (From, To, Cc, Bcc, Reply-To, Subject, Date, Message-ID, the MIME and trace headers, any name starting X-Tawked-, Tawked-, ARC- or Resent-, and the sending service's own X- headers). List-Unsubscribe holds <https:…> or <mailto:…> URIs in ASCII; List-Unsubscribe-Post: List-Unsubscribe=One-Click needs an https: one (RFC 8058). The names are kept with the message; the values only until it is sent.

tags
array

Your own labels, [{ "name": "category", "value": "order" }]: at most 20, each name and value 1 to 256 ASCII letters, digits, _ or -, names unique (in any case) and never message_id, application_id, account_id or one starting tawked. Returned on the message and its webhooks, and filterable in the list (tag=category:order).

scheduled_at
string

When to send it: an ISO 8601 date and time with its offset or Z (2026-10-22T09:00:00+03:00), within the next 30 days. Within the next minute it is sent at once. The price is charged when you call. Not with attachments.

attachments
array

Up to 10 files, each { "filename", "content", "content_type", "content_id" }: filename 1 to 255 characters without /, \ or control characters; content the bytes in standard base64; content_type optional, guessed from the extension else application/octet-stream; content_id optional, 1 to 255 of letters, digits and ._@-, which places the file inside the HTML (cid:) rather than attached. At most 10 MiB together once decoded; executables, scripts and shortcuts are refused. No extra price. Not with scheduled_at.

Response

Accepted / Accepted, several recipients / Scheduled

id
string
status
string
from
object
to
string
subject
string
reference
string
price_halalas
integer
created_at
string<date-time>