Returns the organization’s team role catalog, optionally filtered by role ID.
Team roles describe responsibilities used in planning and calendar assignments.
https://api.doboard.com/{account_id}/role_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 does not require administrator or project manager permissions.
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. |
role_id |
int | No | Not set | Filter by one role ID. |
A supplied nonempty role_id is converted to an integer.
An omitted or empty value, including 0, does not activate the filter.
GET https://api.doboard.com/42/role_get?session_id=YOUR_SESSION_ID
POST /42/role_get HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&role_id=3
All identifiers in examples are illustrative.
{
"data": {
"roles": [
{
"role_id": 3,
"name": "Support",
"role_type": "PERMANENT",
"created": "2026-11-13 09:00:00",
"updated": "2026-11-13 09:30:00",
"color": "0066FF",
"users_count": 4
}
],
"records_total": 8,
"records_filtered": 1,
"operation_status": "SUCCESS"
}
}
All timestamps and counts in the example are illustrative.
| Field | Description |
|---|---|
data.roles |
Matching role records, ordered by role_id ascending. |
data.records_total |
Total number of roles before applying the optional ID filter. |
data.records_filtered |
Number of returned roles after filtering. |
data.operation_status |
SUCCESS when retrieval succeeds. |
role_id |
Role identifier. |
name |
Role name. |
role_type |
PERMANENT or TEMPORARY. |
created |
Creation timestamp. |
updated |
Modification timestamp; may be null. |
color |
Six-character hexadecimal color without #, or null when no color is set. |
users_count |
Stored count of distinct existing users associated with the role through calendar entries. |
The stored users_count is calculated from distinct users referenced by the role’s calendar entries. The calculation has no date-range filter, so it can include users associated with past or future entries.
This method returns the stored value; it does not recalculate the count during retrieval.
| 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. |
An unknown role_id is not an error. It returns HTTP 200 with an empty list:
{
"data": {
"roles": [],
"records_total": 8,
"records_filtered": 0,
"operation_status": "SUCCESS"
}
}
role_id still returns an array, containing zero or one record.roles: [] and both counters set to 0.