List all departments
GET/v1/departments
Lists the account's active departments as a flat list. Use parent_id to build the hierarchy.
Request
Responses
- 200
- 401
- 403
- 422
Departments retrieved
Missing or invalid bearer token.
The public API is not enabled for this account (err_feature_not_enabled), or the API key lacks the org_metadata:read scope (err_insufficient_scope).
Validation failed.