---
title: "ListRoles"
method: GET
path: "/api/roles"
tags: ["Roles"]
---

# ListRoles

`GET /api/roles`

## Query parameters

- `ids` string[], nullable
- `searchString` string, nullable
- `searchIgnoreCase` boolean, nullable
- `currentPage` integer
- `pageSize` integer
- `orderBy` string, nullable
- `sortOrder` 'asc' | 'desc' | 'null', nullable

## Response `200`

Request fulfilled, document follows

- object
  - `items` Role[]
    - `createdAt` string, date-time, required
    - `id` string, uuid, required
    - `name` string, required
    - `slug` string, required
    - `updatedAt` string, date-time, required
  - `limit` integer — Maximal number of items to send.
  - `offset` integer — Offset from the beginning of the query.
  - `total` integer — Total number of items.

## Other responses

- `400` — Bad request syntax or unsupported method

---

[API](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template.md) · [All operations](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/litestar-org/litestar-fullstack-template/revisions/e5e7606282ec/schema)
