Integrations & API
Connect Saymatic to your CRMs and apps, or use the REST API to send messages programmatically.
Authentication
Pass your API key in the X-API-Key header with every request.
curl -X POST https://api.saymatic.ai/api/v1/messages/template \
-H "X-API-Key: sm_your_key_here" \
-H "Content-Type: application/json" \
-d '{"to": "919876543210", "template": "invoice_notify", "variables": ["Rahul", "INV-001", "₹5,900", "01 Jun 2026", "https://pay.link/abc"]}'HTTPS onlyBase URL:
https://api.saymatic.aiYour API Keys
Loading…
API Reference
Send a pre-approved WhatsApp template message to any number. Templates are created and approved under the Templates section. This endpoint works at any time — including outside the 24-hour conversation window.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| to | string | required | Recipient phone number (e.g. "919876543210"). Accepts +91 format too. |
| template | string | required | Exact name of the approved template (e.g. "invoice_notify"). |
| language | string | optional | Template language code. Default: "en_US". |
| variables | array | optional | Array of values to fill {{1}}, {{2}}, {{3}}… placeholders in the template body. |
| header_variable | string | optional | Text value for the template header variable (only if your template has a {{1}} in the header). |
Request Body
{
"to": "919876543210",
"template": "invoice_notify",
"language": "en_US",
"variables": [
"Rahul Sharma",
"INV-001",
"₹5,900",
"01 Jun 2026",
"https://pay.razr.com/abc123"
]
}cURL Example
curl -X POST https://api.saymatic.ai/api/v1/messages/template \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "919876543210",
"template": "invoice_notify",
"language": "en_US",
"variables": [
"Rahul Sharma",
"INV-001",
"₹5,900",
"01 Jun 2026",
"https://pay.razr.com/abc123"
]
}'Response
{ "success": true, "messageId": "msg_tpl456" }