v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-06-11720209.3 KB
Message Controller

Send WhatsApp Audio

Send WhatsApp Audio

post/message/sendWhatsAppAudio/{instance}

Path parameters

instancestring required

ID of the instance to connect

Request body

numberstring required

Number to receive the message (with country code)

Response

Ok

messageTimestampstring

The timestamp of the message, represented as a string.

statusstring

The status of the message, such as sent, received, or pending.

Example response

{
  "key": {
    "remoteJid": "553198296801@s.whatsapp.net",
    "fromMe": true,
    "id": "BAE5EFED2AB0BB9F"
  },
  "message": {
    "audioMessage": {
      "url": "https://mmg.whatsapp.net/v/t62.7114-24/21428511_985284763127087_5662928...",
      "mimetype": "audio/mp4",
      "fileSha256": "DJPBnRns6QADzZNH2j0R88mUtFQ4aiOm9aZf6dio2G0=",
      "fileLength": "670662",
      "seconds": 42,
      "ptt": true,
      "mediaKey": "+A3X1Tuyzeh87cCVZpfuKpL3Y4RYdYr3sCDurjSlBTY=",
      "fileEncSha256": "s4tKvHOXIZAw5668/Xcy4zoFba4vW8klmNYC78yOPZs=",
      "directPath": "/v/t62.7114-24/21428511_985284763127087_5662928477636351284_n.enc...",
      "mediaKeyTimestamp": "1717776942"
    }
  },
  "messageTimestamp": "1717776942",
  "status": "PENDING"
}