---
title: "List roles for the current organization"
method: GET
path: "/api/roles"
tags: ["Roles"]
---

# List roles for the current organization

`GET /api/roles`

## Request

- Base URL: `https://app.cotool.ai`
- URL: `https://app.cotool.ai/api/roles`
- Auth: HTTP bearer

List all roles for the current organization

## Response `200`

Successful response

- object
  - `roles` object[], required
    - `id` string, required
    - `organizationId` string, uuid, required
    - `name` string, required
    - `description` string, nullable, required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `isSystemRole` boolean, required

## Other responses

- `400`: Bad request — input validation failed or the request was malformed
- `401`: Unauthorized — missing or invalid API key / session
- `403`: Forbidden — the authenticated user lacks the required permissions
- `500`: Internal server error

---

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