API authentication
Generate a Bearer token in Settings → Developer API. Include this token in the Authorization header of all HTTP requests.
Sending a text message
POST /api/v1/messages/send
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
{
"to": "+12025550147",
"type": "text",
"text": "Hello Jane, your order has shipped!"
}Sending an approved template
POST /api/v1/messages/template
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
{
"to": "+12025550147",
"template_name": "order_update",
"language": "en",
"parameters": ["Jane", "ORD-8491"]
}
