Skip to Content
SimulatorsNotionOverview

Simulators

Notion simulator

notion-twin is a local, stateful simulator of the Notion API for testing integrations and agents that work in a workspace. Pages with their markdown, blocks, databases with their data sources, comments, users, file uploads and search keep the shapes, errors and lifecycles of Notion’s API. Unless a Differs from Notion line beside a behavior or the Limitations section says otherwise, the simulator does what Notion does. A behavior marked unconfirmed has not been checked against Notion’s API yet. It never calls Notion.

Quickstart

Install the CLI, sign in and boot the simulator with RYSTIC_URL pointing at it.

On Pro you sign in with an API key from your account .

curl -fsSL https://www.rystic.ai/install.sh | sh
rystic login rys_…   # your API key
export RYSTIC_URL=$(rystic run notion-twin -d --port 0 --scenario notion_team_wiki --json | jq -r .data.url)
curl -s "$RYSTIC_URL/_rystic/version"
# -> {..."product":"notion-twin"...}

On Enterprise, the licensed edition signs in with a license file in place of the key: rystic login ./rystic-license.json (licensing ).

First calls

Read the connection’s own user, add a page under the wiki’s root page from markdown and read the page back as markdown:

curl -s "$RYSTIC_URL/v1/users/me" -H 'Authorization: Bearer secret_placeholder' -H 'Notion-Version: 2026-03-11' | jq -c '{name, type}'
# -> {"name":"Wiki Reader","type":"bot"}
curl -s "$RYSTIC_URL/v1/pages" -H 'Authorization: Bearer secret_placeholder' -H 'Notion-Version: 2026-03-11' -H 'Content-Type: application/json' -d '{"parent":{"page_id":"a1000000-0000-4000-8000-000000000101"},"markdown":"# Launch checklist\n\nShip it"}' | jq -c '{id, object}'
# -> {"id":"73d01b77-cb6c-4662-8000-000000000001","object":"page"}
curl -s "$RYSTIC_URL/v1/pages/73d01b77-cb6c-4662-8000-000000000001/markdown" -H 'Authorization: Bearer secret_placeholder' -H 'Notion-Version: 2026-03-11' | jq -c '{markdown}'
# -> {"markdown":"Ship it"}

A leading # line becomes the page’s title (Page markdown), so GET /v1/pages/{page_id}/markdown returns the body alone.

Connect your client

Set @notionhq/client’s baseUrl, or notion_client’s base_url, to $RYSTIC_URL and use any placeholder token. JavaScript:

import { Client } from "@notionhq/client";

const notion = new Client({ auth: "secret_placeholder", baseUrl: process.env.RYSTIC_URL });
const me = await notion.users.me({});

Python:

import os
from notion_client import Client

notion = Client(auth="secret_placeholder", base_url=os.environ["RYSTIC_URL"])
me = notion.users.me()

A client that can’t take a base URL keeps api.notion.com: boot with rystic run notion-twin -d --port 0 --intercept and run your program as rystic exec -- <command> (Intercept vendor calls).

Keep each client’s default Notion-Version: the simulator serves it as Notion does (API version). To drive the simulator from an agent, point the Notion MCP server at it (Notion MCP server). The live feed shows whether the client’s requests arrive.

Each client’s quickstart was run against this simulator in each way it connects, with the vendor’s own hosts blocked.

ClientVersionKindWorks withFails withCheckedKnown gap
@notionhq/notion-mcp-server (npm)v2.6.0mcp-serverbase URL, default host—2026-11-22—
@notionhq/client (npm)v5.28.0sdkbase URL, default host—2026-11-22—

Auth

The simulator takes a Notion integration’s token as Authorization: Bearer <token> and acts as the workspace’s bot user, unless the token is bound to another user. Any non-empty placeholder works.

Differs from Notion: the simulator checks no token’s value.

The requestThe simulator returns
has no bearer token401 unauthorized
has no Notion-Version header400 missing_version
has neither400 missing_version, since the version is checked first

GET /v1/users/me returns the workspace’s bot user, and the pages and blocks you create name it in created_by. To act as another user, bind a token to that user’s id with POST /_rystic/credentials. notion_task_tracker binds three tokens to its people this way.

API version

