Actions10
Message → Send Audio
AI-generatedSummary
Send an audio message via WhatsApp to a specified phone number using the Kirago API.
Inputs
- Phone (required) — Target WhatsApp number in international format, e.g., 5511999999999.
- Audio (Base64) (required) — Base64 encoded audio content including prefix, e.g., data:audio/ogg;base64,
- PTT (required) — Flag to mark the message as push-to-talk (PTT).
- Mime Type (required) — MIME type of the audio content being sent, default is 'audio/ogg; codecs=opus'.
- Seconds (required) — Duration of the audio in seconds.
- Waveform (required) — JSON array representing the waveform levels, e.g., [0,0,0,12,20,20,22,10,5,0,0,0].
- Additional Options — Optional contextual parameters such as forwarding status, mentioned JIDs, participant, stanza ID, and an optional client control ID.
Output shape
A single JSON object representing the API response for the sent audio message.
The operation returns an object with the API response on successful sending. Optional context fields are included if provided. Errors are thrown for unsupported resource or operation.