POST /v2/identities.getIdentity
Retrieve an identity by external ID. Returns metadata, rate limits, and other associated data. Use this to check if an identity exists, view configurations, or build management dashboards.Required Permissions
Requiresidentity.*.read_identity permission
Request
The ID of the identity to retrieve. This can be either the externalId (from your own system that was used during identity creation) or the identityId (the internal ID returned by the identity service).Example:
user_abc123Response
The unique internal identifier of this identity within Unkey’s system.Example:
id_1234567890abcdefThe external identifier you provided when creating this identity. Links to your system’s user or entity.Example:
user_123Custom metadata associated with this identity. Contains any JSON data you stored during creation or updates.Example:
Array of rate limit configurations for this identity. Each rate limit includes:
name- Named identifierlimit- Maximum operations allowedduration- Time window in milliseconds
Example
cURL
Response
Error Codes
400- Bad request (invalid parameters)401- Unauthorized (missing or invalid root key)403- Forbidden (insufficient permissions - requiresidentity.*.read_identity)404- Not found (identity with the specified externalId doesn’t exist)429- Too many requests (rate limit exceeded)500- Internal server error