The simulator serves Notion-Version: 2025-09-03, the official clients’ default, and 2026-03-11, the version Notion’s published OpenAPI declares. A caller pins one with the Notion-Version request header, which every request needs.

VersionThe request or recordThe simulator
2025-09-03every page, block, database, data source and file uploadadds archived, equal to in_trash
2025-09-03updating a page, block or database with archivedreads archived as in_trash
2025-09-03appending block children with afterreads after as position: {"type": "after_block"}
2025-09-03appending block children with both after and positionreturns 400 validation_error
2026-03-11updating a page or block with archivedreturns 400 validation_error
2026-03-11appending block children with afterreturns 400 validation_error
bothupdating a data source with archivedreads archived as in_trash, as Notion does
any other valueevery requestserves it as 2026-03-11

Differs from Notion: Notion refuses a version it does not serve. The simulator serves it as 2026-03-11.

Errors and limits

Error format

A refused request returns Notion’s error object, its object set to "error". It has status, code, message and request_id. A path Notion doesn’t have returns a different 404, a known issue in Limitations.

Rate limits

The simulator counts each token’s requests against Notion’s per-connection limit, 180 a minute in a fixed 60-second window, but refuses no request for running it out unless you turn Notion’s limit on.

Differs from Notion: by default, no request returns 429 rate_limited.

Differs from Notion: the limit is 180 a minute on every workspace, Notion’s for plans below Business; a Business or Enterprise workspace gets 600.

Differs from Notion: Notion also limits data source queries to about 3 a second and shares a per-workspace budget across connections; the simulator counts neither.

rate_limits: real turns Notion’s limit on: in the stack file, as in notion: {product: notion-twin, port: 8086, rate_limits: real}, at boot with rystic run --rate-limits real or RYSTIC_RATE_LIMITS=real, or mid-run with curl -s -X POST "$RYSTIC_URL/_rystic/network" -d '{"rate_limits": "real"}'.

With the limit on, the 181st request in a window returns 429 rate_limited with Retry-After, the seconds until the window resets, and additional_data.rate_limit_reason set to public_api_request_rate_limit. The window runs on wall time, not the simulator’s clock. A reset keeps the setting and empties the window.

Differs from Notion: the 429 leaves out additional_data.retry_after, which Notion sends.

Network profiles send a 429 you shape when a test needs one sooner.

Pagination

Lists page as Notion’s do: send next_cursor back as start_cursor. page_size defaults to 100 on every list but GET /v1/users, which returns every user when you leave it out.

Out-of-range values return different results on each route, all unconfirmed:

RouteA page_size above 100A start_cursor the list didn’t return
GET /v1/comments, GET /v1/file_uploads, GET /v1/data_sources/{data_source_id}/templates400 validation_error400 validation_error
GET /v1/blocks/{block_id}/children, GET /v1/pages/{page_id}/properties/{property_id}reads as 100400 validation_error
POST /v1/searchreads as 100200 with empty results and has_more false
POST /v1/data_sources/{data_source_id}/queryreturns that many rows400 validation_error
GET /v1/usersreturns that many users; 0 or less returns every user400 validation_error

Differs from Notion: with no page_size, GET /v1/users returns every user, where Notion returns at most 100 (unconfirmed).

GET /v1/users lists each user once, persons before bots. Notion’s docs promise no order, so sort the list yourself when a test needs one.

/_rystic/page-cap caps page_size on the GET lists; name the route with /v1, as GET /v1/users.

Idempotency

Not applicable: the simulator reads no idempotency key, so a POST /v1/pages or POST /v1/comments sent twice creates two records.

Coverage

Views, Agents and Agent Skills, Sessions, Meeting notes, OAuth, custom emojis and the deprecated POST /v1/databases/{database_id}/query are out of scope.

35 routes, counted from the simulator’s route table.

