type

APIKey

A newly minted API key including its one-time bearer secret.

Properties

PropertyTypeDescription
IDstringThe ID value.
NamestringThe Name value.
KeystringThe Key value.
CreatedAtstringThe CreatedAt value.
ExpiresAtstringThe ExpiresAt value.

How it works

Key is returned only at creation. Later lists use APIKeyInfo and never recover the secret.

Full signature

type APIKey struct { ID string `json:"id"` Name string `json:"name"` Key string `json:"key"` CreatedAt string `json:"createdAt"` ExpiresAt string `json:"expiresAt,omitempty"` }

Source protocol/envelope.go:526