Skip to content
Send messages

Send audio

Send a hosted audio file by passing its HTTPS URL in audio.link. Use this for music clips, podcasts, or pre-recorded voice notes.

Terminal window
curl -X POST \
https://api.kirim.chat/v1/$PHONE_ID/messages \
-H "Authorization: Bearer $KIRIM_KEY" \
-H "Content-Type: application/json" \
-d '{
"messaging_product": "whatsapp",
"to": "+628123456789",
"type": "audio",
"audio": { "link": "https://cdn.example.com/welcome.mp3" }
}'
FieldConstraint
audio.linkPublic HTTPS URL; either link or id (not both)
FormatAAC, M4A, AMR, MP3, OGG (Opus codec only)
Max size16 MB