diff --git a/internal/api/types.go b/internal/api/types.go index 6e4ba7b..a00da91 100644 --- a/internal/api/types.go +++ b/internal/api/types.go @@ -281,6 +281,10 @@ type APIKey struct { Key string `json:"key,omitempty"` // only present in create response CreatedAt time.Time `json:"created_at"` LastUsedAt *time.Time `json:"last_used_at"` + // ExpiresAt is nil for a key that never expires, including on a server + // old enough to not send the field at all — same decoded result either + // way. Not yet surfaced anywhere in the TUI. + ExpiresAt *time.Time `json:"expires_at,omitempty"` } // SimilarIncident is an earlier, resolved incident with the same signature