Skip to content
Docs

List Vercel CI branch suggestions for a team

GEThttps://api.vercel.com/v2/vercel-ci/branches
List branches
https://api.vercel.com/v2/vercel-ci/branches
const response = await fetch('https://api.vercel.com/v2/vercel-ci/branches?query=string&limit=123&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
{
"branches": [
{
"name": "Example Name",
"count": "123"
}
]
}
Errors
{
"error": {
"code": "string",
"message": "string"
}
}
AuthorizationbearerToken

Default authentication mechanism

querystringOptional
limitnumberOptional
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Successfully listed Vercel CI branch suggestions.
branchesarrayRequired
400One of the provided values in the request query is invalid.
401The request is not authorized.
errorobjectRequired
403You do not have permission to access this resource.
errorobjectRequired
404Error
410Error
429Error
errorobjectRequired
500Error
errorobjectRequired
503Error