# Messaging

Send messages through WhatsApp or SMS. The unified endpoint (`POST /v2/messages`) routes based on the `channel` field, or use dedicated channel endpoints for WhatsApp and SMS separately. Supports template notifications, session (chat) messages, media attachments, and SMS fallback. All send operations are asynchronous — a `202 Accepted` response means the message is queued for processing.

 - [POST /whatsapp-api-service/v2/messages](https://docs.ecommunicate.co.za/apis/omnichannel/messaging/sendunifiedmessage.md): The primary messaging endpoint — routes to WhatsApp or SMS based on the `channel` field in the request body. Set `channel` to `WHATSAPP` for template notifications and session messages, or `SMS` for d
 - [POST /whatsapp-api-service/v2/channels/whatsapp](https://docs.ecommunicate.co.za/apis/omnichannel/messaging/sendwhatsapp.md): Send WhatsApp template notifications and session (chat) messages directly to the WhatsApp channel. Use this endpoint when you only need WhatsApp delivery without the unified routing layer. **Template
 - [POST /whatsapp-api-service/v2/channels/sms](https://docs.ecommunicate.co.za/apis/omnichannel/messaging/sendsms.md): Send SMS messages directly through the SMS gateway. Each message in the `messages` array specifies a recipient, text content, and optional tracking ID (`ctId`). Set `unicode: true` for messages contai
