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.
organization_id string required
The unique identifier of the organization (format: org_*).
An array of department objects.
cURL
- Bash
- Python
- Python
- JavaScript
curl https://api.aitronos.com/v1/organizations/org_xyz789/departments \
-H "Authorization: Bearer $ACCESS_TOKEN"