REST API reference
Endpoints of https://openthink.app/api/v1 for tables, rows, SQL, HTML page files and webhooks.
Base URL
https://openthink.app/api/v1Every request needs Authorization: Bearer <key>. Requests and responses are JSON. The OpenAPI 3 description is maintained in the repository as think-v1-api.yaml.
Account
GET
/meCheck the key: project, scope and tables.{ "user": { ... }, "space": { "id": "...", "name": "Kanban" },
"key": { "id": "...", "name": "n8n", "scope": "write", "expiresAt": null, "tables": null },
"scope": "write" }Tables
GET
/tablesList up to 200 tables with id, name, url, columns, rowCount and updatedAt.GET
/tables/{id}One table.Rows
GET
/tables/{id}/rowsList rows. Returns { rows, total, nextOffset }.| Parameter | Description |
|---|---|
limit | 1–500, default 100. |
offset | Rows to skip. Pass nextOffset from the previous page. |
order | position, created or updated. created and updated default to newest first. |
dir | asc or desc. |
since | ISO time: only rows created or updated after it. Use it for polling triggers. |
ids | Comma-separated row IDs. |
POST
/tables/{id}/rowsAdd one row or up to 500. Returns 201 { rows }.{ "values": { "Name": "An", "Score": 8.5 }, "body": "Optional **Markdown** page of the row" }
{ "rows": [ { "values": { "Name": "An" } }, { "values": { "Name": "Binh" } } ] }Columns that do not exist are listed in unknownColumns. body is up to 100,000 characters.
GET
/tables/{id}/rows/{rowId}One row.PATCH
/tables/{id}/rows/{rowId}Merge { values } into the row. null clears a cell.DELETE
/tables/{id}/rows/{rowId}Delete the row. Returns { id, deleted: true }.Row object
{
"id": "62e757cc63f9",
"url": "https://openthink.app/n/<table>?row=62e757cc63f9",
"createdAt": "2026-11-27T03:01:12.575Z",
"updatedAt": "2026-11-27T03:01:12.575Z",
"createdBy": { "id": "...", "name": "n8n" },
"values": {
"Name": "An",
"Score": 8.5,
"Status": "Done",
"Labels": ["A"],
"Submitted": true,
"Date": "2026-11-27"
}
}| Column type | JSON value |
|---|---|
| Title, text, URL | string |
| Number | number |
| Checkbox | true / false |
| Date | "yyyy-mm-dd" |
| Select | option name |
| Multi-select | array of option names |
| Person | array of OpenThink user IDs |
| Relation | array of row IDs of the target Database |
| Files | array of Markdown links [name](url) |
| Empty cell | null |
Writes accept the same shapes. A select option that does not exist yet is added.
SQL
POST
/sqlRun SQLite over the tables of the project.{ "sql": "SELECT \"Name\" FROM \"Tasks\" WHERE \"Status\" = ?", "params": ["Todo"] }- Quote table and column names with double quotes.
"_id"is the row ID. SELECTreturns{ columns, rows }.INSERT,UPDATEandDELETEneed a write key and returninserted,updatedanddeleted.- Up to 100,000 characters. Not available to keys limited to tables.
HTML page files
GET
/pages/{id}/filesList the files of an HTML page: { id, url, files: [{ path, size, type }] }.PUT
/pages/{id}/files/{path}Add or overwrite one file; the body is the file's bytes.GET
/pages/{id}/files/{path}Download one file.DELETE
/pages/{id}/files/{path}Delete one file.POST
/pages/{id}/filesPush a whole build at once.{ "files": [ { "path": "app.js", "text": "..." }, { "path": "img/logo.png", "base64": "..." } ],
"remove": ["old.js"], "replace": false, "html": "<new index.html>" }Up to 20 files per page and 1 MB per file; JavaScript, CSS, JSON and images only. Pages that are open run the new files right away.
Webhooks
See Webhooks.
GET
/webhooksList webhooks.POST
/webhooksCreate a webhook. Returns its secret once.GET
/webhooks/{id}One webhook and its recent deliveries.PATCH
/webhooks/{id}Turn a webhook on or off: { active }.DELETE
/webhooks/{id}Delete a webhook.POST
/webhooks/{id}/testSend a ping now.