Skip to main content
The Notion plugin handles incoming webhooks. Point your provider’s subscription URL at your Corsair HTTP handler (see Overview for setup context and the exact URL shape).
New to Corsair? See webhooks and hooks.

Webhook map

  • databasePages
    • pageCreated (databasePages.pageCreated)
    • pageUpdated (databasePages.pageUpdated)
  • verification (verification)

HTTP handler setup

app/api/webhook/route.ts

Events

Database Pages

Page Created

databasePages.pageCreated A page was created in a database Payload
NameTypeRequiredDescription
idstringYes
timestampstringYes
workspace_idstringYes
subscription_idstringYes
integration_idstringYes
typepage.createdYes
authorsobject[]Yes
accessible_byobject[]Yes
entityobjectYes
dataobjectYes
webhookHooks example

Page Updated

databasePages.pageUpdated A page was updated in a database Payload
NameTypeRequiredDescription
idstringYes
timestampstringYes
workspace_idstringYes
subscription_idstringYes
integration_idstringYes
typepage.updatedYes
authorsobject[]Yes
accessible_byobject[]Yes
entityobjectYes
dataobjectYes
webhookHooks example

Verification

Verification

verification Notion URL verification — respond to confirm the webhook endpoint Payload
NameTypeRequiredDescription
verification_tokenstringYes
webhookHooks example