Skip to main content
GET
/
teams
Get all teams for a company
curl --request GET \
  --url https://openapi.pleo.io/v1/teams \
  --header 'Authorization: Bearer <token>'
{
  "teams": [
    {
      "id": "<string>",
      "name": "<string>",
      "code": "<string>",
      "employees": [
        {
          "id": "<string>",
          "firstName": "<string>",
          "lastName": "<string>",
          "email": "<string>",
          "jobTitle": "<string>",
          "role": "<string>",
          "phone": "<string>",
          "avatar": {
            "url": "<string>"
          },
          "code": "<string>",
          "teamId": "<string>"
        }
      ],
      "reviewers": [
        {
          "id": "<string>",
          "firstName": "<string>",
          "lastName": "<string>",
          "email": "<string>",
          "jobTitle": "<string>",
          "role": "<string>",
          "phone": "<string>",
          "avatar": {
            "url": "<string>"
          },
          "code": "<string>",
          "teamId": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Open API Bearer token

Query Parameters

pageOffset
number

This is the pagination offset value. The record number you would like to start from. This offset value starts at 0.

Example:

"150"

pageSize
number
default:25

The number of teams to return for each page.

Example:

"10"

Response

Teams have been returned

teams
object[]
required

A list of teams fetched for the requested page