Skip to main content

create_api_key

Function create_api_key 

Source
pub async fn create_api_key(
    __arg0: State<SaasState>,
    __arg1: Auth,
    __arg2: Json<CreateApiKeyRequest>,
) -> impl IntoResponse
Expand description

Create a new API key.

Requires api_keys:write, and the new key’s scopes must all be scopes the caller holds: a key cannot mint a key more powerful than itself, and only a * credential can mint a * key. Without both rules any key that could reach this endpoint was, in effect, a * key.