Describe the problem/error/question
I’m trying to send a WhatsApp audio message using the HTTP Request node and the Evolution API.
According to the official Evolution documentation, the correct POST format is:
curl --request POST
–url https://{server-url}/message/sendWhatsAppAudio/{instance}
–header ‘Content-Type: application/json’
–header ‘apikey: ’
–data ‘{
“number”: “”,
“options”: {
“delay”: 123,
“presence”: “recording”,
“encoding”: true
},
“audioMessage”: {
“audio”: “”
}
}’
In my case, I am successfully receiving the audio message on WhatsApp. However, even though the message is delivered, the HTTP Request node in n8n returns a 400 Bad Request. Also, in my case, the options object is being respected as expected — for example, I can see the “recording” status appear when the audio is being sent, and the delay is applied correctly before delivery. So it seems that both the message and options are properly processed by the API, even though it returns a 400 Bad Request.
Why is this happening if the audio is being delivered correctly? Is there something I’m missing in how n8n handles the request/response cycle?
Share the output returned by the last node
[
{
“status”: 400,
“error”: “Bad Request”,
“response”: {
“message”: [
“AxiosError: Request failed with status code 401”
]
}
}
]
Information on your n8n setup
- n8n version: 1.83.2