Send message or WhatsApp template (Unified API)
High-level unified endpoint to send a text message or a WhatsApp template message in one step. If the contact or open conversation does not exist, Domix AI automatically creates or resolves them.
Authorizations
API Access Token (underscore format)
Account ID (underscore format for unified message endpoints)
Headers
Account ID header (Supports api_account_id or api-account-id)
"16"
Alternative hyphenated header for Account ID
"16"
Body
ID of the inbox channel (e.g. WhatsApp channel)
1
Recipient phone number with country code (e.g. +966...)
"+966555555555"
Optional contact ID if already known
160
Text content of the message
"Hello from Domix AI!"
outgoing, template "outgoing"
Customer name to associate with contact if created
"Ahmed Mohamed"
"ahmed@example.com"
Key-value custom attributes for contact
Parameters for WhatsApp approved template messages