REST API
kanopy 1.2.4. Every endpoint the web app uses. This page is built from openapi.json (OpenAPI 3.1), which every kanopy also serves at /openapi.json.
Overview#
The REST API the kanopy web app uses. Agents should prefer the MCP endpoint (/mcp), which answers in compact text.
Auth. Send an API token in the X-Key header (create one under Settings), or use the kb_session cookie from /api/login. A sent X-Key is the only credential checked. Tokens can use the board only: routes marked cookie-only (account, teams, tokens, users, sharing, settings) refuse them with 403. Read-only (viewer) tokens can only read, and a token limited to some projects sees only those.
Writes with the cookie must be same-origin and send JSON (or multipart for uploads); token requests skip that check.
Errors come back as {"error": "..."} with 400, 401, 403, 404, 409 or 415.
Revision. Every /api response carries X-Revision, the board's change counter; a successful write bumps it and also sends X-Revision-Was.
Auth#
GET /api/setup#
Whether the first admin still has to be created.
No sign-in needed.
200OK: object
POST /api/setup#
Create the first admin on an empty board and sign in.
Works only while the board has no users. Sets the session cookie. If KANOPY_KEY is set, it is imported as this admin's API token.
No sign-in needed.
Body application/json
| Field | Type | Description |
|---|---|---|
username required | string | |
password required | string | At least 8 characters for new accounts |
200OK: Ok- Errors:
400,403
POST /api/login#
Sign in.
Sets the kb_session cookie (30 days). Five failed sign-ins from one address within 15 minutes lock it out for the rest of that window. When the account has a second factor, no cookie is set yet: the response is {"two_factor": [...], "ticket": "..."} and sign-in finishes at /api/login/2fa within 5 minutes.
No sign-in needed.
Body application/json
| Field | Type | Description |
|---|---|---|
username required | string | |
password required | string | At least 8 characters for new accounts |
200OK: any- Errors:
400,403
POST /api/login/2fa#
Finish signing in with a second factor.
Send code (authenticator code or a recovery code) or passkey (the browser's assertion as JSON, from /api/login/passkey). Sets the session cookie. Five wrong tries end the ticket; wrong tries also count toward the address's sign-in limit.
No sign-in needed.
Body application/json
| Field | Type | Description |
|---|---|---|
ticket required | string | |
code | string | |
passkey | object |
200OK: Ok- Errors:
400,403
POST /api/login/passkey#
Browser options for finishing a sign-in with a passkey.
No sign-in needed.
Body application/json
| Field | Type | Description |
|---|---|---|
ticket required | string |
200OK: PasskeyOptions- Errors:
400,403
POST /api/logout#
Sign out.
Ends the session and clears the cookie.
No sign-in needed.
200OK: Ok
POST /api/signup#
Create an account from an invite link and sign in.
No sign-in needed.
Body application/json
| Field | Type | Description |
|---|---|---|
token required | string | |
username required | string | |
password required | string |
200OK: Ok- Errors:
400,404,409
GET /api/invites/check/{token}#
Check that an invite link can still be used.
No sign-in needed.
| Parameter | In | Type | Description |
|---|---|---|---|
token required | path | string | Invite token from the link |
200OK: Ok- Errors:
404
Invites#
GET /api/invites#
List invites (admin).
Sign-in cookie only: API tokens are refused.
200OK: object- Errors:
400,401,403,404
POST /api/invites#
Create a single-use invite link (admin).
The token is only shown in this response.
Sign-in cookie only: API tokens are refused.
200OK: object- Errors:
400,401,403,404
DELETE /api/invites/{invite_id}#
Revoke an unused invite (admin).
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
invite_id required | path | integer | Invite id |
200OK: Ok- Errors:
400,401,403,404
Account#
GET /api/me#
The signed-in user.
Sign-in cookie only: API tokens are refused.
200OK: Me- Errors:
400,401,403,404
PATCH /api/me#
Update your password, ntfy settings, timezone or notification toggles.
Only the fields sent change. A new password signs out every other session.
Sign-in cookie only: API tokens are refused.
Body application/json
| Field | Type | Description |
|---|---|---|
password | string | New password; needs current_password |
current_password | string | |
ntfy_url | string | Your ntfy server; empty means ntfy.sh |
ntfy_token | string | Access token for your ntfy server; empty keeps the stored one |
clear_ntfy_token | boolean | |
ntfy_topic | string | Letters, digits, dashes and underscores |
timezone | string | IANA name you picked; empty follows your browser |
timezone_auto | string | IANA name your browser reports |
notify_remind | boolean | |
notify_due | boolean | |
notify_digest | boolean | |
notify_agent | boolean | |
notify_mention | boolean | |
notify_assign | boolean | |
notify_activity | boolean |
200OK: Me- Errors:
400,401,403,404
PUT /api/me/avatar#
Set your picture.
Sign-in cookie only: API tokens are refused.
Body multipart/form-data
| Field | Type | Description |
|---|---|---|
file required | string | PNG, JPEG, WebP or GIF, at most 512 KB |
200OK: User- Errors:
400,401,403,404
DELETE /api/me/avatar#
Remove your picture.
Sign-in cookie only: API tokens are refused.
200OK: User- Errors:
400,401,403,404
POST /api/me/test#
Send a test push to your ntfy topic.
Sign-in cookie only: API tokens are refused.
200OK: Ok- Errors:
400,401,403,404
Two-factor#
GET /api/me/2fa#
Your second factors.
Sign-in cookie only: API tokens are refused.
200OK: TwoFactor- Errors:
400,401,403,404
POST /api/me/2fa/totp#
Start setting up an authenticator app.
Nothing changes until /api/me/2fa/totp/confirm gets a matching code.
Sign-in cookie only: API tokens are refused.
Body application/json
| Field | Type | Description |
|---|---|---|
password required | string | Your current password |
200OK: object- Errors:
400,401,403,404
DELETE /api/me/2fa/totp#
Turn the authenticator app off.
Sign-in cookie only: API tokens are refused.
Body application/json
| Field | Type | Description |
|---|---|---|
password required | string | Your current password |
200OK: TwoFactor- Errors:
400,401,403,404
POST /api/me/2fa/totp/confirm#
Turn the authenticator app on with a code from it.
The first second factor also creates 10 recovery codes, returned once in recovery.
Sign-in cookie only: API tokens are refused.
Body application/json
| Field | Type | Description |
|---|---|---|
code required | string |
200OK: TwoFactor- Errors:
400,401,403,404
POST /api/me/2fa/recovery#
Replace your recovery codes.
The new codes are only shown in this response; the old ones stop working.
Sign-in cookie only: API tokens are refused.
Body application/json
| Field | Type | Description |
|---|---|---|
password required | string | Your current password |
200OK: TwoFactor- Errors:
400,401,403,404
POST /api/me/2fa/passkeys/options#
Browser options for adding a passkey.
Passkeys need https (or localhost).
Sign-in cookie only: API tokens are refused.
Body application/json
| Field | Type | Description |
|---|---|---|
password required | string | Your current password |
200OK: PasskeyOptions- Errors:
400,401,403,404
POST /api/me/2fa/passkeys#
Store a passkey the browser just made.
The first second factor also creates 10 recovery codes, returned once in recovery.
Sign-in cookie only: API tokens are refused.
Body application/json
| Field | Type | Description |
|---|---|---|
name | string | Label like laptop |
credential required | object | The browser credential as JSON (credential.toJSON()) |
200OK: TwoFactor- Errors:
400,401,403,404
DELETE /api/me/2fa/passkeys/{passkey_id}#
Remove a passkey.
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
passkey_id required | path | integer | Passkey id |
Body application/json
| Field | Type | Description |
|---|---|---|
password required | string | Your current password |
200OK: TwoFactor- Errors:
400,401,403,404
Notifications#
GET /api/notifications#
Your inbox: the newest 100 notifications and the unread count.
200OK: Inbox- Errors:
400,401,403,404
POST /api/notifications/read#
Mark notifications read.
Body application/json
| Field | Type | Description |
|---|---|---|
ids | integer[] | Leave out to mark every notification read |
200OK: Inbox- Errors:
400,401,403,404
Projects#
GET /api/projects#
Every project you can see, in tree order.
200OK: object- Errors:
401
POST /api/projects#
Create a project by path.
Body application/json
| Field | Type | Description |
|---|---|---|
path required | string | Slash path like Code/weatherbox; missing parents are created |
description | string | |
folder | string | Local directory the project lives in, absolute or starting with ~ |
200OK: object- Errors:
400,401,403,404
PATCH /api/projects/{project_id}#
Rename or move, describe, archive, color or set the folder of a project (manager).
| Parameter | In | Type | Description |
|---|---|---|---|
project_id required | path | integer | Project id |
Body application/json
| Field | Type | Description |
|---|---|---|
path | string | New slash path; renames and/or moves it |
description | string | |
archived | boolean | |
color | string | #rrggbb, or empty to clear |
folder | string | Absolute or ~ path, or empty to clear |
200OK: object- Errors:
400,401,403,404
DELETE /api/projects/{project_id}#
Delete an empty project.
| Parameter | In | Type | Description |
|---|---|---|---|
project_id required | path | integer | Project id |
200OK: Ok- Errors:
400,401,403,404
POST /api/projects/order#
Set the parent and order of a group of sibling projects.
Body application/json
| Field | Type | Description |
|---|---|---|
parent_id | integer | null | New parent, or null for top level |
ids required | integer[] | Every child under that parent, top to bottom |
200OK: Ok- Errors:
400,401,403,404
GET /api/projects/{project_id}/activity#
Task history across a project and its sub-projects, newest first.
| Parameter | In | Type | Description |
|---|---|---|---|
project_id required | path | integer | Project id |
before | query | integer | Only events older than this event id, for the next page (100 per page) |
200OK: object- Errors:
400,401,403,404
GET /api/projects/{project_id}/people#
Usernames that can see a project, most recently active first.
Owner, shared users and members of shared teams, here or on a parent project. Ordered by their latest change or comment in the project or its sub-projects; people with no activity follow alphabetically.
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
project_id required | path | integer | Project id |
200OK: object- Errors:
400,401,403,404
Sharing#
GET /api/projects/{project_id}/shares#
Who a project is shared with, plus its owner and shares inherited from parents.
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
project_id required | path | integer | Project id |
200OK: object- Errors:
400,401,403,404
POST /api/projects/{project_id}/shares#
Share a project with a user or a team (manager).
Sharing again changes the role. Sharing includes every sub-project.
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
project_id required | path | integer | Project id |
Body application/json
| Field | Type | Description |
|---|---|---|
role | "viewer" | "editor" | "manager" | |
username | string | User to share with |
team | string | Team name to share with, instead of username |
200OK: object- Errors:
400,401,403,404
DELETE /api/shares/{share_id}#
Remove a share (manager).
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
share_id required | path | integer | Share id from the share list |
200OK: object- Errors:
400,401,403,404
Tasks#
GET /api/tasks#
Task cards for every project or one project and its sub-projects.
| Parameter | In | Type | Description |
|---|---|---|---|
project | query | integer | Project id; its sub-projects are included |
done_limit | query | integer | Keep every open task but only this many of the newest done ones |
brief | query | string | Any value: return only id, project_id, project, title, status, priority and updated |
200OK: object- Errors:
401
POST /api/tasks#
Create a task (editor).
Body application/json
| Field | Type | Description |
|---|---|---|
title required | string | Required on create |
description | string | Markdown; checklist steps as "- [ ] " |
project_id required | integer | Required on create; on update, moves the task (editor on the target needed) |
status | "todo" | "doing" | "done" | Moving to doing claims the task for the caller; done on a repeating task creates its next copy |
priority | integer | 0 none, 1 low, 2 medium, 3 high, 4 urgent, 5 do now |
due | string | null | YYYY-MM-DD; empty or null clears it |
remind_at | string | null | YYYY-MM-DDTHH:MM in the user's own timezone; empty or null clears it |
repeat | string | null | daily, weekly, monthly, yearly, "every N days/weeks/months/years", weekdays, or day names like "mon,wed,fri"; empty stops it |
labels | string[] | Replaces every label; each must look like namespace:value |
assignees | string[] | Usernames; replaces every assignee. Each needs access to the project |
200OK: Task- Errors:
400,401,403,404
GET /api/tasks/{task_id}#
A full task: description, attachments, links, comments and history.
| Parameter | In | Type | Description |
|---|---|---|---|
task_id required | path | integer | Task id |
200OK: Task- Errors:
400,401,403,404
PATCH /api/tasks/{task_id}#
Update task fields (editor).
Only the fields sent change.
| Parameter | In | Type | Description |
|---|---|---|---|
task_id required | path | integer | Task id |
Body application/json
| Field | Type | Description |
|---|---|---|
title | string | Required on create |
description | string | Markdown; checklist steps as "- [ ] " |
project_id | integer | Required on create; on update, moves the task (editor on the target needed) |
status | "todo" | "doing" | "done" | Moving to doing claims the task for the caller; done on a repeating task creates its next copy |
priority | integer | 0 none, 1 low, 2 medium, 3 high, 4 urgent, 5 do now |
due | string | null | YYYY-MM-DD; empty or null clears it |
remind_at | string | null | YYYY-MM-DDTHH:MM in the user's own timezone; empty or null clears it |
repeat | string | null | daily, weekly, monthly, yearly, "every N days/weeks/months/years", weekdays, or day names like "mon,wed,fri"; empty stops it |
labels | string[] | Replaces every label; each must look like namespace:value |
assignees | string[] | Usernames; replaces every assignee. Each needs access to the project |
claim | boolean | Take over a task another session claimed |
description_was | string | The description your edit started from; if it changed meanwhile the update is refused with 409 |
200OK: Task409The description changed while you were editing it- Errors:
400,401,403,404
DELETE /api/tasks/{task_id}#
Move a task to the trash (editor).
Trashed tasks can be restored for 30 days.
| Parameter | In | Type | Description |
|---|---|---|---|
task_id required | path | integer | Task id |
200OK: Ok- Errors:
400,401,403,404
POST /api/tasks/bulk#
Apply one change to many tasks.
Runs in one transaction: if any task fails, none change.
Body application/json
| Field | Type | Description |
|---|---|---|
ids required | integer[] | |
status | "todo" | "doing" | "done" | |
project_id | integer | |
add_label | string | |
remove_label | string | |
delete | boolean | Move them all to the trash |
200OK: object- Errors:
400,401,403,404
POST /api/reorder#
Set the status and order of the tasks in one column.
Cards not listed keep their place; listed cards from another column move into this one.
Body application/json
| Field | Type | Description |
|---|---|---|
status required | "todo" | "doing" | "done" | |
ids required | integer[] | The visible task ids in that column, top to bottom |
200OK: Ok- Errors:
400,401,403,404
GET /api/repeats#
Upcoming dates of repeating tasks, for the calendar.
| Parameter | In | Type | Description |
|---|---|---|---|
from required | query | string | First day, YYYY-MM-DD |
to required | query | string | Last day, YYYY-MM-DD; at most 62 days after from |
200OK: object- Errors:
400,401,403,404
GET /api/search#
Search task titles, descriptions and comments.
| Parameter | In | Type | Description |
|---|---|---|---|
q | query | string | Words that must all appear (case-insensitive). Empty lists every task the filters allow |
project | query | integer | Project id; its sub-projects are included |
status | query | string | Comma-separated statuses, like todo,doing |
label | query | string | Label every result must have |
assignee | query | string | Username every result must be assigned to |
priority | query | integer | Minimum priority |
due | query | "overdue" | "today" | "week" | "any" | "none" | Due date filter |
fields | query | string | Comma-separated: title, description, comments (default all) |
sort | query | "updated" | "created" | "priority" | "due" | "id" | Sort order |
200OK: object- Errors:
400,401,403,404
Comments and links#
POST /api/tasks/{task_id}/comments#
Comment on a task (editor).
| Parameter | In | Type | Description |
|---|---|---|---|
task_id required | path | integer | Task id |
Body application/json
| Field | Type | Description |
|---|---|---|
body required | string | Markdown; @username notifies that user |
200OK: Task- Errors:
400,401,403,404
POST /api/tasks/{task_id}/links#
Link a task to another (editor on both).
Both directions are stored: blocking on one task shows as blocked on the other.
| Parameter | In | Type | Description |
|---|---|---|---|
task_id required | path | integer | Task id |
Body application/json
| Field | Type | Description |
|---|---|---|
kind required | LinkKind | |
other required | integer | The other task id |
200OK: Task- Errors:
400,401,403,404
DELETE /api/tasks/{task_id}/links#
Remove a link between two tasks.
| Parameter | In | Type | Description |
|---|---|---|---|
task_id required | path | integer | Task id |
kind required | query | LinkKind | Link kind |
other required | query | integer | The other task id |
200OK: Task- Errors:
400,401,403,404
Attachments#
POST /api/tasks/{task_id}/attachments#
Attach files to a task (editor).
| Parameter | In | Type | Description |
|---|---|---|---|
task_id required | path | integer | Task id |
Body multipart/form-data
| Field | Type | Description |
|---|---|---|
file required | string[] | One or more files, 25 MB each |
200OK: Task- Errors:
400,401,403,404
GET /api/attachments/{attachment_id}#
Download an attachment.
| Parameter | In | Type | Description |
|---|---|---|---|
attachment_id required | path | integer | Attachment id |
200The file, with its own MIME type- Errors:
400,401,403,404
DELETE /api/attachments/{attachment_id}#
Delete an attachment (editor).
| Parameter | In | Type | Description |
|---|---|---|---|
attachment_id required | path | integer | Attachment id |
200OK: Task- Errors:
400,401,403,404
Trash#
GET /api/trash#
Deleted tasks you can restore.
200OK: object- Errors:
401
POST /api/trash/{trash_id}/restore#
Restore a deleted task.
| Parameter | In | Type | Description |
|---|---|---|---|
trash_id required | path | integer | Trash entry id |
200OK: Task- Errors:
400,401,403,404
Labels#
GET /api/labels#
Global labels and your own, with usage counts.
200OK: object- Errors:
401
POST /api/labels#
Create a personal label, or a global one (admin).
Body application/json
| Field | Type | Description |
|---|---|---|
name required | string | namespace:value, like host:pi |
color | string | #rrggbb; without one it takes its namespace's color |
global | boolean | Admin only |
200OK: Ok- Errors:
400,401,403,404
PATCH /api/labels#
Rename and/or recolor a label.
Body application/json
| Field | Type | Description |
|---|---|---|
name required | string | Current name |
new_name | string | New name; an existing label's name merges the two |
color | string | #rrggbb, or empty to clear |
200OK: Ok- Errors:
400,401,403,404
DELETE /api/labels#
Delete a label everywhere.
| Parameter | In | Type | Description |
|---|---|---|---|
name required | query | string | Label name |
200OK: Ok- Errors:
400,401,403,404
Teams#
GET /api/teams#
Your teams (admins see all).
Sign-in cookie only: API tokens are refused.
200OK: object- Errors:
400,401,403,404
POST /api/teams#
Create a team.
Sign-in cookie only: API tokens are refused.
Body application/json
| Field | Type | Description |
|---|---|---|
name required | string |
200OK: object- Errors:
400,401,403,404
DELETE /api/teams/{team_id}#
Delete a team (team owner or admin).
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
team_id required | path | integer | Team id |
200OK: object- Errors:
400,401,403,404
POST /api/teams/{team_id}/members#
Add a member by username (team owner or admin).
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
team_id required | path | integer | Team id |
Body application/json
| Field | Type | Description |
|---|---|---|
username required | string |
200OK: object- Errors:
400,401,403,404
DELETE /api/teams/{team_id}/members/{user_id}#
Remove a member, or leave the team yourself.
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
team_id required | path | integer | Team id |
user_id required | path | integer | User id |
200OK: object- Errors:
400,401,403,404
PATCH /api/teams/{team_id}/members/{user_id}#
Make a member an owner, or back to a member.
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
team_id required | path | integer | Team id |
user_id required | path | integer | User id |
Body application/json
| Field | Type | Description |
|---|---|---|
owner required | boolean |
200OK: object- Errors:
400,401,403,404
PUT /api/teams/{team_id}/webhook#
Set or clear the team's webhook URL.
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
team_id required | path | integer | Team id |
Body application/json
| Field | Type | Description |
|---|---|---|
url | string | https URL that resolves to public addresses only; empty clears it. A key= parameter is sent as an Authorization: Bearer header |
200OK: object- Errors:
400,401,403,404
Tokens#
GET /api/tokens#
Your API tokens (never the secrets).
Sign-in cookie only: API tokens are refused.
200OK: object- Errors:
400,401,403,404
POST /api/tokens#
Create an API token.
Sign-in cookie only: API tokens are refused.
Body application/json
| Field | Type | Description |
|---|---|---|
name | string | Label like claude |
role | "viewer" | "editor" | "manager" | "owner" | Highest role the token may use; viewer is read-only. Never more than your own role |
projects | integer[] | Limit the token to these projects and everything under them; empty for all |
200OK: object- Errors:
400,401,403,404
DELETE /api/tokens/{token_id}#
Revoke an API token.
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
token_id required | path | integer | Token id |
200OK: Ok- Errors:
400,401,403,404
Users#
GET /api/users#
Every user, for assigning, sharing and mentions.
Sign-in cookie only: API tokens are refused.
200OK: object- Errors:
400,401,403,404
GET /api/users/{user_id}/avatar#
A user's picture.
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
user_id required | path | integer | User id |
200The image- Errors:
400,401,403,404
GET /api/users/{user_id}/footprint#
What deleting a user would remove (admin).
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
user_id required | path | integer | User id |
200OK: object- Errors:
400,401,403,404
DELETE /api/users/{user_id}#
Delete a user and their projects (admin).
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
user_id required | path | integer | User id |
Body application/json
| Field | Type | Description |
|---|---|---|
keep_labels | boolean | Keep their personal labels as yours |
200OK: object- Errors:
400,401,403,404
POST /api/users/{user_id}/password#
Set a user's password (admin).
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
user_id required | path | integer | User id |
Body application/json
| Field | Type | Description |
|---|---|---|
password required | string |
200OK: Ok- Errors:
400,401,403,404
DELETE /api/users/{user_id}/2fa#
Turn off a locked-out user's second factors (admin).
Sign-in cookie only: API tokens are refused.
| Parameter | In | Type | Description |
|---|---|---|---|
user_id required | path | integer | User id |
200OK: Ok- Errors:
400,401,403,404
Board#
GET /api/settings#
Board settings (admin).
Sign-in cookie only: API tokens are refused.
200OK: object- Errors:
400,401,403,404
PUT /api/settings#
Save board settings (admin).
Sign-in cookie only: API tokens are refused.
Body application/json
| Field | Type | Description |
|---|---|---|
timezone | string | Default for people whose browser has not reported one |
due_time | string | HH:MM for due-today pushes, in each person's timezone |
digest_time | string | HH:MM for the overdue digest |
archive_days | string | Archive tasks done this many days ago; 0 turns it off |
200OK: object- Errors:
400,401,403,404
GET /api/version#
Running version and the newest GitHub release (admin).
Sign-in cookie only: API tokens are refused.
200OK: object- Errors:
400,401,403,404
GET /api/revision#
The board's change counter.
Every successful write bumps it. Open pages poll this and reload when it moves.
200OK: object- Errors:
401
GET /api/export#
Download a project and everything under it, or everything you can see, as JSON.
| Parameter | In | Type | Description |
|---|---|---|---|
project | query | integer | Project id; leave out for everything |
200A JSON file download- Errors:
400,401,403,404
Agents#
GET /api/context#
Plain-text session briefing for an agent.
What the Claude Code SessionStart hook and the opencode plugin print at the start of a session.
| Parameter | In | Type | Description |
|---|---|---|---|
cwd | query | string | The agent's working directory |
200The project whose folder holds cwd and its open tasks; empty when none matches- Errors:
401
POST /mcp#
MCP endpoint (streamable HTTP, stateless, JSON responses).
Takes API tokens only. Without one, only the handshake and the tool list answer. Send X-Agent to name the agent in comments and history, and send back the Mcp-Session-Id header you were given so the session can claim tasks as itself. The tools are listed in the README.
API token only.
Body application/json: One JSON-RPC 2.0 request object; batches are not supported
200One JSON-RPC response, or 202 with no body for a notification202Accepted (a JSON-RPC notification)- Errors:
400
Health#
GET /health#
ok while the database responds.
No sign-in needed.
200ok503database unreachable
Schemas#
Ok#
| Field | Type | Description |
|---|---|---|
ok | boolean |
Error#
| Field | Type | Description |
|---|---|---|
error | string |
Credentials#
| Field | Type | Description |
|---|---|---|
username | string | |
password | string | At least 8 characters for new accounts |
Invite#
| Field | Type | Description |
|---|---|---|
id | integer | |
created | string | |
expires | string | |
used | string | null | |
used_by | string | null |
User#
| Field | Type | Description |
|---|---|---|
id | integer | |
username | string | |
is_admin | 0 | 1 | 0 or 1 |
ntfy_topic | string | |
ntfy_url | string | |
notify_remind | 0 | 1 | 0 or 1 |
notify_due | 0 | 1 | 0 or 1 |
notify_digest | 0 | 1 | 0 or 1 |
notify_agent | 0 | 1 | 0 or 1 |
notify_mention | 0 | 1 | 0 or 1 |
notify_assign | 0 | 1 | 0 or 1 |
notify_activity | 0 | 1 | 0 or 1 |
timezone | string | |
timezone_auto | string | |
created | string | |
avatar_at | string | null |
Me#
| Field | Type | Description |
|---|---|---|
id | integer | |
username | string | |
is_admin | 0 | 1 | 0 or 1 |
ntfy_topic | string | |
ntfy_url | string | |
notify_remind | 0 | 1 | 0 or 1 |
notify_due | 0 | 1 | 0 or 1 |
notify_digest | 0 | 1 | 0 or 1 |
notify_agent | 0 | 1 | 0 or 1 |
notify_mention | 0 | 1 | 0 or 1 |
notify_assign | 0 | 1 | 0 or 1 |
notify_activity | 0 | 1 | 0 or 1 |
timezone | string | |
timezone_auto | string | |
created | string | |
avatar_at | string | null | |
unread | integer | Unread notifications (GET only) |
ntfy_token_set | boolean |
MeUpdate#
| Field | Type | Description |
|---|---|---|
password | string | New password; needs current_password |
current_password | string | |
ntfy_url | string | Your ntfy server; empty means ntfy.sh |
ntfy_token | string | Access token for your ntfy server; empty keeps the stored one |
clear_ntfy_token | boolean | |
ntfy_topic | string | Letters, digits, dashes and underscores |
timezone | string | IANA name you picked; empty follows your browser |
timezone_auto | string | IANA name your browser reports |
notify_remind | boolean | |
notify_due | boolean | |
notify_digest | boolean | |
notify_agent | boolean | |
notify_mention | boolean | |
notify_assign | boolean | |
notify_activity | boolean |
UserBrief#
| Field | Type | Description |
|---|---|---|
id | integer | |
username | string | |
is_admin | 0 | 1 | 0 or 1 |
created | string | |
avatar_at | string | null |
Inbox#
| Field | Type | Description |
|---|---|---|
notifications | object[] | |
unread | integer |
Project#
| Field | Type | Description |
|---|---|---|
id | integer | |
parent_id | integer | null | |
title | string | |
path | string | Slash path like Code/weatherbox |
description | string | |
archived | 0 | 1 | 0 or 1 |
color | string | null | |
position | number | |
owner_id | integer | null | |
folder | string | |
open | integer | To-Do + Doing tasks directly in it |
role | 0 | 1 | 2 | 3 | 4 | 0 a parent shown only for the tree, 1 viewer, 2 editor, 3 manager, 4 owner |
ExportProject#
| Field | Type | Description |
|---|---|---|
id | integer | |
parent_id | integer | null | |
path | string | |
title | string | |
description | string | |
color | string | null | |
folder | string | |
archived | 0 | 1 | 0 or 1 |
position | number |
ProjectEvent#
| Field | Type | Description |
|---|---|---|
id | integer | |
at | string | |
actor | string | Username, or system |
agent | string | null | Agent name when the change came over MCP |
field | string | What changed: created, title, status, comment, label, ... |
old | string | null | |
new | string | null | |
task_id | integer | |
title | string | The task's title |
Share#
| Field | Type | Description |
|---|---|---|
id | integer | null | null for the owner row |
kind | "owner" | "user" | "team" | |
name | string | Username or team name |
role | "owner" | "viewer" | "editor" | "manager" | |
project | string | Path of the project the share is on |
inherited | boolean | The share is on a parent project |
TaskCard#
| Field | Type | Description |
|---|---|---|
id | integer | |
project_id | integer | |
project | string | Project path |
title | string | |
status | "todo" | "doing" | "done" | |
priority | integer | |
due | string | null | YYYY-MM-DD |
remind_at | string | null | YYYY-MM-DDTHH:MM |
repeat | string | null | |
position | number | |
done_at | string | null | |
updated | string | |
archived | 0 | 1 | 0 or 1 |
claimed_by | string | null | The agent session working on it, while in doing |
labels | string[] | |
checks | integer[] | [ticked, total] checklist steps in the description |
files | integer | Attachment count |
assignees | string[] | |
comments | integer | Comment count |
Task#
| Field | Type | Description |
|---|---|---|
id | integer | |
project_id | integer | |
project | string | Project path |
title | string | |
status | "todo" | "doing" | "done" | |
priority | integer | |
due | string | null | YYYY-MM-DD |
remind_at | string | null | YYYY-MM-DDTHH:MM |
repeat | string | null | |
position | number | |
done_at | string | null | |
updated | string | |
archived | 0 | 1 | 0 or 1 |
claimed_by | string | null | The agent session working on it, while in doing |
labels | string[] | |
checks | integer[] | [ticked, total] checklist steps in the description |
files | integer | Attachment count |
assignees | string[] | |
role | integer | Your role on its project, 1-4 |
description | string | |
created | string | |
attachments | object[] | |
links | object[] | |
comments | object[] | |
history | object[] |
LinkKind#
"blocking" | "blocked" | "subtask" | "parenttask" | "related" | "duplicates" | "duplicateof" | "precedes" | "follows"
SearchResult#
| Field | Type | Description |
|---|---|---|
id | integer | |
title | string | |
project | string | |
project_id | integer | |
status | string | |
priority | integer | |
due | string | null | |
labels | string[] | |
assignees | string[] | |
archived | 0 | 1 | 0 or 1 |
where | "title" | "description" | "comment" | Where the words matched |
snippet | string | The matching line, when not in the title |
created | string | |
updated | string |
TrashItem#
| Field | Type | Description |
|---|---|---|
id | integer | |
task_id | integer | |
project_id | integer | |
project | string | |
title | string | |
deleted | string | |
deleted_by | string |
Label#
| Field | Type | Description |
|---|---|---|
name | string | |
color | string | null | |
global | boolean | |
count | integer | Tasks you can see that use it |
Team#
| Field | Type | Description |
|---|---|---|
id | integer | |
name | string | |
members | object[] | |
projects | integer[] | Project ids shared with the team |
owner | boolean | You can manage it |
webhook | string | Only shown to team owners |
webhook_error | string | |
webhook_failed | string | null |
Token#
| Field | Type | Description |
|---|---|---|
id | integer | |
name | string | |
created | string | |
used | string | null | |
role | string | |
projects | string[] | Paths the token is limited to; empty for all |
TwoFactor#
| Field | Type | Description |
|---|---|---|
totp | boolean | Authenticator app on |
passkeys | object[] | |
recovery_left | integer | Unused recovery codes |
recovery | string[] | null | New recovery codes, only in the response that made them |
PasskeyOptions#
object