Description
This endpoint allows you to send audio messages (voice notes) to individual contacts or groups on WhatsApp. The audio must be sent in base64 format. Voice notes are displayed as playable audio messages on WhatsApp.Body
Body Parameters
| Property | Type | Required | Description |
|---|---|---|---|
sessionId | string | ✅ Yes | Authenticated session ID that will send the audio |
jid | string | ✅ Yes | Recipient identifier (WhatsApp JID). Format: [email protected] for contacts or [email protected] for groups |
audio | object | ✅ Yes | Object containing the audio data |
audio.content | string | ✅ Yes | Audio content encoded in base64 |
audio.mimetype | string | ❌ No | Audio MIME type (e.g., audio/ogg, audio/mpeg, audio/mp4). If not specified, will be detected automatically |
Status Codes
200- Audio sent successfully400- Invalid parameters or audio corrupted401- Unauthorized session404- Session not found413- Audio too large
Usage Example
Authorizations
Your Wappfy API key (get it at dash.wappfy.com.br)
Body
application/json
Chat ID (WhatsApp JID)
Example:
Audio/voice file (remote URL or base64 data)
- Option 1
- Option 2
Session name (instanceName)
Example:
"my-session"
Message ID you want to reply to
Example:
null
Response
201 - application/json
The response is of type object.
