pub async fn delete_api_key(hash: &str) -> Result<bool, OpenRouterError>
Expand description
Deletes an API key. Requires a Provisioning API key.
§Arguments
hash
- The hash of the API key to delete.
§Returns
Result<bool, OpenRouterError>
- A boolean indicating whether the deletion was successful.
§Example
let success = delete_api_key("api_key_hash").await?;
println!("Deletion successful: {}", success);