Skip to main content

API Keys

List API Keys

Returns API keys visible to the current workspace as a JSON array sorted by name. Raw tokens are never included; the token field contains a masked display value.

Create an API Key

Mints an opaque sk-orq- API key. Use project_scope to bind it to a single project and permission_mode with access to restrict permissions. A management key with API-key write access can create keys. The legacy projects field is also accepted. The raw token is returned once in the token field and is never retrievable afterwards. Unknown body fields are rejected.

List Capabilities

Returns the capability catalog: the set of permission domains that can be granted to an API key. Each entry includes the domain id, display name, group, allowed project scopes and whether it can be granted read or write access. No credentials are required.

Delete an API Key

Permanently deletes an API key. The key is revoked immediately; in-flight requests using it will fail. The response body is empty on success.

Retrieve an API Key

Retrieves the metadata for an existing API key by its unique identifier. The raw secret is never returned; token carries a masked display value.

Update an API Key

Updates mutable fields of an API key: display name, status (active / disabled / revoked), permission mode and access map, project scope and constraints. Omitted fields keep their current values. Unknown body fields are rejected.