Automation and integration

Notion API

Read and write Notion pages and databases from code.

made by
Notion

Magic Ship is one shop in Vancouver, BC, working remotely with clients worldwide. We are not a partner, reseller, or certified vendor of Notion - we just build with this.

What Notion API is

Notion's REST API exposes pages, databases, blocks, and users to an integration that has been granted access to specific pages. Content comes back as a tree of blocks rather than as whole documents. There are search endpoints and webhooks for changes.

How we use it

A lot of a client's real knowledge lives in Notion, so it is a common ingestion source: we walk the block tree, keep heading structure and page hierarchy as chunk metadata, and sync incrementally instead of re-indexing everything nightly. Page permissions are captured at ingestion time so the index cannot answer from a page the asker could not open. It is also a reasonable place to write agent output back to.

Where it is the wrong choice

The API is rate limited and paginated at the block level, so a first crawl of a large workspace is slow and has to be resumable. Its permission model does not map cleanly onto per-user filtering at query time either, which takes deliberate work to get right.

Building something on Notion API?

Send the problem rather than a job spec. You get an answer on scope, on fit, and on whetherNotion API is even the right call for it.

Start a project

Notion API and Notion are trademarks of their respective owners, used here to say what we work with.