Skip to content
Docs

List access groups for a team, project or member

GEThttps://api.vercel.com/v1/access-groups
List access groups
https://api.vercel.com/v1/access-groups
const response = await fetch('https://api.vercel.com/v1/access-groups?projectId=string&search=string&membersLimit=123&projectsLimit=123&limit=123&next=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

projectIdstringOptional
Filter access groups by project.
membersLimitintegerOptional
Number of members to include in the response.
projectsLimitintegerOptional
Number of projects to include in the response.
limitintegerOptional
Limit how many access group should be returned.
nextstringOptional
Continuation cursor to retrieve the next page of results.
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.
403You do not have permission to access this resource.
404Error
410Error