This error occurs when you’ve provided a properly formatted API key in your request to the Unkey API, but the key doesn’t exist in Unkey’s system. The key might have been deleted, revoked, or you might be using an incorrect key.Common causes include:
Using an API key that has been deleted
Using an API key from a different workspace or environment
Typographical errors when entering the key
Using a test key in production or vice versa
Here’s an example of a request with a non-existent API key:
Copy
Ask AI
# Request to Unkey API with a non-existent keycurl -X POST https://api.unkey.com/v1/keys.listKeys \ -H "Content-Type: application/json" \ -H "Authorization: Bearer unkey_NONEXISTENT_KEY"