Skip to main content

save_api_key

Function save_api_key 

Source
pub async fn save_api_key(
    __arg0: State<UnifiedAppState>,
    __arg1: Json<SaveApiKeyRequest>,
) -> Result<impl IntoResponse, StatusCode>
Expand description

POST /api-keys — save or update an API key.

The plaintext value is encrypted using machine-specific encryption and stored in SQLite.