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 - PATCH
/api/v1/labels/{id} - GET
/api/v1/places - POST
/api/v1/projects - PATCH
/api/v1/projects/{id} - POST
/api/v1/reminders - PATCH
/api/v1/reminders/{id} - DELETE
/api/v1/reminders/{id} - POST
/api/v1/sections - PATCH
/api/v1/sections/{id}
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)
| Field | Type | Description |
|---|---|---|
color | string | |
created_at | number | |
deleted_at | number | null | |
group_by | string | |
manual_order | array of string | Ids in their display order. |
name | string | |
position | number | |
row_layout | string | |
sort_by | string | |
sort_dir | string | |
workspace_id | string | null |
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
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
color | string | |
created_at | number | |
deleted_at | number | null | |
group_by | string | |
manual_order | array of string | Ids in their display order. |
name | string | |
position | number | |
row_layout | string | |
sort_by | string | |
sort_dir | string | |
workspace_id | string | null |
GET /api/v1/places
List places · Token or session
| Field | Type | Description |
|---|---|---|
places required | array of object |
POST /api/v1/projects
Create a project · Token or session
name, color, parent_id, icon, flow_mode (archived: false is accepted)
| Field | Type | Description |
|---|---|---|
aisles | boolean | |
archived | boolean | |
color | string | |
created_at | number | |
deleted_at | number | null | |
description | string | |
flow_mode | string | |
icon | string | null | |
name | string | |
no_next_action | boolean | |
notes_doc | string | A mergeable notes document ("ydoc:v1:…"), see docs/sync.md "Mergeable documents". Write description (Markdown) instead unless you merge documents yourself. |
parent_id | string | null | |
position | number | |
reusable | boolean | |
status | string | |
workspace_id | string | null |
| Field | Type | Description |
|---|---|---|
body_version | string |
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)
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
aisles | boolean | |
archived | boolean | |
color | string | |
created_at | number | |
deleted_at | number | null | |
description | string | |
flow_mode | string | |
icon | string | null | |
name | string | |
no_next_action | boolean | |
notes_doc | string | A mergeable notes document ("ydoc:v1:…"), see docs/sync.md "Mergeable documents". Write description (Markdown) instead unless you merge documents yourself. |
parent_id | string | null | |
position | number | |
reusable | boolean | |
status | string | |
workspace_id | string | null |
| Field | Type | Description |
|---|---|---|
body_version | string |
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
| Field | Type | Description |
|---|---|---|
created_at | number | |
deleted_at | number | null | |
delivered_at | number | null | |
dismissed_at | number | null | |
fire_at | integer | null | A point in time in Unix milliseconds. |
kind | "relative" | "absolute" | "deadline" | "arrive" | "leave" | |
offset_minutes | integer | null | Minutes relative to the due time (negative: before). |
radius_m | number | null | A radius in metres. |
task_id required | string | An id: a UUID, or for some entities a name-based id. |
urgent | boolean |
PATCH /api/v1/reminders/{id}
Update a reminder · Token or session
offset_minutes, or fire_at of an absolute reminder (the kind never changes)
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
created_at | number | |
deleted_at | number | null | |
delivered_at | number | null | |
dismissed_at | number | null | |
fire_at | integer | null | A point in time in Unix milliseconds. |
kind | "relative" | "absolute" | "deadline" | "arrive" | "leave" | |
offset_minutes | integer | null | Minutes relative to the due time (negative: before). |
radius_m | number | null | A radius in metres. |
task_id | string | An id: a UUID, or for some entities a name-based id. |
urgent | boolean |
DELETE /api/v1/reminders/{id}
Delete a reminder · Token or session
any of your own reminders
| Field | Type | Description |
|---|---|---|
id required | string | path |
POST /api/v1/sections
Create a section · Token or session
name, project_id, color, icon, position
| Field | Type | Description |
|---|---|---|
aisle | string | null | |
color | string | null | |
created_at | number | |
deleted_at | number | null | |
flow_mode | string | |
icon | string | null | |
name | string | |
position | number | |
project_id required | string | An id: a UUID, or for some entities a name-based id. |
PATCH /api/v1/sections/{id}
Update a section · Token or session
name, color, icon, position
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
aisle | string | null | |
color | string | null | |
created_at | number | |
deleted_at | number | null | |
flow_mode | string | |
icon | string | null | |
name | string | |
position | number | |
project_id | string | An id: a UUID, or for some entities a name-based id. |