Skip to main content
GET
/
api
/
people
/
v1
/
teams
/
list
List teams
curl --request GET \
  --url https://app.trelica.com/api/people/v1/teams/list \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "65207c3ffa0d2abb07955307",
    "name": "Engineering"
  },
  {
    "parentId": "65207c3ffa0d2abb07955307",
    "id": "65207c3ffa0d2abb07955309",
    "name": "Development"
  },
  {
    "parentId": "65207c3ffa0d2abb07955307",
    "id": "65207c3ffa0d2abb07955308",
    "name": "DevOps"
  },
  {
    "id": "65207c3ffa0d2abb0795530a",
    "name": "Finance"
  },
  {
    "parentId": "65207c3ffa0d2abb0795530a",
    "id": "65207c3ffa0d2abb0795530b",
    "name": "Accounts Payable"
  },
  {
    "id": "65207c3ffa0d2abb0795530e",
    "name": "HR"
  },
  {
    "id": "65207c3ffa0d2abb07955313",
    "name": "Sales"
  },
  {
    "parentId": "65207c3ffa0d2abb07955313",
    "id": "65207c3ffa0d2abb07955314",
    "name": "Technical Pre-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

parentId
string | null

The ID of the parent team, or null for a root team

id
string | null

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

name
string | null

The team's name