Data types
JSON conventions, dates, ids and enum values.
JSON
- Request and response bodies are JSON (
Content-Type: application/json), except attachment uploads (multipart/form-data) and downloads. - Property names are camelCase (
recipientCount,idempotencyKey). - Optional properties are returned as
nullrather than left out. - Map-like objects (
variables,dispatches,messagesByStatus) keep their keys as they are.
Ids
Ids are UUIDs, for example 0197a6b2-5c1e-7d33-9a8e-3f4b2c1d0e9f. They are time-ordered: newer resources have greater
ids.
Dates
Dates are ISO 8601 with an offset, for example 2026-11-23T10:15:00+00:00. Responses are in UTC. In requests, always
include an offset (Z or +03:00).
Enums
Enums are sent and returned as PascalCase strings.
| Enum | Values |
|---|---|
| Message status | Pending, Processing, Completed, PartiallyCompleted, Failed, Cancelled |
| Dispatch status | Pending, Inqueue, Processing, Sent, Delivered, Failed, Retrying, Cancelled |
| Priority | Critical, Normal, Bulk |
| Recipient type | Email, Phone, DeviceToken |
| Template content type | Html, Text, Markdown, Json |
| Attachment source | Template, Message |
| Statistics interval | Hour, Day |
Channels are lowercase codes: email, sms, push.
See Messages and dispatches for the meaning of each status.