Skip to main content
PATCH
Update webhook

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>[]

Event type. MESSAGE.RECEIVED = incoming message; MESSAGE.SENT = message sent from the number (API or phone); MESSAGE.STATUS_UPDATED = a message you sent was delivered or read; CONNECTION.UPDATED = the number connected, disconnected, was logged out or banned; QRCODE.UPDATED = pairing QR Code generated or expired.

Available options:
MESSAGE.RECEIVED,
MESSAGE.SENT,
MESSAGE.STATUS_UPDATED,
CONNECTION.UPDATED,
QRCODE.UPDATED
enabled
boolean

Response

Webhook updated.

data
object