v1

latestOpenAPI 3.1.02026-07-14330101.9 KB

๐ŸŽถ Send Voice

The Send Voice endpoint enables users to send voice messages through the API. This allows users to record or upload voice clips, which can then be sent to a specific WhatsApp user. Voice messages add a personal touch to communication and are especially useful for users who prefer speaking over typing. This feature can be implemented in customer service solutions, where audio communication may improve clarity, or in personal communication apps that value a more dynamic and human way of interaction.

post/send-message/voice

Request body

contact_idstring required

The contact id

audioUrlstring required

The audio url ( can be .opus or .mp3 extension )

Response

200

successboolean
messagestring

Example response

{
  "success": true,
  "message": "OK",
  "data": {
    "id": "3EB08EC7AB833F30874BF4",
    "status": "PENDING",
    "message": {
      "url": "https://mmg.whatsapp.net/v/t62.7114-24/31472239_1225256075153744_4909880618162989171_n.enc?ccb=11-4&oh=01_Q5AaIOtpERZhY6UTImu_-BjJmtbGWg3tZK1_eu_Yv-1evCkx&oe=6706B320&_nc_sid=5e03e0&mms3=true",
      "mimetype": "audio/ogg; codecs=opus",
      "fileSha256": "0SeKdYrlXZ9HEm5oWxJ6WDoHnONzGBvBUiBzTsu0PI0=",
      "fileLength": "106161",
      "seconds": 6,
      "ptt": true,
      "mediaKey": "ZApC1Q4cPN87aWHzvS3UyD0bo+eiBPXvcB01rXs8jH8=",
      "fileEncSha256": "ah3rPS+kjYuGvJ1Ac5dHCtAc90/sI05DZMT02oeRP4U=",
      "directPath": "/v/t62.7114-24/31472239_1225256075153744_4909880618162989171_n.enc?ccb=11-4&oh=01_Q5AaIOtpERZhY6UTImu_-BjJmtbGWg3tZK1_eu_Yv-1evCkx&oe=6706B320&_nc_sid=5e03e0",
      "mediaKeyTimestamp": "1725907733",
      "waveform": "Cj1aSjUrEQI1MkQaE2JRSRIwCzg1GRM6VBYZPDkJAwNYSkY5TGQ2H0IbJT5DF1E8TDBJEFkwDUUJPlIdDwQAAA=="
    },
    "timestamp": "1725907733"
  }
}