Skip to main content
PUT
Proxy Failure Webhook

Overview

Method used to update the webhook URL where proxy connection failure callbacks will be received.

Parameters

instanceId
string
required
Your instance ID. Available in the Z-API panel under Instances.
token
string
required
Your Z-API instance token.

Attributes

value
string
required
Webhook URL that will receive the failure callbacks.

Request Body


Callback Behavior

If an error occurs while connecting using the configured proxy, 3 retry attempts will be made. If the connection fails on the third attempt, the instance is connected without using any proxy, and a webhook is triggered to the URL configured at this endpoint, with the following payload:

Response

200

405

In this case, make sure you are sending the correct method specification, i.e., check whether you sent the PUT request as specified at the beginning of this topic.

415

If you receive a 415 error, make sure to add the “Content-Type” header of the object you are sending in the request, in most cases “application/json”.