---
title: "List all Roles"
method: GET
path: "/api/v1/roles"
tags: ["Roles"]
---

# List all Roles

`GET /api/v1/roles`

Permissions needed: ACCESS_ADMINISTRATION_SETTINGS
Returns the Role list. Filter by clinic_id or group_id.
When filtering by clinic_id for an enterprise clinic, the response automatically includes both clinic-local roles AND enterprise group-level roles. Non-enterprise clinics see only their own clinic-local roles (unchanged behavior).
When filtering by group_id, the response includes both group-level roles and the clinic-local roles of every clinic in the group (requires enterprise admin permissions).

## Query parameters

- `filter[clinic_id]` integer
- `filter[group_id]` integer
- `include` string

## Response `200`

successful operation

- object
  - `data` Data[] — unresolved $ref
  - `links` Links — unresolved $ref
  - `meta` Meta — unresolved $ref
  - `permissions_groups` object
    - `id` integer
    - `title` string
    - `weight` integer
    - `permissions` object
      - `id` integer
      - `title` string
      - `weight` integer
      - `depends_on` Permissions — unresolved $ref

## Other responses

- `400` — unresolved $ref
- `401` — unresolved $ref
- `403` — unresolved $ref
- `429` — unresolved $ref

---

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