At a glance
| Item | Detail |
|---|---|
type | audio |
| Supported formats | AAC, AMR, MP3, M4A (audio/mp4), OGG |
| Maximum file size | 16 MB |
| Media field | content.media_url (aliases: media, url) |
content.media_type | Optional; inferred from type: audio when omitted |
| Channel support | Official and unofficial |
Request body
| Field | Required | Description |
|---|---|---|
channel_id | Yes | Sender channel ID |
to | Yes | Recipient phone number |
type | Yes | audio |
content.media_url | Yes | HTTPS URL to the audio file |
Example
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