Audio
Send an audio file, such as a voice note.
POST
/v1/numbers/{phone_number}/messages/sendReference →
curl -X POST "$WAPIU_API/v1/numbers/$WAPIU_NUMBER/messages/send" \ -H "Authorization: Bearer $WAPIU_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "recipient": "+393331112222", "message": { "message_type": "audio", "audio": { "url": "https://example.com/note.mp3" } } }'| Field | Type | Required | Description |
|---|---|---|---|
audio.url | string | Yes | A public HTTPS URL. AAC, AMR, MP3, M4A or OGG (Opus), up to 16 MB. |
Delivered only within the 24-hour window. Outside it, send a template.
The response and errors are the same for every type: see Send a message.