identities
Create Identity
Changed onCreate an identity to group multiple API keys under a single entity. Identities enable shared rate limits and metadata across all associated keys.
Perfect for users with multiple devices, organizations with multiple API keys, or when you need unified rate limiting across different services.
Important Requires identity.*.create_identity permission
post/v2/identities.createIdentity
Request
- Base URLhttps://api.unkey.com
- URLhttps://api.unkey.com/v2/identities.createIdentity
- AuthHTTP bearer
Request body
Example request
{
"externalId": "user_123",
"ratelimits": [
{
"name": "api"
}
]
}Response
Identity created successfully.
Example response
{
"meta": {
"requestId": "req_123"
}
}Changes
- info
the endpoint scheme security
bearerwas added to the API - info
the endpoint scheme security
rootKeywas removed from the API
- info
- info
added the non-success response with the status
- info