Skip to main content
PATCH
/
instances
/
{id}
/
webhooks
/
{webhookId}
Update webhook
curl --request PATCH \
  --url https://api.zapfy.io/v1/instances/{id}/webhooks/{webhookId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [],
  "enabled": true
}
'
{
  "data": {
    "id": "01J9Z...",
    "url": "https://your-app.com/webhooks",
    "events": [],
    "enabled": true,
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Account token (zpfy_acct_...) — manages instances and webhooks.

Path Parameters

id
string
required

Instance ID.

webhookId
string
required

Webhook ID.

Body

application/json
url
string<uri>
events
enum<string>[]
Available options:
MESSAGE_RECEIVED,
MESSAGE_SENT,
MESSAGE_STATUS,
CONNECTION_UPDATE,
QRCODE_UPDATED
enabled
boolean

Response

Webhook updated.

data
object