{ "meta": { "requestId": "req_2c9a0jf23l4k567" }, "error": { "detail": "The API key used for authentication has been disabled", "status": 403, "title": "Forbidden", "type": "https://unkey.com/docs/api-reference/errors-v2/unkey/authorization/key_disabled" }}
This error occurs when you try to use a disabled Unkey API key (one that starts with unkey_) to authenticate with the Unkey API. The key exists in the system but has been disabled and can no longer be used for authentication.Here’s an example of a request that would trigger this error:
Copy
Ask AI
# Request to Unkey API with a disabled keycurl -X POST https://api.unkey.com/v1/keys.listKeys \ -H "Content-Type: application/json" \ -H "Authorization: Bearer unkey_DISABLED_KEY"
API keys can be disabled for various reasons:
Administrative action to revoke access
Security concerns or suspected compromise
Temporary deactivation during maintenance or investigation