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

# List roles

`GET /api/2.0/roles`

## Request

- Base URL: `https://app.agenticbi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.agenticbi.com/api/2.0/roles`
- Auth: HTTP bearer

## 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.dev/agenticbi/apis/user-management-api.md) · [All operations](https://skmtc.dev/agenticbi/apis/user-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenticbi/apis/user-management-api/revisions/62c42a99830e?raw)
