Hanzo
OpenapiO11y

Lists a service account's API keys — metadata only, never the secrets.

Lists a service account's API keys — metadata only, never the secrets.

GET /v1/o11y/service_accounts/{id}/keys

Addresshttps://api.hanzo.ai/v1/o11y/service_accounts/{id}/keys
MethodGET
OperationListServiceAccountKeys
AuthAuthorization: Bearer $HANZO_API_KEY

Lists a service account's API keys — metadata only, never the secrets.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

StatusBodyMeaning
200o11y.O11yAPIKeysOutok

200 body — 9 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yAPIKey[]Data holds the keys.
data[].createdAtbodystring (date-time)CreatedAt is when the key was minted.
data[].expiresAtbodyintegerExpiresAt is when the key stops working, as a unix timestamp in seconds; zero means never.
data[].idbodystringID is the key id.
data[].lastObservedAtbodystring (date-time)LastObservedAt is when the key was last seen authenticating.
data[].namebodystringName is the key's name.
data[].serviceAccountIdbodystringServiceAccountID is the account the key belongs to.
data[].updatedAtbodystring (date-time)UpdatedAt is when it last changed.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y service_accounts keys list <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page