Skip to main content
POST https://xquik.com/api/v1/api-keys/bulk-revoke Clean up old or leaked keys in 1 request. Xquik revokes each listed key that belongs to your account. It answers with the IDs it revoked. It skips IDs of unknown keys and of other accounts’ keys. So a retry is safe.
Free. This endpoint does not consume credits.

Headers

Body

Response

200 OK

400 Invalid input

{ "error": "invalid_input", "message": "Send ids as a list of 1 to 10000 API key IDs." } ids was missing, empty, or longer than 100. Or it held a value that is not a numeric ID. Xquik revokes nothing.

401 Unauthenticated

Missing, expired, or invalid dashboard session cookie.

429 Rate limited

Too many requests. Wait for the Retry-After header before retrying.
Revocation is immediate and permanent. Every request with a revoked key returns 401 Unauthenticated. Create a new key if you need one. To stop keys for a while, pause them on the API keys page instead.
API key revocation requires a same-origin dashboard session. API keys and OAuth bearer tokens cannot revoke account keys.Related. Revoke API Key · List API Keys · Create API Key

Response examples

  • 400 { "error": "invalid_input", "message": "Invalid input. Check the request body." }
  • 401 { "error": "unauthenticated", "message": "Authentication required. Provide a valid API key or bearer token." }
  • 403 { "error": "session_required", "message": "API keys & OAuth tokens cannot use this route. Sign in at dashboard.xquik.com/account instead." }
  • 429 { "error": "rate_limit_exceeded", "message": "Too many requests. Try again later.", "retryAfter": 60 }