Skip to main content
DELETE
Revoke API key
Revoke an API key by ID. A revoked key stops working immediately.

Authorizations

Authorization
string
header
required

Accepts one of three credential types (detected by format):

  • Session token (sess_...) — O(1) Redis lookup, 24h TTL. Preferred.
  • Google ID Token (JWT — three .-separated base64 segments) — calls Google tokeninfo API per request.
  • Service API Key (sk_live_...) — HMAC-SHA256 constant-time validation, never expires unless revoked.

Note: The web UI authenticates via a session httpOnly cookie (set during login). The cookie is checked first; the Authorization header is the fallback for programmatic clients.

Path Parameters

key_id
string<uuid>
required

ID of the API key to revoke. Must belong to the authenticated user.

Response

Key revoked successfully.