Skip to main content
POST
Send a voice message

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

Status Codes

  • 200 - Audio sent successfully
  • 400 - Invalid parameters or audio corrupted
  • 401 - Unauthorized session
  • 404 - Session not found
  • 413 - Audio too large

Usage Example

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Body

application/json
chatId
string
required

Chat ID (WhatsApp JID)

Example:

"5511999999999@c.us"

file
object
required

Audio/voice file (remote URL or base64 data)

session
string
required

Session name (instanceName)

Example:

"my-session"

reply_to
string

Message ID you want to reply to

Example:

null

Response

201 - application/json

The response is of type object.