Organization Tree
Organization Tree
Retrieve the complete organizational hierarchy as a tree structure
GET
Organization Tree
Organization Tree
Retrieve the complete hierarchical structure of your organization, starting from the top-level parent (holding) down to all subsidiaries and child organizations. The tree always starts from the root organization, regardless of which organization is specified in thex-organization-id header. This means you can use the API key from any organization in the tree and always get the full hierarchy.
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUID. Can be any organization in the tree - the response always starts from the root.Example:
dce3ff33-9fcc-4521-910f-7972d81fb70cResponse
Organization UUID (root/holding organization)
Organization name
Child organizations (recursive structure - each child has the same shape)
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key404 Not Found
Cause: Organization not foundx-organization-id header contains a valid organization UUID.
Use Cases
List All Subsidiaries (Flat)
Flatten the tree to get a simple list of all organizations:Count Organizations by Level
Analyze the depth of the organizational structure:Export Organization IDs
Extract all organization IDs for use with other API endpoints:Related Endpoints
Organizations Overview
Learn about the Organizations API
Authentication
Set up API authentication

