MBKChat icon

MBKChat

Desfrute da MbkChat_API

Chat → Send Audio

AI-generated

Summary

Send an audio file to a phone number, optionally as a Push‑to‑Talk voice note.

Inputs

  • phone (required) — Phone number to send message to (e.g. 5511999999999)
  • data — Base64 encoded data (with or without data URI scheme) OR a direct URL (http/https)
  • ptt — Whether to send the audio as a recorded voice note (PTT)

Output shape

An array of response objects for each processed item

Each element contains the API’s JSON reply; if continueOnFail is enabled, items may include an error property describing a failed request.

Examples

Example 1: Send a voice note to a contact

phone: 5511999999999, data: <base64‑audio>, ptt: true

Example 2: Upload and send an audio file as a regular media message

phone: 5511999999999, data: https://example.com/audio.mp3, ptt: false

Links

Discussion