Roles
Current user's roles, union of permissions, single-permission check.
Read-only from the client side. Admins manage roles and assignments at /admin/roles/*.
Source: apps/api/src/routes/client/roles.ts.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /client/roles | Roles assigned to the caller with role definition. |
| GET | /client/roles/permissions | Deduplicated union of permissions across all of the caller's roles. |
| GET | /client/roles/check/:permission | Check a single permission; returns the roles that grant it. |
GET /client/roles
Response 200
Try it:
GET
client auth/client/rolescurl -X GET 'https://api.amba.dev/client/roles'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /client/roles/permissions
Response 200
Try it:
GET
client auth/client/roles/permissionscurl -X GET 'https://api.amba.dev/client/roles/permissions'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /client/roles/check/:permission
Response 200
Try it:
GET
client auth/client/roles/check/%7B%7Bpermission%7D%7Dcurl -X GET 'https://api.amba.dev/client/roles/check/%7B%7Bpermission%7D%7D'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: