Hanzo
OpenapiAccount

Returns the caller's own API keys — every type they hold, read AUTHORITATIVELY…

Returns the caller's own API keys — every type they hold, read AUTHORITATIVELY from IAM rather than from the session claim, which lags a key minted…

GET /v1/account/keys

Addresshttps://api.hanzo.ai/v1/account/keys
MethodGET
Operationget_account_keys
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the caller's own API keys — every type they hold, read AUTHORITATIVELY from IAM rather than from the session claim, which lags a key minted moments ago. No secret material comes back: a secret key is represented by its prefix, and only a publishable key (public by construction) carries its full value.

A transient IAM read failure reports an empty set rather than a 5xx, so the page shows the honest empty state and never a fabricated key.

Request

GET /v1/account/keys takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200apiKeyListok

200 body — 6 fields.

FieldInTypeAlwaysDescription
keysbodyapiKey[]Keys is every key the caller holds, at most one per type.
keys[].createdAtbodystringCreatedAt is when the key last changed, as IAM records it.
keys[].keybodystringKey is the FULL value, and is present for a publishable key only: it is public by construction and useless to its holder if it cannot be read back.
keys[].limitbodystring[]Limit is what this key may reach, as kind:name entries — model:zen5, project:acme, product:commerce.
keys[].prefixbodystringPrefix is the recognizable, non-secret head of the key — enough to tell two keys apart, never enough to use one.
keys[].typebodystringType is the key class: secret (sk-) or publishable (pk-).

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Account API · All Hanzo APIs · Interactive reference

How is this guide?

On this page