5 minutes to help shape OpenTodo. Anonymous, no account. Take the survey

Agent tokens API

An agent token may write through REST on this fixed list of routes only, and only while the owner's Assistants may make changes and the user's Changes to my tasks are both on:

POST /api/v1/labels

Create a label · Token or session

name, color, workspace_id (a workspace id or exact name; absent or null for the default workspace; an existing label of that name in that workspace is returned with 200)

Request body
FieldTypeDescription
colorstring
created_atnumber
deleted_atnumber | null
group_bystring
manual_orderarray of stringIds in their display order.
namestring
positionnumber
row_layoutstring
sort_bystring
sort_dirstring
workspace_idstring | null

Response 201: Label

PATCH /api/v1/labels/{id}

Update a label · Token or session

name (a name another label of the workspace has, ignoring case, is 400 invalid), color, position

Path parameters
FieldTypeDescription
id requiredstringpath
Request body
FieldTypeDescription
colorstring
created_atnumber
deleted_atnumber | null
group_bystring
manual_orderarray of stringIds in their display order.
namestring
positionnumber
row_layoutstring
sort_bystring
sort_dirstring
workspace_idstring | null

Response 200: Label

GET /api/v1/places

List places · Token or session

Response 200
FieldTypeDescription
places requiredarray of object

POST /api/v1/projects

Create a project · Token or session

name, color, parent_id, icon, flow_mode (archived: false is accepted)

Request body
FieldTypeDescription
aislesboolean
archivedboolean
colorstring
created_atnumber
deleted_atnumber | null
descriptionstring
flow_modestring
iconstring | null
namestring
no_next_actionboolean
notes_docstringA mergeable notes document ("ydoc:v1:…"), see docs/sync.md "Mergeable documents". Write description (Markdown) instead unless you merge documents yourself.
parent_idstring | null
positionnumber
reusableboolean
statusstring
workspace_idstring | null

Response 201: Project, plus:

Response 201: other fields
FieldTypeDescription
body_versionstring

PATCH /api/v1/projects/{id}

Update a project · Token or session

name, color, icon and parent_id (null clears them), description (the project's note, Markdown; editors may write it); or archived on its own (true archives the project with its sub-projects, false unarchives that project; owner or admin only; with any other field 400 invalid_input)

Path parameters
FieldTypeDescription
id requiredstringpath
Request body
FieldTypeDescription
aislesboolean
archivedboolean
colorstring
created_atnumber
deleted_atnumber | null
descriptionstring
flow_modestring
iconstring | null
namestring
no_next_actionboolean
notes_docstringA mergeable notes document ("ydoc:v1:…"), see docs/sync.md "Mergeable documents". Write description (Markdown) instead unless you merge documents yourself.
parent_idstring | null
positionnumber
reusableboolean
statusstring
workspace_idstring | null

Response 200: Project, plus:

Response 200: other fields
FieldTypeDescription
body_versionstring

POST /api/v1/reminders

Create a reminder · Token or session

task_id, kind (relative, deadline or absolute, the default), offset_minutes (0 or less: minutes before the due time, or before 09:00 on the deadline day) or, for absolute, fire_at (Unix milliseconds on a whole minute); fire_at of the others is computed in your time zone. Your own reminders only, at most 10 on a task

Request body
FieldTypeDescription
created_atnumber
deleted_atnumber | null
delivered_atnumber | null
dismissed_atnumber | null
fire_atinteger | nullA point in time in Unix milliseconds.
kind"relative" | "absolute" | "deadline" | "arrive" | "leave"
offset_minutesinteger | nullMinutes relative to the due time (negative: before).
radius_mnumber | nullA radius in metres.
task_id requiredstringAn id: a UUID, or for some entities a name-based id.
urgentboolean

Response 201: Reminder

PATCH /api/v1/reminders/{id}

Update a reminder · Token or session

offset_minutes, or fire_at of an absolute reminder (the kind never changes)

Path parameters
FieldTypeDescription
id requiredstringpath
Request body
FieldTypeDescription
created_atnumber
deleted_atnumber | null
delivered_atnumber | null
dismissed_atnumber | null
fire_atinteger | nullA point in time in Unix milliseconds.
kind"relative" | "absolute" | "deadline" | "arrive" | "leave"
offset_minutesinteger | nullMinutes relative to the due time (negative: before).
radius_mnumber | nullA radius in metres.
task_idstringAn id: a UUID, or for some entities a name-based id.
urgentboolean

Response 200: Reminder

DELETE /api/v1/reminders/{id}

Delete a reminder · Token or session

any of your own reminders

Path parameters
FieldTypeDescription
id requiredstringpath

Response 200: OK

POST /api/v1/sections

Create a section · Token or session

name, project_id, color, icon, position

Request body
FieldTypeDescription
aislestring | null
colorstring | null
created_atnumber
deleted_atnumber | null
flow_modestring
iconstring | null
namestring
positionnumber
project_id requiredstringAn id: a UUID, or for some entities a name-based id.

Response 201: Section

PATCH /api/v1/sections/{id}

Update a section · Token or session

name, color, icon, position

Path parameters
FieldTypeDescription
id requiredstringpath
Request body
FieldTypeDescription
aislestring | null
colorstring | null
created_atnumber
deleted_atnumber | null
flow_modestring
iconstring | null
namestring
positionnumber
project_idstringAn id: a UUID, or for some entities a name-based id.

Response 200: Section

This group in the HTTP API guide