Configure project webhook

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.

post/v1/invitations/webhook

Request

  • Base URL
    https://api.zavu.dev
  • URL
    https://api.zavu.dev/v1/invitations/webhook
  • Auth
    HTTP bearer

Request body

urlstring uri required
eventsProjectWebhookEvent[] required

Example request

{
  "url": "https://your-app.com/webhooks/zavu",
  "events": [
    "invitation.status_changed"
  ]
}

Response

Webhook configured.

Example response

{
  "webhook": {
    "url": "https://your-app.com/webhooks/zavu",
    "secret": "whsec_abc123..."
  }
}

Changes

No operation changes recorded.