---
title: "Get a list of all roles of the current tenant"
method: GET
path: "/api/v{version}/roles"
tags: ["roles"]
---

# Get a list of all roles of the current tenant

`GET /api/v{version}/roles`

## Request

- Base URL: `https://api.zrexpress.app`
- URL: `https://api.zrexpress.app/api/v{version}/roles`
- Auth: HTTP bearer and API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/zrexpress/apis/zrexpress-api/docs/api/v:version/roles/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve a list of all roles available in the current tenant.
                        This endpoint is accessible to users with administrative roles such as 
                        GlobalAdmin, GlobalViewer, GlobalUsersManager, HubAdmin, HubUsersManager, SupplierAdmin, and SupplierUsersManager.

## Path parameters

- `version` string, required

## Headers

- `X-Tenant` string, required

## Response `200`

OK

- RoleDto[]
  - `id` string, nullable
  - `name` string, nullable
  - `description` string, nullable

## Changes

- **2026-11-03** `652262902df9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zrexpress/apis/zrexpress-api/changes/api/v:version/roles/get.md)

---

[API](https://skmtc.dev/zrexpress/apis/zrexpress-api.md) - [All operations](https://skmtc.dev/zrexpress/apis/zrexpress-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zrexpress/apis/zrexpress-api/revisions/652262902df9?raw)
