List Roles
| Endpoint | Method |
|---|---|
/api/admin/settings/roles | GET |
Returns every admin role configured in the store in the { data, meta } envelope. A role is a named permission set assigned to admin users to control which areas of the admin panel they can access. Use it to populate a role picker, audit which roles exist, or look up a role's id before a detail / update / delete call.
Pagination
| Parameter | Description |
|---|---|
page | Page number, 1-based. Default 1. |
per_page | Items per page. Default 10, max 50. |
Filters
Query parameters that narrow the result. Supplying more than one narrows further — they combine with logical AND. They mirror the admin Roles datagrid filters.
| Parameter | Match | Example |
|---|---|---|
name | Partial (contains). | ?name=Catalog |
permission_type | Exact — all or custom. | ?permission_type=custom |
Sorting
| Parameter | Values |
|---|---|
sort | id (default), name |
order | asc, desc (default desc) |
Both the compound form ?sort=name-asc and the split form ?sort=name&order=asc are accepted.
Notes
permissionsis a string array of permission keys for acustomrole. For anallrole it isnull(full access — no explicit key list is stored).- Seeded core roles (such as Administrator) may have
nullcreatedAt/updatedAt.
See the Roles overview for field meanings and behaviour.

