---
title: "Retrieve the feature flags of a deployment"
method: GET
path: "/v1/deployments/{deploymentId}/feature-flags"
tags: ["feature-flags"]
---

# Retrieve the feature flags of a deployment

`GET /v1/deployments/{deploymentId}/feature-flags`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/deployments/{deploymentId}/feature-flags`
- Auth: HTTP bearer

Retrieve the feature flags of a deployment.

## Path parameters

- `deploymentId` string, required

## Query parameters

- `teamId` string
- `slug` string

## Response `200`

- object
  - `flags` object[], required
  - `status` object, nullable, required
    - `createdAt` number, required
    - `deploymentId` string, required
    - `flagCount` number, required: The number of flag definitions returned by the flags discovery endpoint.
    - `projectId` string, required
    - `responseStatus` number, required: The HTTP status code from the flags discovery endpoint.

## Other responses

- `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.
- `404`
- `410`

## Changes

- **2026-07-21** `2ae10ee9d21c`: 1 info
  - added the non-success response with the status `410`
- **2026-06-11** `14b4658f819e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/deployments/:deploymentId/feature-flags/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)
