---
title: "Roles defined for a project"
method: GET
path: "/v1/project/{name}/roles"
tags: ["Role contracts"]
---

# Roles defined for a project

`GET /v1/project/{name}/roles`

## Request

- Base URL: `https://api.chainmemory.ai`
- URL: `https://api.chainmemory.ai/v1/project/{name}/roles`
- Auth: API key in header `x-api-key`

Role ids are not guessable: list them before assuming one. Only contracts with status `active` can be assumed.

## Path parameters

- `name` string, required

## Response `200`

Roles

---

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