Skip to content
Docs

List all flags for a team

GEThttps://api.vercel.com/v1/teams/{teamId}/feature-flags/flags
Retrieve all feature flags for a team across all projects. The list can be filtered by state and supports pagination.
Request
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.featureFlags.listTeamFlags({
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();
Response
{
"data": [
{
"createdAt": "123",
"createdBy": "string",
"description": "string",
"environments": "value",
"id": "icfg_1234567890",
"kind": "boolean",
"maintainerIds": [],
"ownerId": "example_id",
"permanent": "false",
"projectId": "example_id",
"revision": "123",
"seed": "123",
"slug": "string",
"state": "active",
"tags": [],
"typeName": "flag",
"updatedAt": "123",
"updatedBy": "string",
"variants": [
{
"description": "string",
"id": "icfg_1234567890",
"label": "string",
"value": "string"
}
],
"metadata": {
"creator": {
"id": "icfg_1234567890",
"name": "Example Name"
}
}
}
],
"pagination": {
"next": "string"
}
}
AuthorizationbearerToken

Default authentication mechanism

teamIdstringRequired
The Team identifier to perform the request on behalf of.
statestringOptional
The state of the flags to retrieve. Defaults to active.
withMetadatabooleanOptionalDeprecated
Deprecated. Whether to include creator metadata in each flag in the response. Resolve creator identity client-side (e.g. via the team members endpoint) instead; this parameter will be removed in a future release.
limitintegerOptional
Maximum number of flags to return.
cursorstringOptional
Pagination cursor to continue from.
kindstringOptional
The kind of flags to retrieve.
tagsarrayOptional
Filter flags by tag. Repeat the parameter for multiple tags (all must match).
slugstringOptional
The Team slug to perform the request on behalf of.
200Success
dataarrayRequired
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