Data
err:unkey:data:identity_not_found
The requested identity was not found
Example
What Happened?
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:
How To Fix
Verify that you’re using the correct identity ID or external ID and that the identity still exists in your workspace:
- Check the identity ID in your request for typos or formatting errors
- List all identities in your workspace to find the correct ID
- If the identity has been deleted, you may need to recreate it
Here’s how to list identities in your workspace:
If you need to create a new identity, use the identities.createIdentity
endpoint:
Common Mistakes
- Incorrect identifiers: Using wrong identity IDs or external IDs
- Deleted identities: Attempting to reference identities that have been removed
- Case sensitivity: External IDs might be case-sensitive
- Workspace boundaries: Trying to access identities from another workspace
Related Errors
- err:unkey:data:identity_already_exists - When trying to create an identity that already exists
- err:unkey:data:key_not_found - When the requested key doesn’t exist
- err:unkey:authorization:insufficient_permissions - When you don’t have permission to perform operations on identities