---
title: "List all available roles"
method: GET
path: "/tenant/roles"
tags: ["Roles"]
---

# List all available roles

`GET /tenant/roles`

Retrieves a paginated list of all roles defined in the tenant.
Supports filtering and sorting via the RQL query parameter.

## Query parameters

- `q` string

## Response `200`

Paginated list of roles

- object
  - `limit` integer
  - `offset` integer
  - `total` integer
  - `results` ModelsRole[]
    - `created_at` integer
    - `created_by` string
    - `description` string
    - `display_name` string
    - `id` string
    - `name` string
    - `tenant_id` string
    - `type` string
    - `updated_at` integer
    - `updated_by` string

## Other responses

- `500` — Failed to retrieve roles

---

[API](https://skmtc.net/blinkops/apis/blink-rest-api.md) · [All operations](https://skmtc.net/blinkops/apis/blink-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blinkops/blink-rest-api/revisions/f043409736b2/schema)
