- GETGet Information
- POSTCreate Instance Basic
- GETFetch Instances
- GETInstance Connect
- PUTRestart Instance
- GETConnection State
- DELLogout Instance
- DELDelete Instance
- POSTSet Presence
- POSTSend Template
- POSTSend Plain Text
- POSTSend Status
- POSTSend Media
- POSTSend WhatsApp Audio
- POSTSend Sticker
- POSTSend Location
- POSTSend Contact
- POSTSend Reaction
- POSTSend Poll
- POSTSend List
- POSTCheck is WhatsApp
- PUTMark Message As Read
- PUTArchive Chat
- DELDelete Message for Everyone
- POSTSend Presence
- POSTFetch Profile Picture URL
- POSTFind Contacts
- POSTFind Messages
- POSTFind Status Message
- PUTUpdate Message
- GETFind Chats
- POSTFetch Business Profile
- POSTFetch Profile
- POSTUpdate Profile Name
- POSTUpdate Profile Status
- PUTUpdate Profile Picture
- DELRemove Profile Picture
- GETFetch Privacy Settings
- PUTUpdate Privacy Settings
- POSTCreate Group
- PUTUpdate Group Picture
- PUTUpdate Group Subject
- PUTUpdate Group Description
- GETFetch Invite Code
- GETAccept Invite Code
- PUTRevoke Invite Code
- POSTSend Group Invite
- GETFind Group by Invite Code
- GETFind Group by JID
- GETFetch All Groups
- GETFind Group Members
- PUTUpdate Group Members
- PUTUpdate Group Setting
- PUTToggle Ephemeral
- DELLeave Group
Início
Instances
Send Message
Chat Controller
Profile Settings
Profile Settings
Send WhatsApp Audio
Send WhatsApp Audio
https://{server-url}
The URL of your EvolutionAPI server
Your authorization key header
ID of the instance to connect
Number to receive the message (with country code)
Presence time in milliseconds before sending message
Presence type to show
If the audio must be encoded or not
Audio URL or file in base64
curl --request POST \
--url https://{server-url}/message/sendWhatsAppAudio/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"options": {
"delay": 123,
"presence": "recording",
"encoding": true
},
"audioMessage": {
"audio": "<string>"
}
}'
{
"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"
}
Authorizations
Your authorization key header
Path Parameters
ID of the instance to connect
Body
Number to receive the message (with country code)
Presence time in milliseconds before sending message
Presence type to show
recording
If the audio must be encoded or not
Audio URL or file in base64
Response
The key of the message, which identifies the message in the chat.
The remote Jid.
Indicates whether the message was sent by the user.
The ID of the message.
The message content, which may include various types of messages like text, images, audio, etc.
Details of the audio message.
The URL of the audio message.
The MIME type of the audio message.
The SHA-256 hash of the audio file.
The length of the audio file.
The duration of the audio message in seconds.
Indicates whether the audio message is a push-to-talk (PTT) message.
The media key of the audio message.
The SHA-256 hash of the encrypted audio file.
The direct path to the audio file.
The timestamp of the media key.
The timestamp of the message, represented as a string.
The status of the message, such as sent, received, or pending.
curl --request POST \
--url https://{server-url}/message/sendWhatsAppAudio/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"options": {
"delay": 123,
"presence": "recording",
"encoding": true
},
"audioMessage": {
"audio": "<string>"
}
}'
{
"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"
}