---
title: "List roles"
method: GET
path: "/iam/v1/roles"
tags: ["Roles"]
---

# List roles

`GET /iam/v1/roles`

Returns a list of roles.

## Response `200`

OK - List of roles returned.

- object
  - `roles` Role[]
    - `id` string — The unique ID of the role.
    - `name` string — The name of the role.
    - `type` string — The type of the role (preset or custom).
    - `customer` string — The customer ID if this is a custom role.
    - `permissions` string[] — List of permission IDs assigned to the role.

## Other responses

- `400` — Bad Request - The server cannot process the request, often due to a malformed request.
- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `500` — Internal Server Error - Something went wrong with the DoiT API server.

---

[API](https://skmtc.dev/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.dev/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/revisions/9416402fc119/schema)
