---
title: "Retrieve project role"
method: GET
path: "/projects/{project_id}/roles/{role_id}"
tags: ["Roles"]
---

# Retrieve project role

`GET /projects/{project_id}/roles/{role_id}`

Retrieves a project role.

## Path parameters

- `project_id` string, required
- `role_id` string, required

## Response `200`

Project role retrieved successfully.

- Role — Details about a role that can be assigned through the public Roles API.
  - `object` 'role', required — Always `role`.
  - `id` string, required — Identifier for the role.
  - `name` string, required — Unique name for the role.
  - `description` string, nullable, required — Optional description of the role.
  - `permissions` string[], required — Permissions granted by the role.
  - `resource_type` string, required — Resource type the role is bound to (for example `api.organization` or `api.project`).
  - `predefined_role` boolean, required — Whether the role is predefined and managed by OpenAI.

---

[API](https://skmtc.net/openai/apis/openai-api.md) · [All operations](https://skmtc.net/openai/apis/openai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openai/openai-api/versions/dcd35773a322/schema)