Show all operations
ResourceOperations
Async task (1)GET /v1/async_tasks/{task_id}
Block (5)GET, PATCH, DELETE /v1/blocks/{block_id}; GET, PATCH /v1/blocks/{block_id}/children
Comment (5)GET, POST /v1/comments; GET, PATCH, DELETE /v1/comments/{comment_id}
Data source (4)POST /v1/data_sources; GET, PATCH /v1/data_sources/{data_source_id}; POST /v1/data_sources/{data_source_id}/query
Data source template (1)GET /v1/data_sources/{data_source_id}/templates
Database (3)POST /v1/databases; GET, PATCH /v1/databases/{database_id}
File upload (5)GET, POST /v1/file_uploads; GET /v1/file_uploads/{file_upload_id}; POST /v1/file_uploads/{file_upload_id}/complete; POST /v1/file_uploads/{file_upload_id}/send
Page (8)POST /v1/pages; GET, PATCH /v1/pages/{page_id}; GET, PATCH /v1/pages/{page_id}/markdown; POST /v1/pages/{page_id}/move; GET /v1/pages/{page_id}/properties/{property_id}; POST /v1/search
User (3)GET /v1/users; GET /v1/users/me; GET /v1/users/{user_id}

Feed effects. No write emits a feed effect; watch requests instead. Each call appears on the event feed (/_rystic/events) as a request event, and reading the record back shows what it changed.

Scenarios

The simulator ships 11 scenarios; the quickstart boots notion_team_wiki.

ScenarioWhat it is forWhat it seedsClock
notion_attachmentsFiles to attach and read backblock 8, data_source 1, database 1, page 4, user 32026-02-01T00:00:00Z
notion_blank_slateA brand-new workspace at its floorblock 3, data_source 1, database 1, page 1, user 22026-02-01T00:00:00Z
notion_linked_sourcesOne Delivery Tracker database holding two data sources, Projects and Tasks, joined by a two-way relationblock 37, data_source 2, database 1, page 35, user 52026-02-01T00:00:00Z
notion_locked_vaultA compliance vaultblock 8, data_source 1, database 1, page 4, user 32026-02-01T00:00:00Z
notion_page_treeA page tree to reorganizeblock 20, data_source 3, database 2, page 12, user 32026-02-01T00:00:00Z
notion_review_threadA task page under review through commentsblock 4, comment 3, page 1, user 42026-02-01T00:00:00Z
notion_task_trackerA database-first workspaceblock 11, data_source 1, database 1, page 7, user 52026-02-01T00:00:00Z
notion_team_directoryA workspace’s membersblock 4, data_source 1, database 1, page 2, user 92026-02-01T00:00:00Z
notion_team_wiki (default)A lived-in wikiblock 11, data_source 1, database 1, page 5, user 42026-02-01T00:00:00Z
notion_template_boardA support desk with templatesblock 26, data_source 2, database 2, page 5, template 5, user 42026-02-01T00:00:00Z
notion_trash_binA workspace with trash to restoreblock 8, data_source 1, database 1, page 4, user 32026-02-01T00:00:00Z

What each scenario holds:

  • notion_attachments:
    • A Brand Kit page with an image block and a file block.
    • An Asset Library whose Files property has files on two of its three rows.
  • notion_blank_slate: One bot, one page holding a single empty paragraph, and an empty-but-configured database whose data source has only a title property and no rows — every listing holds only that floor, so first-write effects are unmistakable.
  • notion_linked_sources: The Platform Migration project relates 30 of the 32 tasks and names three reviewers, so a property-item read pages past the page read’s 25-reference cap, and one task relates to nothing.
  • notion_locked_vault:
    • Pages, a database and an audit row with is_locked set, beside one unlocked scratch page.
    • The API still accepts edits to locked content, so reads show the flag and writes succeed.
  • notion_page_tree: Operations Hub holds Runbooks and Archive with nested pages, one of them trashed, an Incidents database with one data source and a Vendors database with two, so a move has page and data source parents, a subtree to carry and refusals to provoke.
  • notion_review_thread: Launch Checklist holds three blocks and two open discussions, one on the page where the bot asked for review and a person replied mentioning it, and one on a to-do block that a second person opened, so list, reply, update and delete all have a thread to work in.
  • notion_task_tracker: One Sprint Tasks database whose data source declares title, select, date, people and checkbox properties, with six row pages spread across every status and a checklist of blocks inside the one in-progress row.
  • notion_team_directory: The connection’s bot, a second bot, and six people with example.test emails, one of them unverified, beside a Team Roster database whose one row names three of them, so the users list pages and every people value resolves through the users read.
  • notion_team_wiki: A workspace root page with three child pages, a nested block tree and an inline Meeting Notes database with one data source and one row, so retrieve, list-children and query all return real content.
  • notion_template_board:
    • A Tickets data source with five templates, one of them the default.
    • A Changelog data source with none, so a create from a template meets both a default and none.
    • A plain Scratch Notes page.
  • notion_trash_bin:
    • The Q3 Planning page sits in the trash with its subpage, blocks and inline hiring database under it.
    • One hiring row is trashed on its own.
    • A live restore log sits beside them.

Boot one by name, or load one into a running simulator:

rystic run notion-twin -d --port 0 --scenario notion_team_wiki
curl -s -X POST "$RYSTIC_URL/_rystic/scenario" -d '{"name":"notion_team_wiki"}'

What the scenarios do not hold

  • A scenario is a fictional workspace. No page, user, comment or workspace comes from a real Notion account, and every person has an example.test email.
  • Templates come only from notion_template_board or a state_template seed (Data sources, templates and moves).
  • Without --scenario, the workspace holds only the simulator’s bot user.
  • One timeline. notion_task_tracker plays Rae, Theo and Nour’s edits over the three hours after its clock as a timeline, and the tokens ntn_b2_rae_integration, ntn_b2_theo_integration and ntn_b2_nour_integration act as them. Every other scenario stays still until you write to it.

Seeding state

A seed takes these registers, each holding records keyed by their id:

RegisterHolds
state_pagepages, database rows included
state_blockblocks
state_databasedatabases
state_data_sourcedata sources
state_templatedata source templates, each naming its data_source_id
state_commentcomments
state_userusers, plus the connection’s bot under the key member
state_file_uploadfile uploads
state_async_taskasync tasks

This example adds a top-level page with POST /_rystic/seed and reads it back through the API:

curl -s -o /dev/null -w '%{http_code}\n' -X POST "$RYSTIC_URL/_rystic/seed" -d '{"state_page": {"c3000000-0000-4000-8000-000000000001": {"id": "c3000000-0000-4000-8000-000000000001", "object": "page", "parent": {"type": "workspace", "workspace": true}, "in_trash": false, "properties": {"title": {"id": "title", "type": "title", "title": [{"type": "text", "text": {"content": "Seeded page"}, "plain_text": "Seeded page"}]}}}}}'
# -> 204
curl -s "$RYSTIC_URL/v1/pages/c3000000-0000-4000-8000-000000000001" -H 'Authorization: Bearer secret_placeholder' -H 'Notion-Version: 2026-03-11' | jq -c '{id, in_trash, title: .properties.title.title[0].plain_text}'
# -> {"id":"c3000000-0000-4000-8000-000000000001","in_trash":false,"title":"Seeded page"}

Seeding covers the seed route’s empty 204, the 400s it returns for what it refuses, boot files and how a seed merges with a scenario.

Block order

A page lists its blocks in the order their rank fields set. rank is a text field you can give any block in a seed: the simulator orders by it and returns it in no response.

Within one seed, the blocks it adds list among their siblings like this:

A block’s rankWhere the block lists among its siblings
SetBy rank, compared as text: "a" before "b", and "10" before "9"
Equal to another added block’sBeside that block, the lower seed key first
Missing, empty or nullAfter every other sibling, in seed key order

Seed keys compare as text. A seed that sets no rank therefore lists a page’s new blocks in key order. So that it lists them in reading order:

  • Key each block by its id.
  • Number the ids in reading order.

This example seeds a page and four blocks under it: two share a rank and one has none:

