WasenderApi - Low Cost WhatsApp API for Developers Send Audio Message - API Documentation - WasenderApi - Low Cost WhatsApp API for Developers
WasenderApi API

API Documentation

WasenderApi WhatsApp API

Send Audio Message

Messages

POST/api/send-message

Sends a message with an audio file attached via a URL.

Send Audio Message

Send a message with an audio file attached. Provide the audio file via a publicly accessible URL in the audioUrl parameter.

Supported audio formats: AAC, MP3, OGG, AMR. Maximum file size: 16MB.

Parameters

NameTypeRequiredDescription
tostringYesRecipient phone number in E.164 format or, Group JID.
textstringNoThe text content of the message. Required if no media/contact/location is sent.
audioUrlstringYesURL of the audio file to send (sent as voice note).

Code Examples

curl -X POST "https://www.wasenderapi.com/api/send-message"
  -H "Authorization: Bearer YOUR_API_KEY"
  -H "Content-Type: application/json"
  -d '{
      "to": "+1234567890",
      "audioUrl": "https://example.com/announcement.mp3"
  }'

Response Examples

{
  "success": true,
  "data": {
    "msgId": 100000,
    "jid": "+123456789",
    "status": "in_progress"
  }
}