Skip to main content
POST
The message goes out from the WhatsApp number assigned to the target agent, so that agent needs a connected number first. A plain message send works only inside an open messaging window. Use template for out-of-window messages.
A WhatsApp send branching on the messaging window, with a plain text message inside the window and an approved template outside it

Request

string
required
Bearer YOUR_API_KEY, a key with the Channels permission.
string
required
whatsapp. Any other value fails with a 400.
string
required
The recipient’s channel identifier. For WhatsApp, the phone number in international format.
string
required
template or message.
string
The target agent’s public ID. Required for organization keys. Agent-scoped keys default to their own agent.
object
The approved template to send. Required with type: "template".
object
{ "text": "…" }, a plain text message. Required with type: "message".

Response

boolean
true on a successful send.
string
template or message, echoing the send type.
string
The channel the message was sent on.
string
The provider’s message ID when the provider returns one.

Errors

Error responses return { "success": false, "error": "…" } with one of these statuses.

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer YOUR_API_KEY. Campaign endpoints use campaign-scoped keys; the rest use organization or agent keys with the matching permission.

Body

application/json
channel
enum<string>
required

The channel to send on. Only whatsapp can deliver today, and every other value is rejected.

Available options:
whatsapp
to
string
required

The recipient's channel identifier. For WhatsApp, the phone number in international format.

type
enum<string>
required

Send an approved template, or a plain text message inside an open messaging window. Use template outside the window.

Available options:
template,
message
convId
string

Target agent's public ID. Required for organization keys, and defaulted for agent-scoped keys.

template
object

The approved template to send. Required when type is template.

message
object

A plain text message. Required when type is message.

Response

Message sent

success
boolean
required

True when the channel accepted the message.

messageType
enum<string>

Echoes the send type from the request.

Available options:
template,
message
channel
string

The channel the message went out on.

messageId
string

The provider's message ID, when the provider returned one. Use it to match delivery webhooks.