type
APIKey
A newly minted API key including its one-time bearer secret.
Properties
| Property | Type | Description |
|---|---|---|
ID | string | The ID value. |
Name | string | The Name value. |
Key | string | The Key value. |
CreatedAt | string | The CreatedAt value. |
ExpiresAt | string | The 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"`
}