curl -s -o /dev/null -w '%{http_code}\n' -X POST "$RYSTIC_URL/_rystic/seed" -d '{"state_page": {"c3000000-0000-4000-8000-000000000010": {"id": "c3000000-0000-4000-8000-000000000010", "object": "page", "parent": {"type": "workspace", "workspace": true}, "in_trash": false, "properties": {"title": {"id": "title", "type": "title", "title": [{"type": "text", "text": {"content": "Block order"}, "plain_text": "Block order"}]}}}}}'
# -> 204
curl -s -o /dev/null -w '%{http_code}\n' -X POST "$RYSTIC_URL/_rystic/seed" -d '{"state_block": {"c3000000-0000-4000-8000-000000000101": {"id": "c3000000-0000-4000-8000-000000000101", "object": "block", "type": "paragraph", "parent": {"type": "page_id", "page_id": "c3000000-0000-4000-8000-000000000010"}, "rank": "b", "paragraph": {"rich_text": [{"type": "text", "text": {"content": "Second"}, "plain_text": "Second"}]}}, "c3000000-0000-4000-8000-000000000102": {"id": "c3000000-0000-4000-8000-000000000102", "object": "block", "type": "paragraph", "parent": {"type": "page_id", "page_id": "c3000000-0000-4000-8000-000000000010"}, "rank": "a", "paragraph": {"rich_text": [{"type": "text", "text": {"content": "First"}, "plain_text": "First"}]}}, "c3000000-0000-4000-8000-000000000103": {"id": "c3000000-0000-4000-8000-000000000103", "object": "block", "type": "paragraph", "parent": {"type": "page_id", "page_id": "c3000000-0000-4000-8000-000000000010"}, "paragraph": {"rich_text": [{"type": "text", "text": {"content": "Fourth"}, "plain_text": "Fourth"}]}}, "c3000000-0000-4000-8000-000000000104": {"id": "c3000000-0000-4000-8000-000000000104", "object": "block", "type": "paragraph", "parent": {"type": "page_id", "page_id": "c3000000-0000-4000-8000-000000000010"}, "rank": "b", "paragraph": {"rich_text": [{"type": "text", "text": {"content": "Third"}, "plain_text": "Third"}]}}}}'
# -> 204
curl -s "$RYSTIC_URL/v1/blocks/c3000000-0000-4000-8000-000000000010/children" -H 'Authorization: Bearer secret_placeholder' -H 'Notion-Version: 2026-03-11' | jq -c '[.results[] | .paragraph.rich_text[0].plain_text]'
# -> ["First","Second","Third","Fourth"]
curl -s "$RYSTIC_URL/v1/blocks/c3000000-0000-4000-8000-000000000010/children" -H 'Authorization: Bearer secret_placeholder' -H 'Notion-Version: 2026-03-11' | jq -c '[.results[] | .rank]'
# -> [null,null,null,null]

A block keeps its place once it is listed. In a later seed:

  • An update without a rank member leaves the block where it was.
  • An update that sets rank to null or empty moves the block after every sibling.
  • A new block without a rank lists after every sibling already there, whatever its key.
  • A rank you set is compared with ranks the simulator keeps for the existing blocks but never shows, so where it lands among them is not predictable.

Here a second seed edits the block listed second and adds a block with the lowest key yet:

curl -s -o /dev/null -w '%{http_code}\n' -X POST "$RYSTIC_URL/_rystic/seed" -d '{"state_block": {"c3000000-0000-4000-8000-000000000100": {"id": "c3000000-0000-4000-8000-000000000100", "object": "block", "type": "paragraph", "parent": {"type": "page_id", "page_id": "c3000000-0000-4000-8000-000000000010"}, "paragraph": {"rich_text": [{"type": "text", "text": {"content": "Fifth"}, "plain_text": "Fifth"}]}}, "c3000000-0000-4000-8000-000000000101": {"id": "c3000000-0000-4000-8000-000000000101", "object": "block", "type": "paragraph", "parent": {"type": "page_id", "page_id": "c3000000-0000-4000-8000-000000000010"}, "paragraph": {"rich_text": [{"type": "text", "text": {"content": "Second, edited"}, "plain_text": "Second, edited"}]}}}}'
# -> 204
curl -s "$RYSTIC_URL/v1/blocks/c3000000-0000-4000-8000-000000000010/children" -H 'Authorization: Bearer secret_placeholder' -H 'Notion-Version: 2026-03-11' | jq -c '[.results[] | .paragraph.rich_text[0].plain_text]'
# -> ["First","Second, edited","Third","Fourth","Fifth"]

To reorder blocks an earlier seed placed, set rank on every sibling in the later seed. This third seed moves the last block to the top:

