Skip to content
Docs

List Organization Teams

GET/__remote/api.vercel.com/v1/organizations/{organizationId}/teams
List 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.
Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.organizations.listOrganizationTeams({
organizationId: "<id>",
});
console.log(result);
}
run();
Response
{
"cursor": "string",
"teams": [
{
"avatar": "string",
"billingPlan": "enterprise",
"createdAt": "string",
"memberCount": "123",
"name": "Example Name",
"organizationId": "example_id",
"slug": "string",
"ssoMode": "organization",
"teamId": "example_id",
"updatedAt": "string"
}
]
}
AuthorizationbearerToken

Default authentication mechanism

organizationIdstringRequired
The ID of the organization.
cursorstringOptional
Pagination cursor.
includeMemberCountbooleanOptional
When true, includes each team's member count in the response.
200Success
cursorstringOptional
teamsarrayRequired
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
404Error
410Error