curl --request POST \
--url https://api.wappfy.com.br/message/sendWhatsAppAudio/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "559912345678",
"options": {
"delay": 2000,
"presence": "recording",
"encoding": false
},
"audioMessage": {
"audio": "https://mmg.whatsapp.net/o1/v/x41.7553-1..."
}
}'
{
"key": {
"remoteJid": "559912345678@s.whatsapp.net",
"fromMe": true,
"id": "CBC2CDBAFA5C9"
},
"message": {
"audioMessage": {
"url": "https://mmg.whatsapp.net/o1/v/x41.7553-1...",
"mimetype": "audio/mp4",
"fileSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"fileLength": "2345678",
"seconds": 12,
"ptt": true,
"mediaKey": "cHRN0Qdx7wH9Pg3kDB53Yfe6EfF9J3l...",
"fileEncSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"directPath": "/d3/v/t62.7118-24/g2/n343/up-oil...",
"mediaKeyTimestamp": "1717776942"
}
},
"messageTimestamp": "1717776942",
"status": "PENDING"
}
Enviar áudio pelo WhatsApp
curl --request POST \
--url https://api.wappfy.com.br/message/sendWhatsAppAudio/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "559912345678",
"options": {
"delay": 2000,
"presence": "recording",
"encoding": false
},
"audioMessage": {
"audio": "https://mmg.whatsapp.net/o1/v/x41.7553-1..."
}
}'
{
"key": {
"remoteJid": "559912345678@s.whatsapp.net",
"fromMe": true,
"id": "CBC2CDBAFA5C9"
},
"message": {
"audioMessage": {
"url": "https://mmg.whatsapp.net/o1/v/x41.7553-1...",
"mimetype": "audio/mp4",
"fileSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"fileLength": "2345678",
"seconds": 12,
"ptt": true,
"mediaKey": "cHRN0Qdx7wH9Pg3kDB53Yfe6EfF9J3l...",
"fileEncSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"directPath": "/d3/v/t62.7118-24/g2/n343/up-oil...",
"mediaKeyTimestamp": "1717776942"
}
},
"messageTimestamp": "1717776942",
"status": "PENDING"
}
Seu cabeçalho da chave de autorização.
ID da instância.
Ok
The response is of type object
.