Skip to content
Docs

Retrieve the feature flags of a deployment

GET/__remote/api.vercel.com/v1/deployments/{deploymentId}/feature-flags
Retrieve 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

deploymentIdstringRequired
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Success
flagsarrayRequired
statusobjectRequired
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