Áudio: uazapi e Orkesio

Na uazapi: POST /send/media. Na Orkesio: POST /messages com "type": "audio". A rota da uazapi continua funcionando.

Pedido

uazapi (POST /send/media)
{
  "number": "5511999999999",
  "type": "audio",
  "file": "https://loja.exemplo/aviso.mp3"
}
Orkesio (POST /messages)
{
  "to": "5511999999999",
  "type": "audio",
  "url": "https://loja.exemplo/aviso.mp3"
}

Resposta

O content da uazapi é o proto do WhatsApp; aqui vai resumido (...).

uazapi
{
  "id": "5511888888888:3EB05DCE1D4036FCE241C6",
  "messageid": "3EB05DCE1D4036FCE241C6",
  "chatid": "5511999999999@s.whatsapp.net",
  "chatlid": "123456789012345@lid",
  "fromMe": true,
  "isGroup": false,
  "groupName": "",
  "sender": "987654321098765@lid",
  "sender_pn": "5511888888888@s.whatsapp.net",
  "sender_lid": "987654321098765@lid",
  "senderName": "",
  "messageType": "AudioMessage",
  "mediaType": "audio",
  "messageTimestamp": 1792238400000,
  "source": "web",
  "status": "",
  "text": "",
  "content": {
    "URL": "https://mmg.whatsapp.net/o1/v/t24/f2/m231/AQ...",
    "directPath": "/o1/v/t24/f2/m231/AQ...",
    "mediaKey": "xc89kGb6...",
    "fileSHA256": "fH72FyaiECvF1pFA4HOHfF6Pyd7c2X0B8jCM+r69RQo=",
    "fileEncSHA256": "f4ddpVBw...",
    "mediaKeyTimestamp": 1792238400,
    "mimetype": "audio/mpeg",
    "seconds": 12,
    "PTT": false
  },
  "quoted": "",
  "edited": "",
  "reaction": "",
  "vote": "",
  "buttonOrListid": "",
  "convertOptions": "",
  "pinned": false,
  "owner": "5511888888888",
  "wasSentByApi": true,
  "track_source": "",
  "track_id": "",
  "response": {
    "status": "success",
    "message": "Message sent successfully"
  }
}
Orkesio
{
  "id": "3EB05DCE1D4036FCE241C6",
  "chat_id": "5511999999999@s.whatsapp.net",
  "author": {
    "id": "5511888888888@s.whatsapp.net",
    "phone": "5511888888888"
  },
  "direction": "out",
  "sent_at": "2026-10-17T12:00:00.000Z",
  "category": "unsent",
  "type": "audio",
  "sent_by": "api",
  "status": "queued"
}

Áudio na Orkesio: canais, webhook e a resposta do contato