APIKey
The Backend APIKey object holds information about an API key.
claims
null | Record<string, any>
Custom claims associated with the API key.
createdAt
number
The Unix timestamp (in milliseconds) when the API key was created.
createdBy
null | string
The user ID for the user creating the API key.
description
A description for the API key.
expiration
null | number
The Unix timestamp (in milliseconds) when the API key expires. null if the API key never expires.
null
expired
boolean
Whether the API key has expired.
id
string
The unique identifier for the API key.
lastUsedAt
The Unix timestamp (in milliseconds) when the API key was last used to authenticate a request.
name
The API key's name.
revocationReason
The reason for revoking the API key, if it has been revoked.
revoked
Whether the API key has been revoked.
scopes
string[]
An array of scopes that define what the API key can access.
secret?
The API key secret.
subject
The user or organization ID that the API key is associated with.
type
The type of the API key. Currently always 'api_key'.
'api_key'
updatedAt
The Unix timestamp (in milliseconds) when the API key was last updated.
Last updated on Jul 14, 2026