Returns the organization’s labels with optional filters, pagination, task counts, favorite indicators and group membership.
https://api.doboard.com/{account_id}/label_get
account_id is the numeric organization identifier associated with the user session.
GET, POST.
For GET, send parameters in the query string. For POST, use application/x-www-form-urlencoded.
Requires a valid user session_id. Guest sessions are not supported.
The method returns the organization’s label catalog. Task counts are restricted to projects in which the authenticated user is a member. This restriction also applies to administrators.
Public task tokens, public project tokens and MCP tokens do not provide access to this method.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
session_id |
string | Yes | — | Authenticated session ID. |
label_id |
int | No | Not set | Filter by one label ID. |
name |
string | No | Not set | Search for labels whose names contain the supplied text. Leading and trailing whitespace is removed. |
status |
enum | No | No status filter | Filter by ACTIVE, REMOVED or ARCHIVED. |
start |
int | No | 0 |
Result offset. Send a nonnegative integer. |
length |
int | No | 1000 |
Page size: 10, 25, 50, 100 or 1000. |
order_column |
string | No | l.label_id |
Sorting field. Supported values are listed below. |
order_dir |
string | No | desc |
Sorting direction: lowercase asc or desc. |
Supported order_column values:
l.label_idl.namel.last_used_attasks_totaltasks_opendedtasks_closedThe spelling tasks_opended is part of the API.
AND.status returns labels of all statuses, including archived and removed labels.status is ignored rather than rejected.% and _ in the supplied text retain their SQL wildcard behavior.length values fall back to 1000.l.label_id.Supplying label_id still returns a list and does not bypass other filters or pagination.
GET https://api.doboard.com/42/label_get?session_id=YOUR_SESSION_ID&status=ACTIVE&name=Bug&start=0&length=25
POST /42/label_get HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&label_id=301
GET https://api.doboard.com/42/label_get?session_id=YOUR_SESSION_ID&status=ACTIVE&order_column=l.last_used_at&order_dir=desc&length=25
All identifiers in examples are illustrative.
{
"data": {
"labels": [
{
"label_id": 301,
"created": "2026-11-13 09:00:00",
"updated": "2026-11-13 09:30:00",
"last_used_at": "2026-11-13 10:00:00",
"name": "Bug",
"color": "0066FF",
"status": "ACTIVE",
"favorite": 1,
"tasks_total": 12,
"tasks_opended": 7,
"tasks_closed": 5,
"groups": [
{
"group_id": 21,
"name": "Issue type",
"allow_multiple_labels": 0
}
]
}
],
"records_total": 30,
"records_filtered": 1,
"operation_status": "SUCCESS"
}
}
All timestamps and counts in the example are illustrative.
| Field | Description |
|---|---|
data.labels |
Requested page of label records. |
data.records_total |
Total number of labels before applying filters or pagination. Includes all statuses. |
data.records_filtered |
Number of matching labels before pagination. |
data.operation_status |
SUCCESS when retrieval succeeds. |
label_id |
Label identifier. |
created |
Creation timestamp. |
updated |
Modification timestamp; may be null. |
last_used_at |
Last recorded use timestamp; may be null. |
name |
Label name. |
color |
Six-character hexadecimal color without #. |
status |
ACTIVE, REMOVED or ARCHIVED. |
favorite |
Whether the label is a favorite of the current user: 1 or 0. |
tasks_total |
Number of distinct directly associated tasks in the user’s projects, without a task-status filter. |
tasks_opended |
Number of those tasks with status ACTIVE. |
tasks_closed |
Number of those tasks with status DONE. |
groups |
Groups containing the label. An ungrouped label returns []. |
groups[].group_id |
Group identifier. |
groups[].name |
Group name. |
groups[].allow_multiple_labels |
1 when the group allows multiple labels; otherwise 0. |
Task counts reflect direct label-to-task associations. They do not count tasks associated with a label solely through a label-group assignment.
tasks_total is not necessarily the sum of tasks_opended and tasks_closed, because its calculation does not exclude other task statuses.
Groups are ordered by group name and then group ID. Group membership is returned without a group-status filter.
| HTTP Code | error_no |
Message | Description |
|---|---|---|---|
401 |
401 |
session_id Unknown |
Missing or invalid session. |
403 |
403 |
Permission denied |
The authentication context is not permitted to call this method, including guest sessions. |
200 |
0 |
Internal API Error |
The label query could not be completed. |
An example method-level failure:
{
"data": {
"operation_status": "FAILED",
"operation_message": "Internal API Error"
},
"error_message": "Internal API Error",
"error_no": 0
}
labels: [] and records_filtered: 0.label_id does not produce a not-found error.records_filtered.