---
title: "Get a list of roles"
method: GET
path: "/api/v1/roles"
tags: ["Roles"]
---

# Get a list of roles

`GET /api/v1/roles`

Required scope - read_role

## Response `200`

A list of roles

- object
  - `roles` Role[]
    - `id` number, required
    - `name` string, required
    - `note` string, required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `deletedAt` string, nullable, required

## Changes

- **2024-10-03** `795cad873b47` — 6 info
  - the response property `roles/items/createdAt` became required for the status `200`
  - the response property `roles/items/deletedAt` became required for the status `200`
  - the response property `roles/items/id` became required for the status `200`
  - the response property `roles/items/name` became required for the status `200`
  - …2 more
- **2024-08-11** `11e2773b3a1e` — 6 breaking
  - the response property `roles/items/createdAt` became optional for the status `200`
  - the response property `roles/items/deletedAt` became optional for the status `200`
  - the response property `roles/items/id` became optional for the status `200`
  - the response property `roles/items/name` became optional for the status `200`
  - …2 more

[Change history](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/changes/api/v1/roles/get.md)

---

[API](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api.md) · [All operations](https://skmtc.dev/valuemelody/apis/melody-auth-s2s-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/valuemelody/melody-auth-s2s-api/revisions/2e1471620fd7/schema)
