Reads an access group
GET
https://api.vercel.com/v1/access-groups/{idOrName}Allows to read an access group
https://api.vercel.com/v1/access-groups/{idOrName}
const response = await fetch('https://api.vercel.com/v1/access-groups/idOrName?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
{ "teamPermissions": [], "entitlements": [], "isDsyncManaged": "false", "name": "my-access-group", "createdAt": "1588720733602", "teamId": "team_123a6c5209bc3778245d011443644c8d27dc2c50", "updatedAt": "1588720733602", "accessGroupId": "ag_123a6c5209bc3778245d011443644c8d27dc2c50", "membersCount": "5", "projectsCount": "2", "teamRoles": []}AuthorizationbearerToken
Default authentication mechanism
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.
410Error