Prerequisites
Node.js
Version 22 or higher
npm
Version 10 or higher
Create your first worker
Deploy to Notion
Connect to your Notion workspace and deploy:Follow the prompts to authenticate with your Notion workspace.
What’s in a worker?
The scaffolded project lives insrc/index.ts and exports a single Worker instance:
src/index.ts
Next steps
Syncs
Sync external data into Notion databases.
Agent tools
Build custom tools for Notion AI.
Webhooks
Receive HTTP events from external services.
OAuth
Connect to third-party APIs.