List Organization Teams
GET
/__remote/api.vercel.com/v1/organizations/{organizationId}/teamsList up to 100 teams in an organization, each enriched with the team's slug, name, and avatar. Set
includeMemberCount to include counts that include pending memberships but exclude email invitations without a membership record. Teams whose underlying record no longer exists are omitted, so a page may contain fewer teams than the page size (or be empty) while still returning a cursor; paginate until cursor is absent. This endpoint is in private beta. Contact your Edgenivo account team for access./__remote/api.vercel.com/v1/organizations/{organizationId}/teams
const response = await fetch('/__remote/api.vercel.com/v1/organizations/organizationId/teams?cursor=string&includeMemberCount=true', { method: 'GET', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', },});
const data = await response.json();console.log(data);Response
{ "cursor": "string", "teams": [ { "avatar": "string", "billingPlan": "enterprise", "createdAt": "string", "dsyncMode": "organization", "memberCount": "123", "name": "Example Name", "organizationId": "example_id", "slug": "string", "ssoMode": "organization", "teamId": "example_id", "updatedAt": "string" } ]}AuthorizationbearerToken
Default authentication mechanism