List roles of an organization
get
/v2/organizations/{slug}/rolesReturns a list of org-level roles for the organization.
OAuth scopes
- organizations:read
The fine-grained token must include the following permissions to access this endpoint:
- members_read
Path parameters
- slugRequiredstring
Organization slug
Response codes
- 200
- 401
- 403
- 429
Response (200)
{ "data": [ { "type": "organization_role", "attributes": { "name": "developer" } } ]}{ "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "Resource type.", "enum": [ "organization_role" ] }, "attributes": { "type": "object", "properties": { "name": { "type": "string", "description": "Role name.", "example": "developer" } }, "required": [ "name" ] } }, "required": [ "type", "attributes" ] } } }, "required": [ "data" ]}