Docs
DevelopersAPI reference

List departments

GET/departments

Lists the departments the organisation’s active members belong to, in one page. A department with no active members drops out of the list.

Authorization

apiKey departments:read
AuthorizationBearer <token>

An organisation API key, sent as Authorization: Bearer enl_…. Create keys in Settings, API Keys.

In: header

Scope: departments:read

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/departments"
{  "data": [    {      "id": 3,      "name": "string"    }  ],  "next_cursor": "string"}