Webhook map
docscreated(docs.created)deleted(docs.deleted)
pagescreated(pages.created)updated(pages.updated)
HTTP handler setup
app/api/webhook/route.ts
Events
Docs
Created
docs.created
A doc was created or copied in the organization
Payload
events full type
events full type
Response data full type
Response data full type
webhookHooks example
Deleted
docs.deleted
A doc was deleted in the organization
Payload
events full type
events full type
Response data full type
Response data full type
webhookHooks example
Pages
Created
pages.created
A page was added to a doc
Payload
events full type
events full type
Response data full type
Response data full type
webhookHooks example
Updated
pages.updated
A page in a doc was edited, renamed or moved
Payload
events full type
events full type
Response data full type
Response data full type
webhookHooks example