Configure project webhook
POST
Create or replace the project webhook for the project behind the API key, and activate it. The response carries the signing secret; an existing secret is kept.
This is where invitation.status_changed is delivered. Events are scoped to this project: when you onboard clients in sub-accounts, call this with each sub-account's API key.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Body
application/json
urlstring<uri>requiredeventsstring[]requiredOne ofinvitation.status_changedbroadcast.status_changeddomain.verifieddomain.failedLimitsmin items 1
Responses
201Webhook configured.
webhookobjectrequiredThe project-level webhook. It receives project events such as
invitation.status_changedfor this project only: a parent project does not receive its sub-accounts' events, so configure one per sub-account with that sub-account's API key.4 properties
urlstring<uri>requiredeventsstring[]requiredOne ofinvitation.status_changedbroadcast.status_changeddomain.verifieddomain.failedsecretstringSigning secret for
X-Zavu-Signature. Returned only byPOST /v1/invitations/webhook.activebooleanrequired
400Invalid URL or an event a project webhook cannot subscribe to.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject