Retrieve the feature flags of a deployment
GET
/__remote/api.vercel.com/v1/deployments/{deploymentId}/feature-flagsRetrieve the feature flags of a deployment.
/__remote/api.vercel.com/v1/deployments/{deploymentId}/feature-flags
const response = await fetch('/__remote/api.vercel.com/v1/deployments/deploymentId/feature-flags?teamId=string&slug=string', { method: 'GET', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', },});
const data = await response.json();console.log(data);Response
{ "flags": [ "value" ], "status": { "createdAt": "123", "deploymentId": "example_id", "flagCount": "123", "projectId": "example_id", "responseStatus": "123" }}AuthorizationbearerToken
Default authentication mechanism