Nootion API
Nootion's REST API lets scripts and other apps (Home Assistant, n8n, a backup script…) read and write pages, query and fill databases, and search, as you, with a personal token. AI assistants connect more simply through the MCP server.
- Tokens
- Requests and errors
- Spaces and pages
- Page content
- Databases
- Files
- Automations
- Recurring templates
- Comments
- Search
- Examples
#Tokens
Create a token in My account › API tokens:
- Name: to recognise it later (e.g. "Home Assistant").
- Spaces: the spaces it can reach, among those you belong to. Pages shared with you from other spaces are out of its reach.
- Access: read only (it can read and search, nothing else) or read and write. With write access it can do what you can do in those spaces.
- Expiry: 30, 90 or 365 days, or never.
The token (nt_…) is shown once: copy it then. The list shows when each token was last used, apps connected
with OAuth (such as Claude), and what was changed with your tokens; revoke one there and apps using it stop at once.
Page versions written with a token are marked with its name in the page's history. A token stops working too when it expires or when your account is disabled.
A token can't change your account, other tokens, sharing or public links, delete anything for good (the trash keeps what it deletes), or use the administration.
#Requests and errors
Send the token in the Authorization header, and JSON bodies with Content-Type: application/json:
curl https://nootion.example.com/api/auth/me -H "Authorization: Bearer nt_…"Answers are JSON. Errors have an HTTP status and a body like { "error": "token_read_only", "message": "This API token is read-only." } (the message is in your interface language):
| Status | error |
Meaning |
|---|---|---|
| 400 | invalid_input, bad_content, unknown_property… |
The request is wrong; the message says what. |
| 401 | bad_token |
Unknown, revoked or expired token. |
| 403 | token_not_allowed |
Tokens can't make this request (see above). |
| 403 | token_read_only |
Writing with a read-only token. |
| 404 | not_found |
It doesn't exist, or the token can't reach it (they are not told apart). |
| 429 | too_many_requests |
More than 300 requests in a minute with this token (API_RATE_LIMIT on the server changes it). |
Ids are UUIDs. Dates are ISO 8601.
#Spaces and pages
| Request | What it does |
|---|---|
GET /api/auth/me |
The token's user. |
GET /api/users |
The people you work with (id, name, email), for person columns and mentions: those who share a space or a page with you. Administrators get everyone. |
GET /api/workspaces |
The token's spaces, with your role in each (viewer with a read-only token). |
GET /api/workspaces/:id/pages |
Every page and database of a space (id, parentId, kind, title, icon, position…). Database rows are not listed: query their database. |
GET /api/pages/:id |
A page's details: title, icon, cover, kind (page, database or row), your role, breadcrumb. |
POST /api/pages |
Creates a page: { "workspaceId", "parentId": null, "title", "icon"?, "markdown"? } (or content, see below). A subpage gets a link at the end of its parent, unless "linkInParent": false. |
PATCH /api/pages/:id |
Changes title, icon, cover (https://… image), fullWidth, locked. While a page is locked, changes to its content, title, icon or cover (and, for a database, to its columns, views and templates) answer 423 Locked. |
POST /api/pages/:id/move |
Moves it: { "parentId": "…" or null, "index"?, "workspaceId"? }. A line holding only a link to it moves with it, from the old parent to the end of the new one. With workspaceId, it goes to another space with all its subpages (owners and editors of both spaces only; parentId must then be a page of that space, or null). |
DELETE /api/pages/:id |
Moves it to the trash, with its subpages. |
POST /api/pages/:id/restore |
Takes it out of the trash. |
GET /api/pages/:id/backlinks |
Pages that link to it. |
GET /api/pages/all |
Every page and database you can read, with its space, path, author and dates. |
GET /api/pages/graph |
The same pages as nodes, and links between them: child (a subpage) or link (a link or mention in the content). |
GET /api/pages/:id/history |
Its versions; GET /api/pages/:id/history/:versionId reads one. |
GET /api/inbox |
Your inbox (pageId, made on first use in your personal space) and the notes still in it (items, newest first). |
POST /api/inbox |
Needs a token that reaches your personal space, like the request above. Drops a note in it: { "text", "title"?, "url"? }. Without a title, the first line of the text is the title. Notes are subpages of the inbox: file one by moving it. |
GET /api/pages/templates |
Page templates; POST /api/pages/:id/apply-template with { "templateId" } fills an empty page from one. |
An icon is an emoji, or icon:<id> for an image uploaded in the icon picker: GET /api/icons lists them, and the image is at /api/icons/<id>/image.
#Page content
Pages and database rows have content. It is read and written as Markdown, or as the editor's JSON (ProseMirror) for everything Markdown can't say.
| Request | What it does |
|---|---|
GET /api/pages/:id/content |
{ "id", "title", "markdown", "content" }. Includes what people are typing right now. |
PUT /api/pages/:id/content |
Replaces the content: { "markdown": "…" } or { "content": { "type": "doc", … } }. The previous content stays in the page's history. |
POST /api/pages/:id/content |
Adds at the end of the page, same body. |
Changes show at once to people who have the page open.
Markdown understood: headings (# to ###), paragraphs, bold, italic, strike, code, links, bulleted,
numbered and to-do lists (- [ ], - [x], nested by indentation), quotes, code blocks with their language, tables,
images (), dividers (---). Links and images must point to http(s)://, mailto: or the
server's files (/api/attachments/…).
The JSON form takes the editor's blocks only (toggles, callouts, columns, dates, links to pages…); read a page's
content to see how they are written. A date with a reminder keeps it only if the reminder is yours. A person is
{ "type": "userMention", "attrs": { "id", "userId", "name" } }: they are told once per id, the mention being yours.
A synced block is { "type": "syncedBlock", "attrs": { "sourceId" } }: the same blocks shown in several pages. Its
content lives in a hidden page of its own (kind block, under the page where it was made), read and written like any
page's (/api/pages/:sourceId/content), with the access of that page. In the Markdown of a page, synced blocks are
written out as their content, or as "No access to this content" when you can't read it.
| Request | What it does |
|---|---|
POST /api/pages/:id/synced-blocks |
Makes a synced block in the page: { "content"?: [ …blocks ] } (an empty line when missing). Answers { "id" }; add { "type": "syncedBlock", "attrs": { "sourceId": id } } to the content of the pages that show it. |
GET /api/synced-blocks/:id |
{ "block": { "id", "host", "role", "locked", "content", "pages" } }: where it lives, its content and the pages (you can read) that show it. 404 without access. |
GET /api/synced-blocks?q= |
Synced blocks you can read whose text or page title matches, latest first: { "blocks": [{ "id", "host", "preview", "updatedAt" }] }. |
#Databases
A database is a page of kind database; its rows are pages of kind row, with cell values and content.
| Request | What it does |
|---|---|
GET /api/databases |
Databases you can read. |
GET /api/databases/:id |
Its columns (properties: id, name, type, config with select options), views, and all rows. |
GET /api/databases/:id?page=…&block=… |
The same database as shown in a linked view: views are those of the block block (its linkId) in the page page, made from the database's first view the first time. |
POST /api/databases/:id/query |
Rows filtered and sorted, a page at a time (below). |
POST /api/databases |
Creates one: { "workspaceId", "parentId": null, "title" }. |
POST /api/databases/:id/rows |
Adds a row: { "values": { … }, "markdown"?, "after"? }. With after (a row id, or null for first), the row is placed right after that row instead of last. |
PATCH /api/databases/:id/rows/:rowId |
Changes cells: { "values": { … } } (cells not named stay as they are; null empties one). |
POST /api/databases/:id/rows/:rowId/duplicate |
Copies a row (cells, content, subpages, files) right after it. |
POST /api/databases/:id/rows/:rowId/move |
Changes the manual order of the rows: { "after": rowId | null } (null: first). Views without a sort show this order. |
POST /api/databases/:id/rows/delete |
Moves rows to the trash: { "ids": [ … ] }. |
POST /api/databases/:id/properties |
Adds a column: { "name", "type", "config" }. PATCH/DELETE …/properties/:propId change or remove one. |
#Cell values
values is keyed by column id or name (any case). A select option may be given by its id or its name.
| Column type | Value |
|---|---|
title, text, url, email, phone |
"text" |
number, currency, percent |
12.5 |
checkbox |
true / false |
date |
{ "start": "2026-11-15", "end": null }; with a time: { "start": "2026-11-15T09:00" } |
select, status |
"Done" (option name or id) |
multi_select |
["Urgent", "Home"] |
person |
["<user id>"] |
relation |
["<row id>"] |
file |
[{ "id": "<attachment id>", "name": "bill.pdf" }] |
created_time, last_edited_time, created_by, last_edited_by, unique_id, rollup, formula |
Read only. |
Rows read back have values keyed by column id, with option ids: GET /api/databases/:id (or the query's
properties) gives the names.
#Query
POST /api/databases/:id/query
{
"filters": [{ "propertyId": "Status", "operator": "is", "value": "To do" }],
"filterMode": "and",
"sorts": [{ "propertyId": "Due", "direction": "asc" }],
"limit": 100,
"cursor": null
}All fields are optional. viewId uses a view's filters and sorts instead. Columns are named by id or name.
The answer is { "rows", "total", "nextCursor", "properties", "people", "related" }: pass nextCursor as cursor
for the next rows, until it is null. limit goes up to 1000. A read-only token can query.
Operators, by column type:
| Type | Operators | value |
|---|---|---|
| text, url, email, phone, title | contains, not_contains, is, is_not, starts_with, ends_with |
text |
| number, currency, percent, unique_id | eq, neq, gt, lt, gte, lte |
number |
| date, created/edited time | is, before, after, on_or_before, on_or_after |
"2026-11-15", or today, tomorrow, yesterday, one_week_ago, one_week_from_now, one_month_ago, one_month_from_now |
| date | within |
past_week, past_month, past_year, next_week, next_month, next_year |
| checkbox | checked, unchecked |
none |
| select, status | is, is_not |
option name or id |
| multi_select | contains, not_contains |
option name or id |
| person, created_by, last_edited_by | contains, not_contains |
user id, or me for you |
| relation, file | contains, not_contains |
text found in a linked row's title or a file's name |
| all | is_empty, is_not_empty |
none |
#Files
| Request | What it does |
|---|---|
POST /api/pages/:id/attachments |
Uploads a file (multipart/form-data, field file): { "attachment": { "id", "filename", "url" } }. Put its url in the content () or in a file column. |
GET /api/attachments/:id |
Downloads it (?download to save it under its name). |
#Automations
"When something happens to a row, run steps on it." Steps are the same as buttons' (see the ButtonStep type in
packages/shared/src/buttons.ts), without "open". They run as the person who last saved the automation, and what
they change doesn't set off other automations. Managing them needs the "editor" role on the database.
An automation saved with a token still runs as you, with all your rights. Its steps may therefore only name databases, pages and templates in the token's spaces: anything else is answered with 404.
| Request | What it does |
|---|---|
GET /api/databases/:id/automations |
The database's automations, each with its last runs (error is null when it went well). |
POST /api/databases/:id/automations |
Creates one: { "name"?, "enabled"?, "trigger", "steps" }. |
PUT /api/automations/:id |
Replaces it (same body). |
POST /api/automations/:id/enabled |
Pauses or resumes it: { "enabled": false }. |
DELETE /api/automations/:id |
Deletes it. |
Triggers: { "type": "row_added" }, { "type": "property_changed", "propertyId", "to": "Paid" or null } (to: an
option's name, "true"/"false" for a checkbox, or a text; null for any change), and
{ "type": "date_reached", "propertyId" } (a date column: at its time, or at 9:00 for a day).
#Recurring templates
A page template or a row template can make a new page (or row) by itself on a schedule. Setting it needs the "editor" role on the template; the pages are made as the person who last saved the schedule, titled with the template's title and the day ("Weekly review — 2 Nov 2026").
| Request | What it does |
|---|---|
GET /api/pages/:id/recurrence |
The template's schedule, with nextRunAt, lastRunAt and lastError; null if it doesn't repeat. |
PUT /api/pages/:id/recurrence |
Sets it (see below). |
DELETE /api/pages/:id/recurrence |
Stops it. |
The body: { "frequency": "daily" | "weekly" | "monthly", "interval": 1, "weekdays": [1, 4], "monthDay": 1, "time": "08:00", "timeZone": "Europe/Paris", "startDate": "2026-11-02", "parentId", "dateProperty", "enabled" }.
weekdays (0 = Sunday) is for weekly schedules, monthDay for monthly ones (the last day of shorter months).
A page template needs parentId, the page the new pages go in; a row template can give dateProperty, a date
column that gets the day of each run.
#Comments
Threads of comments on a page (not on databases), about a passage or the whole page. A comment's body is plain
text where <@userId> mentions someone (ids from GET /api/users). Reading needs access to the page; writing needs
at least the "commenter" role.
| Request | What it does |
|---|---|
GET /api/pages/:id/comments |
The page's threads, open ones first, each with its comments. |
POST /api/pages/:id/comments |
Starts a thread: { "body" } on the whole page. (The editor also sends an anchor, positions in the live document.) |
POST /api/comments/threads/:id/replies |
Answers a thread: { "body" }. Answering a resolved thread opens it again. |
POST /api/comments/threads/:id/resolve |
{ "resolved": true } or false. |
PATCH /api/comments/:id |
Changes your comment: { "body" }. |
DELETE /api/comments/:id |
Deletes your comment; the last one of a thread deletes the thread. |
People mentioned, and the others taking part in a thread when it gets a reply, receive a notification (in the
app's Notifications, and on their devices when they turned notifications on). Notifications themselves
(/api/comments/notifications) are read in the app only: a token doesn't reach them, as they cover every space.
#Search
GET /api/search?q=words&limit=20 searches titles, content, the values of database rows and attached files (PDFs,
scans) of the token's spaces: { "results": [{ "id", "title", "kind", "path", "snippet", "match"?, "updatedAt", "file"? }] }.
A row is found by its cells as well as its title: searching dupont finds the invoice whose "Customer" is Dupont, with
the snippet Customer: Dupont · Status: Paid and "match": "cells". Text, number, select, status, person, link,
e-mail, phone, file and ID columns are searched; computed ones (formulas, rollups) are not.
Filters, as more parameters (each optional; with filters and no q, the most recently changed pages that match):
| Parameter | Keeps |
|---|---|
workspaceId |
pages of this space |
kind |
page, database, row (database rows) or file (attached files) |
databaseId |
rows of this database (GET /api/search/databases lists them) |
authorId |
pages created (files: added) by this person |
editedSince |
pages changed since a number of days (7d) or a date (2026-01-31) |
Saved searches, the user's own: GET /api/search/saved, POST /api/search/saved with
{ "name", "query", "filters": { …the parameters above } } (the same name replaces it), PATCH and DELETE /api/search/saved/:id.
#Examples
Add a row to a to-do database, with a note in its page:
curl -X POST https://nootion.example.com/api/databases/$DB/rows \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{ "values": { "Name": "Change the boiler filter", "Status": "To do", "Due": { "start": "2026-11-15" } },
"markdown": "Model **X200**, filter ref. F-12." }'Append a line to a journal page:
curl -X POST https://nootion.example.com/api/pages/$PAGE/content \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{ "markdown": "- 21:30 Front door opened" }'The open tasks due this week, in Python:
import requests
API = "https://nootion.example.com/api"
headers = {"Authorization": "Bearer nt_…"}
res = requests.post(f"{API}/databases/{db}/query", headers=headers, json={
"filters": [
{"propertyId": "Status", "operator": "is_not", "value": "Done"},
{"propertyId": "Due", "operator": "within", "value": "next_week"},
],
"sorts": [{"propertyId": "Due", "direction": "asc"}],
})
for row in res.json()["rows"]:
print(row["title"])