---
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
    - `name` string
    - `note` string
    - `createdAt` string
    - `updatedAt` string
    - `deletedAt` string, nullable

## Changes

- **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.dev/valuemelody/apis/melody-auth-s2s-api/revisions/ffd604cd7944?raw)
