---
title: "Get All Roles"
method: GET
path: "/roles"
tags: ["Role"]
---

# Get All Roles

`GET /roles`

Returns all roles for the current tenant

## Headers

- `tenant-id` string

## Response `200`

Roles retrieved successfully

- RoleListResponseDto — Paginated list of roles
  - `data` RoleResponseDto[] — List of roles
    - `id` string — Role ID
    - `name` string — Role name
    - `tenantId` string — Tenant ID
    - `description` string — Role description
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `createdBy` string — Created by
    - `updatedBy` string — Updated by
  - `totalCount` integer — Total number of roles
  - `links` PageLinks1
    - `self` string
    - `next` string
    - `prev` string

## Other responses

- `400` — Bad request - Invalid request parameters or missing required headers
- `401` — Authentication required - Valid authentication token is missing or invalid
- `403` — Forbidden - User does not have the required permissions to read roles
- `500` — Internal server error - An unexpected error occurred while processing the request

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/3d27e9019c7b/schema)
