The API Keys object
An API key bound to an organisation with scoped permissions.
Attributes
idstringInteger identifier for the key record.
keyPreviewstringMasked key showing prefix and last 4 characters: sk_live_...Ab3x.
namestringOptional human-readable label for the key.
environmentstringEither live or test. Determines the key prefix.
scopesstringArray of permission scopes granted to this key.
scopesSummarystringHuman-readable description of the effective permissions.
createdAtstringISO 8601 timestamp of key creation.
lastUsedAtstringISO 8601 timestamp of the most recent authenticated request, or null.
revokedAtstringISO 8601 timestamp of revocation, or null if active.
graceExpiresAtstringISO 8601 timestamp when the rotation grace period ends, or null.
replacedBystringID of the replacement key if this key was rotated, or null.
isActivestringTrue if the key can authenticate requests (not revoked, grace not expired).
isRotatingstringTrue if the key is in a rotation grace period.