Integrations and the API
Connect n8n, Make, Zapier or your own scripts to chosen pages and databases with a key.
An integration is a key for one workspace that reaches only the pages you connect to it, and their subpages. Automation tools use it to read pages, add pages, find rows, and add, change or delete database rows through HTTP requests. With a webhook, Metis also tells them when something changes, so a workflow can start on its own. It works in any Connected workspace, free plan included. An end-to-end encrypted Private cloud and password-locked pages stay out of reach, so for automations make a Connected workspace, even one with only you in it.
Make an integration
- Open the workspace, then Settings → Integrations and choose New integration.
- Name it, and tick Can add and change pages and rows if it should write. Otherwise it can only read.
- Under Connected pages, tick the pages it may reach. A page brings its subpages and the databases on them.
- Choose Create and show key and copy the key. It is shown once.
Change the pages or the name with Edit. New key replaces the key, and Delete turns the integration off; either way the old key stops at once. A key acts as the person who made it: it can't edit more than they can, and it stops if they leave the workspace. Only they or a workspace admin can change it.
Use it in n8n
Metis has its own n8n nodes: Metis for every call below, and Metis Trigger to start a workflow when something changes. They are a community node, so they work in self-hosted n8n.
- In n8n, open Settings → Community nodes and choose Install.
- Enter
n8n-nodes-metisnote, tick the box and install. - Add a Metis node, and for its credential paste your key. Leave the server URL as it is unless you run your own Metis server.
- Pick what to do, such as Row → Create, and the database from the list.
Without the nodes, use an HTTP Request node: for authentication choose Generic → Header Auth, set the header name to Authorization and the value to Bearer, a space and your key, and use the address shown under Calling the API, for example …/api/v1/databases.
What you can call
| Request | Does |
|---|---|
GET /me | The integration, its workspace and its connected pages. |
GET /search?query=… | Pages it reaches whose text matches. |
GET /pages/{id} | A page as Markdown, with its subpages. |
POST /pages | A new page under a connected page: { "parentId", "title", "markdown" }. |
POST /pages/{id}/append | Adds Markdown to the end of a page, or of a database row's page (give the row id): { "markdown" }. |
GET /databases | Its databases, with their ids and properties. |
GET /databases/{id}/rows | Rows with their ids and property values by name, 100 at a time. Add ?cursor= with the nextCursor of the last answer for more. |
POST /databases/{id}/query | Rows that match: { "filter": [{ "property": "Done", "equals": false }], "sort": [{ "property": "Due", "direction": "asc" }], "limit": 50 }. |
POST /databases/{id}/rows | Adds rows: { "rows": [{ "Name": "Call mum", "Done": true }] }. |
PATCH /databases/{id}/rows | Changes rows: { "rows": [{ "id": "…", "properties": { "Done": true } }] }. |
POST /databases/{id}/rows/delete | Deletes rows: { "ids": ["…"] }. |
Every condition in a filter must hold. A condition names a property and one of equals, notEquals, contains, notContains, greaterThan, lessThan, isEmpty or isNotEmpty. Dates compare by their start, like "2026-12-01". Sort by a property, or by { "timestamp": "updatedAt" }, and add "updatedAfter" (a time in milliseconds) for rows changed since then.
Formulas and rollups are worked out in the app, so rows list stored values only. Each key can make 120 requests a minute.
Webhooks
Give an integration a Webhook address in Edit, and Metis sends it a POST when a page or row the integration reaches changes: page.created, page.updated, page.deleted, row.created, row.updated or row.deleted. A row event carries the row and its values, and row.updated lists the properties that changed.
- In n8n, add a Metis Trigger node, pick the events and copy its webhook URL. Put the signing secret from the next step in its Metis credential.
- In Metis, open the integration's Edit, paste the URL under Webhook address and save.
- Choose Send test event. The list shows whether it arrived.
Edits made in quick succession arrive as one event a few seconds later. Changes the integration makes itself through the API are not sent back to it, so a workflow can't trigger itself. Failed deliveries are tried three more times. The address must start with https:// and be reachable from the internet.
Each request has an X-Metis-Timestamp and an X-Metis-Signature header. To check one came from Metis, compute the HMAC-SHA256 of the timestamp, a dot and the request body, using the signing secret shown in Edit; it should equal the signature after sha256=.
The Metis Trigger node checks the signature for you and ignores requests older than five minutes. With n8n's plain Webhook node instead, turn on its Raw Body option and hash that raw body: the parsed body, turned back into text, can differ from what Metis sent. A Code node needs require('crypto') for this, which self-hosted n8n allows only when it runs with NODE_FUNCTION_ALLOW_BUILTIN=crypto.
For AI apps such as Claude and ChatGPT, use AI connectors instead.