Skip to main content
POST
Send a communication

Authorizations

Authorization
string
header
required

Company API key. The header value must be Api-Key <token>, e.g. Authorization: Api-Key AbCd1234.xxxxxxxx.

Headers

Idempotency-Key
string

Any unique string (max 255 chars), scoped to the company.

Maximum string length: 255

Body

application/json
template_slug
string
required

Slug of an approved template owned by the company (or a shared template).

variables
object
required

Template variables keyed by position ("1", "2", ...). Every required variable must be present. A value may be a string or {"value": "..."}. URLs in values are shortened automatically.

channel
enum<string>
required
Available options:
whatsapp,
email
recipients
string[]
required

Phone numbers in international format (a missing + is added) for WhatsApp, or email addresses. Invalid entries are skipped and returned in invalid_recipients.

Required array length: 1 - 500 elements
media
object

Attachment uploaded with POST /v1/communications/media/.

Response

Accepted. Invalid recipients are skipped and listed.

id
integer

Send log id.

status
enum<string>

PENDING: more than 100 valid recipients, processed in background. COMPLETED: all queued. PARTIAL: some recipients were invalid. FAILED: nothing could be queued.

Available options:
PENDING,
COMPLETED,
PARTIAL,
FAILED
queued
integer

Messages queued (or to be queued when PENDING).

invalid_recipients
string[]