Skip to content

List departments

View as Markdown

GET/v1/departmentsScope read

Active departments of the organization, to set contact.departmentId when you open a request.

200 OK · data[]

Field Type Description
code string Stable code. Compare against it in your code.
id integer Unique ID.
name string Name in the language of Accept-Language.
parentId integer Parent department, if any.
path string Full path from the top of the hierarchy.
Example
{
"data": [
{
"id": 4,
"name": "Sales",
"code": "SLS",
"parentId": 1,
"path": "Commercial / Sales"
}
]
}

Errors share one shape; see Errors for every key.

Terminal window
curl 'https://api.client.service-desk.goldmaster.io/v1/departments' \
-H "Authorization: Bearer $DUTY_API_KEY"