Webhook map
databasePagespageCreated(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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
timestamp | string | Yes | — |
workspace_id | string | Yes | — |
subscription_id | string | Yes | — |
integration_id | string | Yes | — |
type | page.created | Yes | — |
authors | object[] | Yes | — |
accessible_by | object[] | Yes | — |
entity | object | Yes | — |
data | object | Yes | — |
authors full type
authors full type
accessible_by full type
accessible_by full type
entity full type
entity full type
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Page Updated
databasePages.pageUpdated
A page was updated in a database
Payload
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
timestamp | string | Yes | — |
workspace_id | string | Yes | — |
subscription_id | string | Yes | — |
integration_id | string | Yes | — |
type | page.updated | Yes | — |
authors | object[] | Yes | — |
accessible_by | object[] | Yes | — |
entity | object | Yes | — |
data | object | Yes | — |
authors full type
authors full type
accessible_by full type
accessible_by full type
entity full type
entity full type
data full type
data full type
Response data full type
Response data full type
webhookHooks example
Verification
Verification
verification
Notion URL verification — respond to confirm the webhook endpoint
Payload
| Name | Type | Required | Description |
|---|---|---|---|
verification_token | string | Yes | — |
Response data full type
Response data full type
webhookHooks example