Audio message
POST
/Documentation Audio Message sent via API
To receive this type of notification, you must enable the settings in your personal account or using the SetSettings method:
"outgoingAPIMessageWebhook": "yes"
Request
Body Params application/json
typeWebhook
string
required
instanceData
object
required
idInstance
integer
required
wid
string
required
typeInstance
string
required
timestamp
integer
required
idMessage
string
required
senderData
object
required
chatId
string
required
chatName
string
required
sender
string
required
senderName
string
required
senderContactName
string
required
messageData
object
required
typeMessage
string
required
fileMessageData
object
required
Example
{
"typeWebhook": "outgoingAPIMessageReceived",
"instanceData": {
"idInstance": 1101000002,
"wid": "71234567890@c.us",
"typeInstance": "whatsapp"
},
"timestamp": 1705473041,
"idMessage": "02392146E5104CE93C",
"senderData": {
"chatId": "71231234567@c.us",
"chatName": "Green API user",
"sender": "71234567890@c.us",
"senderName": "Green API",
"senderContactName": "Green API inContacts"
},
"messageData": {
"typeMessage": "documentMessage",
"fileMessageData": {
"downloadUrl": "https://sw-media-1101.storage.yandexcloud.net/1101000001/f3f4a306-b6a1-4a2a-bb29-a15b06752118.mp3",
"caption": "",
"fileName": "sample-6s.mp3",
"jpegThumbnail": "",
"mimeType": "audio/mpeg",
"forwardingScore": 0,
"isForwarded": false
}
}
}
Request samples
Responses
Audio message in the journal(200)
Audio message in the journal
HTTP Code: 200
Content Type : Rawtext/plain
Example
Not configured
Last modified: 20 days ago