Audio

Learn the specifics of how to send messages with an audio file on WhatsApp.

Easily send audio messages to customers in session messages. The following audio types are supported:

  • Audio/AAC
  • Audio/AMR
  • Audio/MP4
  • Audio/MPEG
  • Audio/OGG; codecs=opus

Note that the base Audio/OGG type is not supported.

Audio file sizes can be up to 16MB.

ℹ️ Audio files are not supported as a message template.

image_wa_conversation_rounded_borders_audio_message_0.35x

How to send an audio file

curl –XPOST https://api.tyntec.com/conversations/v3/messages\
  -H 'Content-Type: application/json' \
  -H 'apikey: <API KEY>' \
  -d '{
{
    "from" : "{{whatsAppBusinessNumber}}",
    "to" : "{{receiverPhoneNumber}}",
    "channel" : "whatsapp",
    "content" : {
        "contentType" : "audio",
        "audio" : {
            "url": "https://dl.espressif.com/dl/audio/ff-16b-2c-44100hz.opus"
        }
    }
}