This error occurs when you’re trying to perform an operation on an identity that doesn’t exist in the Unkey system. Identities in Unkey are used to represent users or entities that own or use API keys.Common scenarios that trigger this error:
Using an incorrect identity ID or external ID
Referencing an identity that has been deleted
Trying to update or get information about a non-existent identity
Typos in identity identifiers
Here’s an example of a request that would trigger this error:
Copy
Ask AI
# Attempting to get a non-existent identitycurl -X POST https://api.unkey.com/v1/identities.getIdentity \ -H "Content-Type: application/json" \ -H "Authorization: Bearer unkey_YOUR_API_KEY" \ -d '{ "identityId": "ident_nonexistent" }'