Get the org chart
GET
/organization/org-chart
const url = 'https://shoehorn.example.com/api/v1/organization/org-chart';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://shoehorn.example.com/api/v1/organization/org-chartReturns every active team plus its parent relationship, member count,
and the team’s primary manager (the highest-ranking member matching
owner / manager / lead / team_lead). total_member_count includes
descendants. Sub-team links are computed server-side.
Responses
Section titled “ Responses ”Org chart
Media type application/json
object
teams
Array<object>
object
id
string format: uuid
name
string
slug
string
display_name
string
description
string
parent_team_id
string format: uuid
sub_team_ids
Array<string>
member_count
Direct members.
integer
total_member_count
Direct members plus all descendants.
integer
manager_user_id
Highest-ranking team member (owner > manager > lead > team_lead).
string
manager_role
string
metadata
object
key
additional properties
any
Example generated
{ "teams": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "slug": "example", "display_name": "example", "description": "example", "parent_team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "sub_team_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "member_count": 1, "total_member_count": 1, "manager_user_id": "example", "manager_role": "example", "metadata": {} } ]}