---
title: "Fetch role"
method: GET
path: "/roles/{roleId}"
tags: ["Role"]
---

# Fetch role

`GET /roles/{roleId}`

Returns a role based on a single ID

## Path parameters

- `roleId` integer, required

## Query parameters

- `filter` string, string

## Response `200`

Fetched role

- Role
  - `id` integer
  - `created_at` string
  - `updated_at` string
  - `name` string
  - `is_active` integer

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/agriya/apis/ofos-api-endpoints.md) · [All operations](https://skmtc.net/agriya/apis/ofos-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agriya/ofos-api-endpoints/revisions/8db13a44d758/schema)
