Send a template message
WhatsApp Messages
Send WhatsApp Template by Phone and Template ID
Send a WhatsApp template to a single recipient using path params phone and templateId. Provide template variables in the body. Requires x-api-key. Optional from-phone-number query to select the sender phone.
POST
Send a template message
Headers
API key needed to authorize the request
Path Parameters
The template ID of the message to be sent
The phone number to send the message to
Query Parameters
Body
application/json
The payload to send with the template message
Email of the contact
Pattern:
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Agent ID to assign to the contact
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Variables for carousel cards
Response
Message sent successfully.
