rbac.*.create_role
See the API reference for the full HTTP endpoint documentation.
Usage
Flags
The unique name for this role. Must be unique within your workspace and clearly indicate the role’s purpose. Use descriptive names like
admin, editor, or billing_manager. Must be 1-512 characters, start with a letter, and contain only letters, numbers, dots, hyphens, and underscores.Provides comprehensive documentation of what this role encompasses and what access it grants. Include information about the intended use case, what permissions should be assigned, and any important considerations. This internal documentation helps team members understand role boundaries and security implications. Not visible to end users. Maximum 512 characters.
Global Flags
| Flag | Type | Description |
|---|---|---|
--root-key | string | Override root key ($UNKEY_ROOT_KEY) |
--api-url | string | Override API base URL (default: https://api.unkey.com) |
--config | string | Path to config file (default: ~/.unkey/config.toml) |
--output | string | Output format — use json for raw JSON |
Examples
Output
Default output shows the request ID with latency, followed by the created role:--output=json, the full response envelope is returned:

