The API Keys object
An API key bound to an organisation with scoped permissions.
Attributes
id stringInteger identifier for the key record.
keyPreview stringMasked key showing prefix and last 4 characters: sk_live_...Ab3x.
name stringOptional human-readable label for the key.
environment stringEither live or test. Determines the key prefix.
scopes stringArray of permission scopes granted to this key.
scopesSummary stringHuman-readable description of the effective permissions.
createdAt stringISO 8601 timestamp of key creation.
lastUsedAt stringISO 8601 timestamp of the most recent authenticated request, or null.
revokedAt stringISO 8601 timestamp of revocation, or null if active.
graceExpiresAt stringISO 8601 timestamp when the rotation grace period ends, or null.
replacedBy stringID of the replacement key if this key was rotated, or null.
isActive stringTrue if the key can authenticate requests (not revoked, grace not expired).
isRotating stringTrue if the key is in a rotation grace period.