Send a WhatsApp template message
Sends a pre-approved WhatsApp template message. Templates must be
approved by Meta before use. Use this to initiate conversations
outside the 24-hour window.
As with `POST /v1/messages`, the `status` field is `sent` (synchronous)
or `queued` when the send is accepted onto the carrier-safe priority lane
(paced within the sender's daily conversation cap). A `queued` template
is sent as soon as there is headroom; track delivery via `message.*`
webhooks.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
agent_id
from_number
to_number
template_name
language_code
parameters
Response
Template message queued
message_id
conversation_id
agent_id
channel
direction
from_number
to_number
body
status
segments
Number of SMS segments the message was split into. Populated for SMS channel only; null for WhatsApp.
created_at
is_sandbox
True when the message was created with a pk_test_ (sandbox) API key. Omitted when false.
Errors
400
Send Template Request Bad Request Error