Skip to main content
POST
/
v1
/
messages
/
send
/
audio
curl -X POST https://api.livchat.ai/v1/messages/send/audio \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "5511999999999",
    "audio": "data:audio/ogg;base64,T2dnUw..."
  }'
{
  "success": true,
  "code": 200,
  "data": {
    "details": "Sent",
    "id": "3EB04A45DCA355D01DB68C"
  }
}
Send an audio message. Audio will appear as a voice message in WhatsApp.

Request Body

phone
string
required
Recipient phone number in international format
audio
string
required
Audio URL or base64-encoded data in data URI format (data:audio/ogg;base64,...)
id
string
Optional message ID to reply to

Supported Formats

  • OGG (Opus codec) - Recommended
  • MP3
  • M4A
  • WAV
For best results, use OGG format with Opus codec. Maximum file size: 16MB
curl -X POST https://api.livchat.ai/v1/messages/send/audio \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "5511999999999",
    "audio": "data:audio/ogg;base64,T2dnUw..."
  }'
{
  "success": true,
  "code": 200,
  "data": {
    "details": "Sent",
    "id": "3EB04A45DCA355D01DB68C"
  }
}