---
title: "Get a role"
method: GET
path: "/api/v1/roles/{id}"
tags: ["roles"]
---

# Get a role

`GET /api/v1/roles/{id}`

Get a role by ID with its permissions

## Path parameters

- `id` string, required

## Response `200`

OK

- Role
  - `description` string
  - `id` string
  - `name` string
  - `permissions` Permission[]
    - `action` string
    - `description` string
    - `id` string
    - `name` string
    - `resource_type` string

## Other responses

- `404` — Not Found

---

[API](https://skmtc.dev/marmotdata/apis/marmot-api.md) · [All operations](https://skmtc.dev/marmotdata/apis/marmot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/marmotdata/marmot-api/revisions/0bd802afff21/schema)
