Skip to main content
POST

Overview

Method for sending audio messages. You can send via URL or Base64. The audio is sent as a voice message on WhatsApp.
When sending as Base64, you must include the prefix with the audio type, for example: data:audio/mpeg;base64,.
File size limits and supported formats follow WhatsApp policies. See the official WhatsApp documentation for details.

Authorizations

Authorization
string
header
required

Secret Key generated in the Omni Z-API Security panel

Body

application/json
phone
string
required

Recipient phone number (country code + area code + number)

Example:

"5511999999999"

audio
string
required

Audio URL or Base64 data

viewOnce
boolean
default:false

Send as view-once message

delayMessage
integer

Delay in seconds before sending (1-15)

Required range: 1 <= x <= 15
delayTyping
integer

Seconds to display "Recording audio..." status (1-15)

Required range: 1 <= x <= 15

Response

Message sent successfully

zaapId
string

Internal identifier

messageId
string

WhatsApp message ID

id
string

Same value as messageId (compatibility)