Get a paginated list of all identities in your workspace. Returns metadata and rate limit configurations.
Perfect for building management dashboards, auditing configurations, or browsing your identities.
Required permissions:
identity.*.read_identity(to list identities in your workspace)
See the API reference for the full HTTP endpoint documentation.
Usage#
Flags#
The maximum number of identities to return in a single request. Use this to control response size and loading performance. Must be between 1 and 100. Defaults to 100.
Pagination cursor from a previous response. Use this to fetch subsequent pages of results when the response contains a cursor value.
Free-form text to filter identities. Returns identities whose ID or external ID contains the search string. Matching is case-insensitive.
Global Flags#
| Flag | Type | Description |
|---|---|---|
--root-key | string | Override root key ($UNKEY_ROOT_KEY) |
--api-url | string | Override API base URL (default: https://api.unkey.com) |
--config | string | Path to config file (default: ~/.unkey/config.toml) |
--output | string | Output format. Use json for raw JSON |
--body | string | Send this JSON string as the request body. You cannot combine it with request-building flags. |
Examples#
Output#
Default output shows the request ID, followed by the list of identities:
With --output=json, the full response envelope is returned: