listKeys endpoint instead.
Required permissions:
api.*.read_api(to read any API)api.<api_id>.read_api(to read a specific API)
See the API reference for the full HTTP endpoint documentation.
Usage
Flags
Specifies which API to retrieve by its unique identifier. Must be a valid API ID that begins with
api_ and exists within your workspace.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 |
Examples
Output
Default output shows the request ID with latency, followed by the API information:--output=json, the full response envelope is returned:

