Use this file to discover all available pages before exploring further.
Identities let you enforce a single rate limit across all of a user’s API keys. Without this, a user with 5 keys at 100 req/s each could make 500 req/s total, probably not what you want.
Create an identity for the user, attach a rate limit to it, then link all their keys to that identity:
Identity: user_123 └── Rate limit: 100 req/s (shared pool) ├── Key A (production) ├── Key B (staging) └── Key C (mobile app)→ User can only make 100 req/s total across ALL keys
When you verify any key linked to the identity, the shared rate limit is enforced:
const { data } = await unkey.keys.verifyKey({ key: "sk_prod_..." });// If the identity is rate limited, data.valid will be falseif (!data.valid && data.code === "RATE_LIMITED") { // User exceeded 100 req/s across ALL their keys}