API ReferenceMessages
Send a text message
POST
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.
header
AuthorizationBearer <token>Your organization API key: Authorization: Bearer org_…
application/json- body
audienceExternalId*AudienceExternalIdThe contact's ID on its channel. For WhatsApp it is
<phone number>:<your WhatsApp phone number ID>.
text*stringLength
length <= 4096Sent.
application/json- response
success*booleanmessageId?stringThe 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"}