---
title: "List Project Roles"
method: GET
path: "/v1/projects/{projectId}/roles"
tags: ["Project Roles"]
---

# List Project Roles

`GET /v1/projects/{projectId}/roles`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/projects/{projectId}/roles`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/projects/:projectId/roles/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists the roles available to a project. This includes both global, system-defined roles (where `projectId` is `null`) and custom roles defined for the project.

## Path parameters

- `projectId` string, required

## Response `200`

- ListProjectRolesResponse
  - `success` boolean, required: Indicates if the request was successful
  - `data` object, required
    - `roles` ProjectRole[]: List of roles available to the project, including global system roles
      - `id` string, required: Unique identifier for the role
      - `name` string, required: Name of the role
      - `description` string, nullable: Optional description of the role
      - `projectId` string, nullable: The owning project id, or `null` for global, system-defined roles that are available to every project.
      - `policies` NamedRef[]: The policies attached to this role
        - `id` string, required: Unique identifier
        - `name` string, required: Name

## Changes

> 54 revisions in range; 3 not diffed.

- **2026-05-31** `173563ada468`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/changes/v1/projects/:projectId/roles/get.md)

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
