At a glance
| Item | Detail |
|---|---|
type | text |
| Channel support | Official and unofficial (matrix) |
| Body field | Prefer content.body; content.text (string or { "body": "..." }) is accepted for compatibility |
| URL preview | Set preview behavior in content when the body includes a URL (provider-dependent) |
| Reply | Optional content.reply_to.id and content.reply_to.participant |
Outside the 24-hour customer service window on official channels, use an approved template message for business-initiated outreach.
Request body
| Field | Required | Description |
|---|---|---|
channel_id | Yes | Sender channel ID |
to | Yes | Recipient in international format (e.g. 6281234567890) |
type | Yes | text |
content.body or content.text | Yes | Message text |
Example
Quoted reply
When the user replies, see Handle inbound text or Handle interactive replies.
Endpoint
POST https://api.wazapin.com/v1/messages
Authenticate with X-Api-Key. See Authentication.
Response
On success, the API returns201 Created with a message record (status often starts as queued).
201 Created