Skip to main content

list-identities

List all identities in your Unkey workspace using the CLI. Retrieve paginated results with metadata and linked key counts for each entity.
2 min read

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)
Note

See the API reference for the full HTTP endpoint documentation.

Usage#

Flags#

--limitinteger#

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.

--cursorstring#

Pagination cursor from a previous response. Use this to fetch subsequent pages of results when the response contains a cursor value.

Global Flags#

FlagTypeDescription
--root-keystringOverride root key ($UNKEY_ROOT_KEY)
--api-urlstringOverride API base URL (default: https://api.unkey.com)
--configstringPath to config file (default: ~/.unkey/config.toml)
--outputstringOutput format. Use json for raw JSON
--bodystringSend 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: