---
title: "List roles"
method: GET
path: "/api/2.0/roles"
tags: ["Role Management API"]
---

# List roles

`GET /api/2.0/roles`

## Response `200`

Success

- Role[]
  - `createdDate` integer — Created date in milliseconds
  - `lastModDate` integer — Last modified date
  - `id` integer — Role id
  - `name` string — Role name
  - `jsonConfig` string — Role JSON config (viz settings, etc.)

## Other responses

- `401` — User is not authenticated
- `403` — User is not allowed to access this resource
- `500` — Error during processing

---

[API](https://skmtc.net/knowi/apis/user-management-api.md) · [All operations](https://skmtc.net/knowi/apis/user-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/knowi/user-management-api/revisions/6e6982573ba6/schema)
