Call message
#
ConceptThrough 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-messagePUT
https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/update-call-reject-message
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
Request Body#
Admin Panel#
Response#
200#
405In 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.
#
415In 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”