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: 5511999999999@s.whatsapp.net for contacts or 120363XXXXX@g.us 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
Response
201 - application/json
The response is of type object
.