Skip to main content
POST
Send audio

Overview

Sends an audio message to a contact. The content.type field must be AUDIO and the audio is sent via URL in the attachments array.
Details of the Meta Cloud API rule in conversation window. See what each channel accepts for every channel.
If the channel is disconnected, the API refuses the send with 422 and subCode CHANNEL_DISCONNECTED, and the message is not sent. See Send errors.

Authorizations

Authorization
string
header
required

Secret Key generated in the Omni Z-API Security panel

Path Parameters

channelId
string
required

Channel ID

Example:

"YOUR_CHANNEL_ID"

Body

application/json
recipient
object
required
content
object
required

Response

Message sent successfully

messageId
string

Sent message ID — 32-character uppercase hexadecimal string