Skip to content
Last updated

Retrieve a flat list of all departments within an organization.

GEThttps://api.aitronos.com/v1/organizations/{organization_id}/departments

Returns all departments belonging to the specified organization as a flat array. Each department includes its hierarchical metadata (parent_id, path, depth) so you can reconstruct the tree client-side if needed.

Path Parameters

organization_id string required

The unique identifier of the organization (format: org_*).


Returns

An array of department objects.

cURL
curl https://api.aitronos.com/v1/organizations/org_xyz789/departments \
  -H "Authorization: Bearer $ACCESS_TOKEN"