---
title: "List flag versions"
method: GET
path: "/v1/projects/{projectIdOrName}/feature-flags/flags/{flagIdOrSlug}/versions"
tags: ["feature-flags"]
---

# List flag versions

`GET /v1/projects/{projectIdOrName}/feature-flags/flags/{flagIdOrSlug}/versions`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/projects/{projectIdOrName}/feature-flags/flags/{flagIdOrSlug}/versions`
- Auth: HTTP bearer

Lists flag versions for a given flag.

## Path parameters

- `projectIdOrName` string, required
- `flagIdOrSlug` string, required

## Query parameters

- `limit` number
- `cursor` string: Pagination cursor
- `environment` string: Environment to filter by
- `withMetadata` boolean: Whether to include metadata
- `teamId` string
- `slug` string

## Response `200`

- object
  - `pagination` object, required
  - `versions` object[], required
    - `changedEnvironments` string[], required
    - `createdAt` number, required
    - `createdBy` string
    - `flagId` string, required
    - `id` string, required
    - `message` string
    - `revision` number, required
    - `data` object, required
      - `description` string
      - `environments` object, required
      - `maintainerIds` string[]
      - `permanent` false | true
      - `seed` number, required
      - `state` 'active' | 'archived', required
      - `tags` string[]
      - `variants` object[], required
        - `description` string
        - `id` string, required
        - `label` string
        - `value` union, required
          - string
          - number
          - object
          - unknown[]
            - unknown
          - false | true
    - `metadata` object
      - `creator` object
        - `id` string, required
        - `name` string, required

## Other responses

- `304`
- `400`: One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `402`: The account is missing a payment so payment method must be updated
- `403`: You do not have permission to access this resource.
- `404`
- `410`

## Changes

- **2026-09-30** `099fbe1f521c`: 2 info
  - added the optional property `versions/items/data/environments/additionalProperties/fallthrough/oneOf[subschema #3]/finalPromille` to the response with the `200` status
  - added the optional property `versions/items/data/environments/additionalProperties/rules/items/outcome/oneOf[subschema #3]/finalPromille` to the response with the `200` status
- **2026-09-15** `bc022fa59ffb`: 4 info
  - added the optional property `versions/items/data/variants/items/description` to the response with the `200` status
  - added the optional property `versions/items/data/variants/items/label` to the response with the `200` status
  - added the required property `versions/items/data/variants/items/id` to the response with the `200` status
  - added the required property `versions/items/data/variants/items/value` to the response with the `200` status
- **2026-08-22** `3157f7f3ef33`: 2 breaking
  - added `subschema #4` to the `versions/items/data/environments/additionalProperties/fallthrough` response property `oneOf` list for the response status `200`
  - added `subschema #4` to the `versions/items/data/environments/additionalProperties/rules/items/outcome` response property `oneOf` list for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/projects/:projectIdOrName/feature-flags/flags/:flagIdOrSlug/versions/get.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