curl -s -o /dev/null -w '%{http_code}\n' -X POST "$RYSTIC_URL/_rystic/seed" -d '{"state_block": {"c3000000-0000-4000-8000-000000000100": {"id": "c3000000-0000-4000-8000-000000000100", "rank": "a"}, "c3000000-0000-4000-8000-000000000101": {"id": "c3000000-0000-4000-8000-000000000101", "rank": "c"}, "c3000000-0000-4000-8000-000000000102": {"id": "c3000000-0000-4000-8000-000000000102", "rank": "b"}, "c3000000-0000-4000-8000-000000000103": {"id": "c3000000-0000-4000-8000-000000000103", "rank": "e"}, "c3000000-0000-4000-8000-000000000104": {"id": "c3000000-0000-4000-8000-000000000104", "rank": "d"}}}'
# -> 204
curl -s "$RYSTIC_URL/v1/blocks/c3000000-0000-4000-8000-000000000010/children" -H 'Authorization: Bearer secret_placeholder' -H 'Notion-Version: 2026-03-11' | jq -c '[.results[] | .paragraph.rich_text[0].plain_text]'
# -> ["Fifth","First","Second, edited","Third","Fourth"]

Features

Each feature has its own page:

  • Comments: Review through comments: open and reply in discussions on a page or block, and update or delete the connection’s own comments.
  • Data sources, templates and moves: Databases with several data sources, templates, two-way relations, long property values and page moves between parents.
  • File uploads: Notion’s file upload lifecycle: open an upload, send its bytes and attach it to a block, icon, cover or files property, then read the file back from the simulator.
  • Notion MCP server: Point Notion’s own MCP server, @notionhq/notion-mcp-server, at the simulator so an agent’s Notion tools act on the simulated workspace.
  • Page markdown: Read and write a page as Notion’s enhanced markdown, with the async tasks Notion runs for a large create or update.

Determinism and reset

Each resource’s ids come from its own sequence: the first page is 73d01b77-cb6c-4662-8000-000000000001, the first comment 925e28d1-dad3-4fd4-8000-000000000001 and the first file upload 46dc3409-450d-40f1-8000-000000000001.

A page’s, block’s, data source’s and comment’s created_time and last_edited_time round down to the minute, as on Notion, so records made in one minute share a time. A database’s and a file upload’s keep the millisecond.

Differs from Notion: Notion rounds a file upload’s times to the minute too.

POST /_rystic/reset clears the workspace down to the simulator’s own bot user (Reset and determinism).

Limitations

Known issues.

  • A path Notion doesn’t have returns the simulator’s plain 404 {"message": "No route in twin for …"}, not Notion’s object_not_found error, so the SDKs raise their generic error, not an API error.

Beyond the known issues, 29 of the 64 operations in the published spec are not served, 1 success response may leave out fields the spec requires, 116 documented responses have no test yet and 137 behaviors are not modeled. The details follow.

Show all limitations

Not served. 29 of the 64 operations in the published spec are not served. Calling one of these routes returns 501, unless a served route takes its path.

  • Not served at all: Agent Skills (3), Agents (7), Custom emojis (1), Meeting notes (2), OAuth (3), Sessions (5), Views (8)

Missing response fields. The spec requires these fields in a success response, and the simulator may leave them out:

  • PATCH /v1/blocks/{block_id} (200): request_id

Not tested. 294 tests compare the simulator with the real service. 116 documented responses have no test yet, and 38 of them need a credential our test account doesn’t hold (200 ×1, 401 ×6, 403 ×31). The other 78:

OperationStatusWhy
DELETE /v1/blocks/{block_id}429no request a client sends provokes it
DELETE /v1/comments/{comment_id}409no known request reaches it
DELETE /v1/comments/{comment_id}429no request a client sends provokes it
GET /v1/async_tasks/{task_id}200no test could build the request it needs (4 cases)
GET /v1/async_tasks/{task_id}400no known request reaches it
GET /v1/async_tasks/{task_id}429no request a client sends provokes it
GET /v1/blocks/{block_id}429no request a client sends provokes it
GET /v1/blocks/{block_id}/children406no known request reaches it
GET /v1/blocks/{block_id}/children409no known request reaches it
GET /v1/blocks/{block_id}/children429no request a client sends provokes it
GET /v1/blocks/{block_id}/children500no request a client sends provokes it
GET /v1/blocks/{block_id}/children503no request a client sends provokes it
GET /v1/blocks/{block_id}/children504no request a client sends provokes it
GET /v1/blocks/{block_id}/children529no request a client sends provokes it
GET /v1/comments429no request a client sends provokes it
GET /v1/comments/{comment_id}429no request a client sends provokes it
GET /v1/data_sources/{data_source_id}429no request a client sends provokes it
GET /v1/data_sources/{data_source_id}/templates429no request a client sends provokes it
GET /v1/data_sources/{data_source_id}/templates500no request a client sends provokes it
GET /v1/databases/{database_id}429no request a client sends provokes it
… and 55 more

