Skip to main content

admin_verify_api_key

Function admin_verify_api_key 

Source
pub async fn admin_verify_api_key(
    configuration: &Configuration,
    verify_api_key_request: VerifyApiKeyRequest,
    cache_control: Option<&str>,
    pragma: Option<&str>,
) -> Result<VerifyApiKeyResponse, Error<AdminVerifyApiKeyError>>
Expand description

Verifies a single API key or derived token. Validates the credential’s signature, expiration, and revocation status. Works with any credential type (issued keys, imported keys, JWT, macaroon). The verification result includes decoded claims and metadata — admin access only. Cache Control (HTTP Headers): - Cache-Control: no-cache - Bypasses cache read, forces fresh DB lookup - Cache-Control: no-store - Bypasses cache read AND write (never cached) - Pragma: no-cache - Same as Cache-Control: no-cache (HTTP/1.0) http POST /v2alpha1/admin/apiKeys:verify { \"credential\": \"sk_live_abc123...\" }