cURL
curl --request POST \ --url https://api.botifiy.com/message/sendWhatsAppAudio/{instance} \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "number": "<string>", "audio": "<string>" } '
{ "key": { "remoteJid": "<string>", "fromMe": true, "id": "<string>" }, "message": { "audioMessage": { "url": "<string>", "mimetype": "<string>", "fileSha256": "<string>", "fileLength": "<string>", "seconds": 123, "ptt": true, "mediaKey": "<string>", "fileEncSha256": "<string>", "directPath": "<string>", "mediaKeyTimestamp": "<string>" } }, "messageTimestamp": "<string>", "status": "<string>" }
Send WhatsApp audio message
ID of the instance to connect
Number to receive the message (with country code)
url or base64
Ok
Show child attributes