Enigma Developers
API ReferenceWhatsApp Templates

Send a template message

POST
/v2/wa/template

Sends an approved WhatsApp template to a phone number. The contact and its conversation are created on first send.

A 201 means WhatsApp accepted the message, not that it was delivered. Final delivery arrives on the message_status webhook.

Requires scope message:send. Rate limit: 60 requests per minute per key.

Authorization

headerAuthorizationBearer <token>

Your organization API key: Authorization: Bearer org_…

Request Body

application/json
  1. body
channelId*ChannelId

Your channel's ID: copy it from the channel's card on the dashboard's Channels page.

to*PhoneNumber

Recipient's number in international format, digits only, no +.

template*

Response Body

Accepted by WhatsApp.

application/json
  1. response
success*unknown
messageId*string

The WhatsApp message ID (wamid).

timestamp*string
Formatdate-time
curl -X POST 'https://api.enigma-ai.com/v2/wa/template' \  -H 'Content-Type: application/json' \  -d '{  "channelId": "3f6c1a2e-8b4d-4c7a-9e21-5d0b7f3a6c19",  "to": "249912345678",  "template": {    "name": "order_update",    "language": {      "policy": "deterministic",      "code": "en"    },    "components": [      {        "type": "body",        "parameters": [          {            "type": "text",            "text": "Ahmed"          },          {            "type": "text",            "text": "#10234"          }        ]      }    ]  }}'
{  "success": true,  "messageId": "string",  "timestamp": "2019-08-24T14:15:22Z"}