Skip to content
Docs

List flags project connections

GET/__remote/api.vercel.com/v1/projects/{projectIdOrName}/feature-flags/connections
Lists the flags project connections of a project. By default these are the projects that may read this project's flags; with role=consumer these are the projects whose flags this project may read. Connections are within one team and apply across environments. Requires permission to list connections on the selected project.
/__remote/api.vercel.com/v1/projects/{projectIdOrName}/feature-flags/connections
const response = await fetch('/__remote/api.vercel.com/v1/projects/projectIdOrName/feature-flags/connections?role=string&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
"value"
AuthorizationbearerToken

Default authentication mechanism

projectIdOrNamestringRequired
The project id or name
rolestringOptional
List connections where this project is the source (default) or the consumer
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Success
400One of the provided values in the request query is invalid.
401The request is not authorized.
402The account is missing a payment so payment method must be updated
403You do not have permission to access this resource.
404Error
410Error