OpenThink Cloud

REST API reference

Endpoints of https://openthink.app/api/v1 for tables, rows, SQL, HTML page files and webhooks.

Base URL

http
https://openthink.app/api/v1

Every 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.
json
{ "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 }.
ParameterDescription
limit1–500, default 100.
offsetRows to skip. Pass nextOffset from the previous page.
orderposition, created or updated. created and updated default to newest first.
dirasc or desc.
sinceISO time: only rows created or updated after it. Use it for polling triggers.
idsComma-separated row IDs.
POST/tables/{id}/rowsAdd one row or up to 500. Returns 201 { rows }.
json
{ "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

json
{
  "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 typeJSON value
Title, text, URLstring
Numbernumber
Checkboxtrue / false
Date"yyyy-mm-dd"
Selectoption name
Multi-selectarray of option names
Personarray of OpenThink user IDs
Relationarray of row IDs of the target Database
Filesarray of Markdown links [name](url)
Empty cellnull

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.
json
{ "sql": "SELECT \"Name\" FROM \"Tasks\" WHERE \"Status\" = ?", "params": ["Todo"] }
  • Quote table and column names with double quotes. "_id" is the row ID.
  • SELECT returns { columns, rows }. INSERT, UPDATE and DELETE need a write key and return inserted, updated and deleted.
  • 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.
json
{ "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.

Last updated 2026-12-03 UTC. Something wrong or missing? Send feedback.