ApiKeyResponse
keyId stringrequired
Unique identifier for the API key
apiKey string
The full API key - ONLY shown once at creation. Store this securely.
keyPrefix stringrequired
First 10 characters of the API key for identification
label stringrequired
Human-readable label for the API key
scope stringrequired
Possible values: [admin, manager, generator]
Permission scope of the API key
environment stringrequired
Possible values: [live, test]
Environment the key is valid for
credits numberrequired
Available credits for this API key
status stringrequired
Possible values: [active, revoked, expired]
Current status of the API key
usageCount numberrequired
Number of times the key has been used
lastUsedAt date-timenullablerequired
Last time the key was used (ISO 8601 format)
expiresAt date-timenullablerequired
Expiration date of the key (ISO 8601 format)
createdAt date-timerequired
Creation date of the key (ISO 8601 format)