GET
/
v2
/
teams
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.teams.getTeams({
    limit: 20,
    since: 1540095775951,
    until: 1540095775951,
  });

  // Handle the result
  console.log(result);
}

run();
{
  "teams": [
    {}
  ],
  "pagination": {
    "count": 20,
    "next": 1540095775951,
    "prev": 1540095775951
  }
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

limit
number

Maximum number of Teams which may be returned.

Example:

20

since
number

Timestamp (in milliseconds) to only include Teams created since then.

Example:

1540095775951

until
number

Timestamp (in milliseconds) to only include Teams created until then.

Example:

1540095775951

Response

200
application/json

A paginated list of teams.

teams
object[]
required

Data representing a Team.

pagination
object
required

This object contains information related to the pagination of the current request, including the necessary parameters to get the next or previous page of data.