Send channel messages API
Send an outbound message on a connected channel with the POST /api/channels/send endpoint.
message send works only inside an open messaging window. Use template for out-of-window messages.
Request
Bearer YOUR_API_KEY, a key with the Channels permission.whatsapp. Any other value fails with a 400.template or message.type: "template".{ "text": "…" }, a plain text message. Required with type: "message".Response
true on a successful send.template or message, echoing the send type.Errors
Error responses return{ "success": false, "error": "…" } with one of these statuses.
Related pages
Authorizations
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
The channel to send on. Only whatsapp can deliver today, and every other value is rejected.
whatsapp The recipient's channel identifier. For WhatsApp, the phone number in international format.
Send an approved template, or a plain text message inside an open messaging window. Use template outside the window.
template, message Target agent's public ID. Required for organization keys, and defaulted for agent-scoped keys.
The approved template to send. Required when type is template.
A plain text message. Required when type is message.
Response
Message sent
True when the channel accepted the message.
Echoes the send type from the request.
template, message The channel the message went out on.
The provider's message ID, when the provider returned one. Use it to match delivery webhooks.
