Skip to content
LogoLogo

Labels

List active Workspace label definitions

GET/api/v1/workspaces/{workspace_id}/label-definitions

Returns an ordered, cursor-bounded page of Workspace definitions. Continue with next_cursor using the same purpose and include_archived filters. Each page checks current Workspace authority and the commit-ordered Workspace journal version captured with the prior page. A change returns 409 catalog_changed; restart from page one. Native credentials require exactly one purpose=task query value. Other purposes are browser-only.

Path Parameters

workspace_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Query Parameters

purpose
string
Values
documentprojecttask
include_archived
boolean·default false

Include retained archived definitions for management surfaces.

cursor
string·min 1·max 2048

Opaque continuation cursor returned by the preceding page.

limit
integer·min 1·max 100·default 50

Maximum number of resources to return.

Responses

Create a Workspace-scoped label definition

POST/api/v1/workspaces/{workspace_id}/label-definitions

Path Parameters

workspace_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Request Body

application/json
purposeRequired
string
Values
documentprojecttask
scopeRequired
string
Values
workspaceproject
nameRequired
string·min 1·max 80
colorRequired
string·max 11

Shared user-chosen color: a Tailwind color family name, optionally pinned to one Tailwind step (for example amber or amber-400). A bare name lets each client choose the shade for its surface; a pinned step renders that exact shade.

Exampleindigo

Responses

List a Project's local task-label definitions

GET/api/v1/projects/{project_id}/label-definitions

Returns an ordered, cursor-bounded page under current private Project read authority. Continue with next_cursor and the same include_archived filter. The cursor binds the prior page's commit-ordered Workspace journal version; a change returns 409 catalog_changed and requires a fresh first-page read.

Path Parameters

project_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Query Parameters

include_archived
boolean·default false

Include retained archived definitions for management surfaces.

cursor
string·min 1·max 2048

Opaque continuation cursor returned by the preceding page.

limit
integer·min 1·max 100·default 50

Maximum number of resources to return.

Responses

Create a Project-local task-label definition

POST/api/v1/projects/{project_id}/label-definitions

Path Parameters

project_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Request Body

application/json
purposeRequired
string
Values
documentprojecttask
scopeRequired
string
Values
workspaceproject
nameRequired
string·min 1·max 80
colorRequired
string·max 11

Shared user-chosen color: a Tailwind color family name, optionally pinned to one Tailwind step (for example amber or amber-400). A bare name lets each client choose the shade for its surface; a pinned step renders that exact shade.

Exampleindigo

Responses

Read one authorized label definition

GET/api/v1/label-definitions/{label_id}

Returns current or archived metadata in the active Workspace. Private Project access is required for Project-scoped definitions. Native credential admission is not included.

Path Parameters

label_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Responses

Rename, recolor, or restore a label definition

PATCH/api/v1/label-definitions/{label_id}

Path Parameters

label_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

If-MatchRequired
string

Entity tag containing the resource version last observed by the client.

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Request Body

application/json
name
string·min 1·max 80
color
string·max 11

Shared user-chosen color: a Tailwind color family name, optionally pinned to one Tailwind step (for example amber or amber-400). A bare name lets each client choose the shade for its surface; a pinned step renders that exact shade.

Exampleindigo
archived
boolean

Send false to restore an archived definition. Omit for rename/recolor.

Responses

Archive a label definition

DELETE/api/v1/label-definitions/{label_id}

Path Parameters

label_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

If-MatchRequired
string

Entity tag containing the resource version last observed by the client.

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Responses

204Label definition archived.

List a document, project, or task's label IDs

GET/api/v1/{target_kind}/{target_id}/labels

Native mobile credentials may read Task assignments only (target_kind=task).

Path Parameters

target_kindRequired
string
Values
documentprojecttask
target_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Responses

Replace a document, project, or task's complete label assignment set

PUT/api/v1/{target_kind}/{target_id}/labels

Path Parameters

target_kindRequired
string
Values
documentprojecttask
target_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Request Body

application/json
label_idsRequired
string <uuid>[]·max 20

Responses

204Labels replaced.

List a Project's presentation overrides for Workspace Task labels

GET/api/v1/projects/{project_id}/label-overrides

A sparse list: only Workspace Task labels with an active Project override appear. A label with no entry here is shown with its Workspace name and color in this Project. Returns up to limit overrides in label ID order. Continue with next_cursor while has_more is true. Cursors are signed and bound to the current Workspace and Project. Restart from the first page after a catalog change when a complete current view is required. The cursor binds the prior page's commit-ordered Workspace journal version. A change returns 409 catalog_changed before another page can be applied.

Path Parameters

project_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Query Parameters

limit
integer·min 1·max 100·default 50

Maximum number of resources to return.

cursor
string·min 1·max 2048

Opaque continuation cursor returned by the preceding page.

Responses

Set this Project's presentation of a Workspace Task label

PUT/api/v1/projects/{project_id}/label-overrides/{label_id}

Upserts the Project's own name and color for a Workspace-scope Task label. The label's stable identity and existing Task assignments are unaffected; only how it is displayed within this Project changes. Only a Workspace-scope Task label may be overridden.

Path Parameters

project_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001
label_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Request Body

application/json
nameRequired
string·min 1·max 80
colorRequired
string·max 11

Shared user-chosen color: a Tailwind color family name, optionally pinned to one Tailwind step (for example amber or amber-400). A bare name lets each client choose the shade for its surface; a pinned step renders that exact shade.

Exampleindigo

Responses

Restore the Workspace default presentation of a Task label in this Project

DELETE/api/v1/projects/{project_id}/label-overrides/{label_id}

Path Parameters

project_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001
label_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Responses

204Override cleared; the Project now shows the Workspace default.