List roles
List custom and predefined roles for the authenticated user's account. Results are paginated; use limit and cursor for subsequent pages.
Account admins, members, and other callers with ROLE_READ receive each role's full permission list. Callers without ROLE_READ are rejected with 403.
<Note>This endpoint is in beta, read more here.</Note>
Query parameters
Maximum items to return. Defaults to 50 if omitted; maximum is 100.
Opaque pagination cursor returned from a previous response (pagination.next_cursor). Treat it as an unreadable token; do not attempt to parse or construct it.
Filter roles by predefined status.
- true - Return only system-defined predefined roles.
- false - Return only custom (account-defined) roles.
When not specified, returns all roles (both predefined and custom).
Response
Returns a list of role objects.
Changes
Changed in 2 of the 16 revisions of this API.8
- ●
added the new
AGENT_ROLE_CREATEenum value to theroles/items/permissions/items/response property for the response status200response-property-enum-value-added
- ●
added the new
AGENT_ROLE_DELETEenum value to theroles/items/permissions/items/response property for the response status200response-property-enum-value-added
- ●
added the new
AGENT_ROLE_READenum value to theroles/items/permissions/items/response property for the response status200response-property-enum-value-added
- ●
added the new
AGENT_ROLE_UPDATEenum value to theroles/items/permissions/items/response property for the response status200response-property-enum-value-added
- ●
- ●
added the new
ROLE_CREATEenum value to theroles/items/permissions/items/response property for the response status200response-property-enum-value-added
- ●
added the new
ROLE_DELETEenum value to theroles/items/permissions/items/response property for the response status200response-property-enum-value-added
- ●
added the new
ROLE_READenum value to theroles/items/permissions/items/response property for the response status200response-property-enum-value-added
- ●
added the new
ROLE_UPDATEenum value to theroles/items/permissions/items/response property for the response status200response-property-enum-value-added
- ●
Of the 16 revisions, 1 has no diff computed.