Roles
- Written for
- + Written for
- Deprecated
- + Deprecated
- Applies to
- + Applies to
AdminUpdated Sep 11, 2026
Roles
Backend API — secret key (Authorization: Bearer sk_…).
5 routes. Each row is one endpoint with its explanation, required scope, and whether it honours the Idempotency-Key header.
Method & path | Scope | Idem | Explanation |
|---|---|---|---|
|
| List roles with their permissions and how many members hold each. | |
|
| Create a custom role. Keys are namespaced and sys_ is reserved. | |
|
| Relabel a role. The key is immutable once published. | |
|
| Replace a role permission set. System roles are fixed. | |
|
| Delete an unused custom role. A role members hold returns ROLE_IN_USE. |
Was this page helpful?