List teams

GET/v2/helpdesk/teams

Return the Helpdesk teams of your workspace with their members and team leads, so you can route tickets by team ID.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

Returns the teams of your Helpdesk. Call it to find the team_ ID you need when you create or update a ticket, or to show who belongs to which team in your own tool.

Request

GET /v2/helpdesk/teams

Query parameters:

Name Type Required Description
limit integer No Items per page, from 1 to 100. Defaults to 20.
cursor string No The nextCursor value from the previous page.
memberId string No Only teams that include this member, starting with usr_.

The call has no body. Teams are created and edited in the dashboard, as described in Teams. The API reads them.

Example request

curl "https://api.askocto.co/v2/helpdesk/teams?limit=20" \
  -H "Authorization: Bearer $OCTO_API_KEY"
const response = await fetch("https://api.askocto.co/v2/helpdesk/teams?limit=20", {
  headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` },
})

const { data } = await response.json()
for (const team of data) console.log(team.id, team.name, team.memberIds.length)

Example response

A successful call returns 200 OK.

{
  "data": [
    {
      "id": "team_2c7h5v",
      "name": "Returns",
      "memberIds": ["usr_6k9d2r", "usr_3b6t0z", "usr_9e4m1x"],
      "leadIds": ["usr_6k9d2r"],
      "createdAt": "2026-02-10T08:00:00Z",
      "updatedAt": "2026-03-02T16:20:00Z"
    },
    {
      "id": "team_8w5q3j",
      "name": "Billing",
      "memberIds": ["usr_3b6t0z", "usr_7p2n8d"],
      "leadIds": ["usr_7p2n8d"],
      "createdAt": "2026-02-10T08:05:00Z",
      "updatedAt": "2026-02-10T08:05:00Z"
    }
  ],
  "nextCursor": null
}

Response fields

Name Type Description
data[].id string The team ID, starting with team_.
data[].name string The name of the team.
data[].memberIds array of strings The workspace members in the team, each starting with usr_.
data[].leadIds array of strings The members who lead the team. Leads are also listed in memberIds.
data[].createdAt, data[].updatedAt string ISO 8601 UTC times.
nextCursor string or null Pass it as cursor for the next page. null on the last page.

Use a team_ ID as teamId in Create a ticket or as a filter in List tickets.

Errors

Status Code When
400 invalid_request limit is outside 1 to 100, or memberId is not a member ID.
401 unauthorized The API key is missing, malformed or deleted.
429 rate_limited Too many requests. Wait for the number of seconds in the Retry-After header.

Something unclear or missing? Tell us and we will fix the page.