---
title: "GET /roles/{roleId}"
method: GET
path: "/roles/{roleId}"
---

# GET /roles/{roleId}

`GET /roles/{roleId}`

## Path parameters

- `roleId` string, required

## Response `200`

200 response

- Role
  - `createdBy` string, nullable
  - `createdTime` string, nullable
  - `description` string, nullable
  - `name` string, nullable
  - `permissions` object[], required
    - `action` 'read' | 'write' | 'delegate' | '*', required
    - `effect` 'allow' | 'deny', required
    - `resourceId` string, required
  - `roleId` string, required
  - `updatedBy` string, nullable
  - `updatedTime` string, nullable

## Other responses

- `400` — 400 response
- `403` — 403 response
- `404` — 404 response
- `415` — 415 response
- `500` — 500 response

## Changes

- **2023-09-14** `622a6f4fda6c` — 1 warning, 1 info
  - added the new `delegate` enum value to the `permissions/items/action` response property for the response status `200`
  - the `roleId` response's property pattern was changed from `^las:role:[0-9A-Za-z-_]+$` to `^las:role:[0-9A-Za-z-_]{1,32}$` for the status `200`
- **2023-08-25** `c8551bfdd99f` — 1 info
  - endpoint added
- **2021-11-05** `9788e6bfa925` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/lucidtechai/apis/lucidtech-api/changes/roles/:roleId/get.md)

---

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