This error occurs when you’re trying to perform an operation on a key authentication record that doesn’t exist in the Unkey system. Key authentication records contain information about how API keys are authenticated.Common scenarios that trigger this error:
Using an incorrect key authentication ID
Referencing a key authentication record that has been deleted
Attempting to update authentication settings for a non-existent record
Typos in identifiers
Here’s an example of a request that might trigger this error:
Copy
Ask AI
# Attempting to update a non-existent key authentication recordcurl -X POST https://api.unkey.com/v1/keys.updateKeyAuth \ -H "Content-Type: application/json" \ -H "Authorization: Bearer unkey_YOUR_API_KEY" \ -d '{ "keyAuthId": "kauth_nonexistent", "enabled": true }'