Skip to main content

Call message

Concept#

Through this method, you define the message that will be sent after rejecting a voice call received through the API.

Importante

That's correct. In order for the message to be sent, the previous method (Rejecting calls) needs to be active or enabled. When a voice call is rejected through the API, the defined message will be automatically sent as a response.


Method#

/update-call-reject-message#

PUT https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/update-call-reject-message

Header#

KeyValue
Client-TokenACCOUNT SECURITY TOKEN

Request Body#

{
"value": "Reply message"
}

Admin Panel#

img


Response#

200#

{
"value": true
}

405#

In this case certify that you are sending the correct specification of the method. This means, verify if you sent a PUT or POST as specified at the beginning of this topic.

415#

In case you receive 415 error, make sure to add the “Content-Type” of the object you are sending in the request headers, mostly “application/json”