Enigma Developers
API ReferenceMessages

Send a text message

POST
/v1/messages/text

Sends plain text into the contact's latest conversation, on whichever channel it is (WhatsApp or web chat). On WhatsApp this only works inside the 24-hour customer service window; outside it, send a template instead.

Requires scope message:send.

Authorization

headerAuthorizationBearer <token>

Your organization API key: Authorization: Bearer org_…

Request Body

application/json
  1. body
audienceExternalId*AudienceExternalId

The contact's ID on its channel. For WhatsApp it is <phone number>:<your WhatsApp phone number ID>.

text*string
Lengthlength <= 4096

Response Body

Sent.

application/json
  1. response
success*boolean
messageId?string

The WhatsApp message ID

curl -X POST 'https://api.enigma-ai.com/v1/messages/text' \  -H 'Content-Type: application/json' \  -d '{  "audienceExternalId": "string",  "text": "string"}'
{  "success": true,  "messageId": "string"}