pub async fn list_api_keys(
base_url: &str,
api_key: &str,
offset: Option<f64>,
include_disabled: Option<bool>,
) -> Result<Vec<ApiKey>, OpenRouterError>
Expand description
Returns a list of all API keys associated with the account. Requires a Provisioning API key.
§Arguments
base_url
- The base URL of the OpenRouter API.api_key
- The API key for authentication.offset
- Optional offset for the API keys.include_disabled
- Optional flag to include disabled API keys.
§Returns
Result<Vec<ApiKey>, OpenRouterError>
- A list of API keys.