Send a WhatsApp template message
Sends an approved WhatsApp template to a recipient from one of the agent’s connected phone numbers. Recipients are identified by phone number only — no user ID is required. A Chatbase user is resolved or created from the to number automatically, and their reply flows through the agent’s regular WhatsApp pipeline. The message is also appended to that conversation, unless a human has taken it over or it has ended — see conversationId in the response.
Authorizations
API key from your account settings
Path Parameters
The agent ID
1"5QHA6VB-DIAbBhxwqxfdi"
Body
Recipient phone number in international format (digits with country code, + and separators are tolerated). The phone number is the recipient identity: no user ID is needed — a Chatbase user is automatically resolved or created from this number (matching an existing contact with the same phone when one exists), and replies continue in that user’s conversation.
1"14155552671"
Which of the agent’s connected WhatsApp business numbers to send from, in international format. Formatting is ignored when matching, so +1 415-555-2671 and 14155552671 are equivalent. Optional when the agent has exactly one connected number.
1"14155552671"
Response
The message was accepted by WhatsApp
WhatsApp message ID (wamid) of the sent message
Chatbase conversation the recipient’s replies continue in. The message is also appended to that conversation, unless a human has taken it over or it has ended — in those cases only the WhatsApp delivery happens.
Canonical recipient WhatsApp ID the message was sent to
