Skip to main content
GET
List departments tree

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

String. The organization's internal ID (32-character hex string) or its externalSourceId. When the value matches the format of an internal ID, the internal ID takes precedence.

Example:

"11adfe2a080040e3892ffb89c21ec44e"

Response

OK

meta
object
required
data
object[]
required

Always contains exactly one element: the organization's root department (level 0), with every department reachable from it nested under it through children. Departments not connected to the root are not included.