Skip to main content
Retrieve all roles in your workspace including their assigned permissions. Results are paginated and sorted by their id.

Required Permissions

Your root key must have the following permission:
  • rbac.*.read_role

Request

integer
default:"100"
Maximum number of roles to return in a single response.Use smaller values for faster response times and better UI performance.Use larger values when you need to process many roles efficiently.Results exceeding this limit will be paginated with a cursor for continuation.Min: 1Max: 100Example: 50
string
Pagination cursor from a previous response to fetch the next page of roles.Include this when you need to retrieve additional roles beyond the first page.Each response containing more results will include a cursor value that can be used here.Leave empty or omit this field to start from the beginning of the role list.Max length: 1024 charactersExample: eyJrZXkiOiJyb2xlXzEyMzQifQ==

Response

array
required
Array of role objects.Each role includes:
  • id: Role identifier
  • name: Role name
  • description: Role description (if set)
  • permissions: Array of assigned permissions
  • createdAt: Creation timestamp
  • updatedAt: Last update timestamp
object
Pagination information for fetching additional results.
string
Token to fetch the next page of results.
boolean
Whether more results are available.

Examples

With Pagination

Response Example