Returns the organization’s label groups with optional filters, pagination, task counts, favorite indicators and configured time totals.
https://api.doboard.com/{account_id}/label_group_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.
Public task tokens, public project tokens and MCP tokens do not provide access to this method.
Task counts are restricted to projects in which the authenticated user is a member. This restriction also applies to administrators.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
session_id |
string | Yes | — | Authenticated session ID. |
group_id |
int | No | Not set | Filter by one label group ID. |
name |
string | No | Not set | Search for groups whose names contain the supplied text. Leading and trailing whitespace is removed. |
status |
enum | No | No status filter | Filter by ACTIVE or REMOVED. |
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.group_id |
Sorting field. Supported values are listed below. |
order_dir |
string | No | desc |
Sorting direction: lowercase asc or desc. |
Supported order_column values:
l.group_idl.nametasks_totaltasks_opendedtasks_closedThe spelling tasks_opended is part of the API.
AND.status returns groups of both statuses, including removed groups.status is ignored rather than rejected.% and _ retain their SQL wildcard behavior.length values fall back to 1000.l.group_id.Supplying group_id still returns a list and does not bypass other filters or pagination.
GET https://api.doboard.com/42/label_group_get?session_id=YOUR_SESSION_ID&status=ACTIVE&name=Priority&start=0&length=25
POST /42/label_group_get HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&group_id=21
All identifiers and credentials in examples are illustrative.
{
"data": {
"labels_groups": [
{
"group_id": 21,
"created": "2026-11-13 09:00:00",
"updated": "2026-11-13 09:30:00",
"name": "Priority",
"color": "FF6600",
"status": "ACTIVE",
"allow_multiple_labels": 1,
"favorite": 1,
"tasks_total": 12,
"tasks_opended": 7,
"tasks_closed": 5,
"hours": null
}
],
"records_total": 10,
"records_filtered": 1,
"operation_status": "SUCCESS"
}
}
The response array is named labels_groups, not label_groups.
All timestamps and counts in the example are illustrative.
| Field | Description |
|---|---|
data.labels_groups |
Requested page of label group records. |
data.records_total |
Total number of groups before filters and pagination. Includes both statuses. |
data.records_filtered |
Number of matching groups before pagination. |
data.operation_status |
SUCCESS when retrieval succeeds. |
group_id |
Group identifier. |
created |
Creation timestamp. |
updated |
Modification timestamp. |
name |
Group name. |
color |
Six-character hexadecimal color without #. |
status |
ACTIVE or REMOVED. |
allow_multiple_labels |
1 for a group allowing multiple labels; otherwise 0. |
favorite |
Number of matching favorite entries for the current user. 0 means the group is not a favorite. |
tasks_total |
Number of distinct 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. |
hours |
Sum of configured hours values for labels in a single-choice group. Returns null for multiple-choice groups or when there are no values to sum. |
Task counts use group-to-task assignments. A task associated with several labels in the same group is counted once.
tasks_total is not necessarily the sum of tasks_opended and tasks_closed, because its calculation does not exclude other task statuses.
The hours total is calculated from the group’s label configuration. It is not a sum of worked time or task-specific estimates, and it is independent of the project restrictions used for task counts.
| 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 group query could not be completed. |
Example method-level failure:
{
"data": {
"operation_status": "FAILED",
"operation_message": "Internal API Error"
},
"error_message": "Internal API Error",
"error_no": 0
}
labels_groups: [] and records_filtered: 0.group_id does not produce a not-found error.records_filtered.