Not modeled. Behavior the simulator does not model, by operation:

  • Documented statuses not reproduced: 406 (1 operation), 409 (1 operation), 500 (1 operation), 503 (1 operation), 504 (1 operation), 529 (1 operation).
  • Whether deleting a comment that opens a discussion also affects the thread’s remaining comments is unstated. (DELETE /v1/comments/{comment_id})
  • Ordering of the returned comments (creation order vs discussion grouping) is not documented. (GET /v1/comments)
  • Documented 406 row_limit_exceeded, 409 conflict_error/idempotency_key_reused/agent_deleted, 500 internal_server_error, 503 service_unavailable, 504 gateway_timeout and 529 service_overload have no caller-derivable trigger on this read-only operation and are left unmodeled. (GET /v1/comments/{comment_id})
  • Whether a comment on a block in the trash is still retrievable is unstated. (GET /v1/comments/{comment_id})
  • The operation also documents 406 (row_limit_exceeded), 409 (conflict_error / idempotency_key_reused / agent_deleted), 500 (internal_server_error), 503 (service_unavailable), 504 (gateway_timeout) and 529 (service_overload). (GET /v1/users/{user_id})
  • Whether an undashed uuid is accepted for user_id is not confirmed for this path parameter. (GET /v1/users/{user_id})
  • 403 status_change_not_allowed, workspace_credits_exhausted and agent_credit_limit_reached variants of error_api_403 are not separated from restricted_resource. (PATCH /v1/blocks/{block_id})
  • 403 workspace_credits_exhausted and agent_credit_limit_reached (with their additional_data recovery payloads) are listed in error_api_403 but have no documented trigger on a comment update. (PATCH /v1/comments/{comment_id})
  • 409 idempotency_key_reused / agent_deleted: this operation documents no idempotency key or agent input, so only conflict_error is modeled. (PATCH /v1/data_sources/{data_source_id})
  • 409 idempotency_key_reused and agent_deleted have no documented trigger on this operation. (PATCH /v1/databases/{database_id})
  • Documented infrastructure responses 406 row_limit_exceeded, 500 internal_server_error, 503 service_unavailable, 504 gateway_timeout and 529 service_overload are omitted: no caller-controllable trigger is documented. (PATCH /v1/databases/{database_id})
  • Whether erase_content and template application are applied before or after the properties merge, and what they return, is not documented. (PATCH /v1/pages/{page_id})
  • Attachments (file_upload_id referencing an uploaded FileUpload) and the has_pending_attachments / comment.updated webhook behavior are not modeled: no FileUpload operation is in scope to produce an uploaded file id. (POST /v1/comments)
  • display_name variants (user, custom) and the resolved_name the service computes for each are not modeled. (POST /v1/comments)
  • The 403 variants workspace_credits_exhausted and agent_credit_limit_reached have no derivable trigger for this operation and are not modeled. (POST /v1/file_uploads/{file_upload_id}/complete)
  • filter_properties semantics (which property values are retained in the returned page) are undocumented beyond the parameter’s type. (POST /v1/pages)
  • The 409 codes idempotency_key_reused and agent_deleted are in the shared enum but this operation documents no idempotency key input, so only conflict_error is modeled. (POST /v1/pages/{page_id}/move)
  • 400 missing_version. (POST /v1/search)
  • … and 113 more

By design.

  • URLs serve nothing. A page’s url is on app.notion.com/p/, as Notion’s are, and a database’s and a data source’s are on www.notion.so; none serves anything.
  • Feature limits sit on their pages. File uploads and Data sources, templates and moves list the limits of their routes.

Release notes: Changelog

Last updated on