---
title: list-all-flags-for-a-team
product: vercel
url: /docs/rest-api/feature-flags/list-all-flags-for-a-team
canonical_url: "https://vercel.com/docs/rest-api/feature-flags/list-all-flags-for-a-team"
last_updated: 2026-06-05
type: reference
prerequisites:
  []
related:
  - /docs/rest-api
summary: Learn about list-all-flags-for-a-team on Vercel.
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

# List all flags for a team

```http
GET /v2/teams/{teamId}/feature-flags/flags
```

Retrieve all feature flags for a team across all projects. Returns an opaque cursor for pagination.

## Authentication

**bearerToken**: HTTP bearer

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `teamId` | string | Yes | The Team identifier to perform the request on behalf of. |


## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `state` | string. enum: active, archived | No | The state of the flags to retrieve. Defaults to `active`. |
| `limit` | integer. min: 1; max: 100; default: 25 | No | Maximum number of flags to return. |
| `cursor` | string | No | Pagination cursor to continue from. |
| `search` | string. maxLength: 256 | No | Search flags by their slug or description. Case-insensitive. |
| `kind` | string. enum: boolean, string, number, json | No | The kind of flags to retrieve. |
| `tags` | array | No | Filter flags by tag. Repeat the parameter for multiple tags (all must match). |
| `includeMarketplaceFlags` | boolean | No | Whether to include Marketplace experimentation items in the paginated response. Defaults to false. |
| `slug` | string | No | The Team slug to perform the request on behalf of. |


## Responses

### 200: No description

Content-Type: `application/json`

```json
{
  "type": "object",
  "required": [
    "data",
    "pagination"
  ],
  "properties": {
    "pagination": {
      "type": "object",
      "required": [
        "next"
      ],
      "properties": {
        "next": {
          "type": "string",
          "nullable": true
        }
      }
    },
    "data": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "createdAt",
              "createdBy",
              "environments",
              "id",
              "kind",
              "ownerId",
              "projectId",
              "revision",
              "seed",
              "slug",
              "state",
              "typeName",
              "updatedAt",
              "variants"
            ]
          },
          {
            "type": "object",
            "required": [
              "externalId",
              "id",
              "integrationConfigurationId",
              "origin",
              "ownerId",
              "projectId",
              "resourceId",
              "slug",
              "state",
              "typeName"
            ]
          }
        ]
      }
    }
  }
}
```

### 400: One of the provided values in the request query is invalid.

### 401: The request is not authorized.

### 403: You do not have permission to access this resource.

---

## Related

- [feature-flags endpoints](/docs/rest-api#feature-flags)

- [REST API overview](/docs/rest-api)

- [OpenAPI spec](https://openapi.vercel.sh/) (machine-readable, all endpoints)

---

[View full sitemap](/docs/sitemap)
