Skip to main content

Synopsis

Get an API key’s metadata for a service account, or one of your own personal API keys. Only the metadata of the API key is returned; the key value itself is never returned (it is only shown once, at creation or rotation time).

Flags

Flags inherited from parent commands

JSON output

With --output json, this command prints the response of one of these API operations as the server returned it, depending on the flags and arguments given. The shape follows the server’s published API spec, not the CLI version.

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on November 25, 2026