pub async fn get_api_key(hash: &str) -> Result<ApiKey, OpenRouterError>
Expand description
Returns details about a specific API key. Requires a Provisioning API key.
§Arguments
hash
- The hash of the API key to retrieve.
§Returns
Result<api_keys::ApiKey, OpenRouterError>
- The details of the specified API key.
§Example
let api_key = get_api_key("api_key_hash").await?;
println!("{:?}", api_key);