Organization API › Teams
List a team's roles
GET/api/v1/teams/{id}/roles
The roles the team holds; everyone in the team holds them. An unknown team gives [].
Permission (API-key scope): identity:team:read.
Authorization
bearerAuth(identity:team:read)apiKeyHeader(identity:team:read)
Parameters
Path parameters
idstring requiredThe id of the member (usr_…), team (team_…), role (role_…), invitation (inv_…) or organization (org_…) the path names.
Responses
200
The roles.
dataarray of Role requiredShow Role properties
idstring requiredorg_idstring requirednamestring requireddescriptionstringpermissionsarray of string requiredPermission names from the catalog (GET /api/v1/permissions).built_instringSet on the three default roles, which cannot be deleted and only an administrator edits.created_atstring (date-time) requiredupdated_atstring (date-time) required
successboolean required
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
Example request
curl -X GET 'https://evohub.io/api/v1/teams/string/roles' \
-H 'Authorization: Bearer <TOKEN>'