Skip to main content
GET
/
api
/
people
/
v1
/
teams
/
tree
Get the team hierarchy
curl --request GET \
  --url https://app.trelica.com/api/people/v1/teams/tree \
  --header 'Authorization: Bearer <token>'
[
  {
    "children": [
      {
        "id": "65207c3ffa0d2abb07955309",
        "name": "Development"
      },
      {
        "id": "65207c3ffa0d2abb07955308",
        "name": "DevOps"
      }
    ],
    "id": "65207c3ffa0d2abb07955307",
    "name": "Engineering"
  },
  {
    "children": [
      {
        "id": "65207c3ffa0d2abb0795530b",
        "name": "Accounts Payable"
      },
      {
        "id": "65207c3ffa0d2abb0795530c",
        "name": "Accounts Receivable"
      },
      {
        "id": "65207c3ffa0d2abb0795530d",
        "name": "FP&A"
      }
    ],
    "id": "65207c3ffa0d2abb0795530a",
    "name": "Finance"
  },
  {
    "id": "65207c3ffa0d2abb0795530e",
    "name": "HR"
  },
  {
    "children": [
      {
        "id": "65207c3ffa0d2abb07955314",
        "name": "Technical Pre-sales"
      }
    ],
    "id": "65207c3ffa0d2abb07955313",
    "name": "Sales"
  }
]

Authorizations

Authorization
string
header
required

OAuth 2.0. Obtain an access token via the Client Credentials or Authorization Code flow, then send it as Authorization: Bearer <token>.

Response

OK

children
array

The team's immediate child teams

id
string

The team's unique ID. Omit when creating a team by name.

name
string

The team's name