Skip to main content
GET
/
v2
/
teams
getTeams
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,  });   console.log(result); }  run();
{  "teams": [  {  "connect": {  "enabled": true  },  "creatorId": "R6efeCJQ2HKXywuasPDc0fOWB",  "updatedAt": 1611796915677,  "emailDomain": "example.com",  "saml": {  "connection": {  "type": "OktaSAML",  "status": "linked",  "state": "active",  "connectedAt": 1611796915677,  "lastReceivedWebhookEvent": 1611796915677  },  "directory": {  "type": "OktaSAML",  "state": "active",  "connectedAt": 1611796915677,  "lastReceivedWebhookEvent": 1611796915677  },  "enforced": true,  "defaultRedirectUri": "vercel.com",  "roles": {}  },  "inviteCode": "hasihf9e89",  "description": "Our mission is to make cloud computing accessible to everyone.",  "defaultRoles": {  "teamRoles": [  "OWNER"  ],  "teamPermissions": [  "IntegrationManager"  ]  },  "stagingPrefix": "<string>",  "resourceConfig": {  "concurrentBuilds": 123,  "elasticConcurrencyEnabled": true,  "edgeConfigSize": 123,  "edgeConfigs": 123,  "kvDatabases": 123,  "blobStores": 123,  "postgresDatabases": 123,  "buildEntitlements": {  "enhancedBuilds": true  }  },  "previewDeploymentSuffix": "example.dev",  "platform": true,  "disableHardAutoBlocks": 123,  "remoteCaching": {  "enabled": true  },  "defaultDeploymentProtection": {  "passwordProtection": {  "deploymentType": "<string>"  },  "ssoProtection": {  "deploymentType": "<string>"  }  },  "defaultExpirationSettings": {  "expirationDays": 123,  "expirationDaysProduction": 123,  "expirationDaysCanceled": 123,  "expirationDaysErrored": 123,  "deploymentsToKeep": 123  },  "enablePreviewFeedback": "default",  "enableProductionFeedback": "default",  "sensitiveEnvironmentVariablePolicy": "default",  "hideIpAddresses": true,  "hideIpAddressesInLogDrains": true,  "ipBuckets": [  {  "bucket": "<string>",  "supportUntil": 123  }  ],  "id": "team_nllPyCtREAqxxdyFKbbMDlxd",  "slug": "my-team",  "name": "My Team",  "avatar": "6eb07268bcfadd309905ffb1579354084c24655c",  "membership": {  "uid": "<string>",  "entitlements": [  {  "entitlement": "<string>"  }  ],  "teamId": "<string>",  "confirmed": true,  "accessRequestedAt": 123,  "role": "OWNER",  "teamRoles": [  "OWNER"  ],  "teamPermissions": [  "IntegrationManager"  ],  "createdAt": 123,  "created": 123,  "joinedFrom": {  "origin": "link",  "commitId": "<string>",  "repoId": "<string>",  "repoPath": "<string>",  "gitUserId": "<string>",  "gitUserLogin": "<string>",  "ssoUserId": "<string>",  "ssoConnectedAt": 123,  "idpUserId": "<string>",  "dsyncUserId": "<string>",  "dsyncConnectedAt": 123  }  },  "createdAt": 1630748523395  }  ],  "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

A paginated list of teams.

teams
object[]
required
  • Option 1
  • Option 2
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.

⌘I