cURL
curl --request PUT \ --url https://api.z-api.io/instances/{instanceId}/token/{token}/update-webhook-connected \ --header 'Client-Token: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "value": "<string>" } '
{ "type": "<string>", "connected": true, "phone": "<string>", "momment": 123, "instanceId": "<string>" }
Phone connection callback webhook with Z-API
{ "value": "https://your-system-address.com/instance/YOUR_INSTANCE/connected" }
ConnectedCallback
{ "type": "ConnectedCallback", "connected": true, "momment": 26151515154, "instanceId": "instance.id", "phone": "5544999999999" }
{ "value": true }