index/interfaces/ApiKeyData.md
API key data returned in responses. Note: The raw key is NOT included - it's only returned on creation.
Extended by
create api key response
Properties
| Property | Type | Description |
|---|---|---|
createdAt | string | Creation timestamp (ISO 8601) |
delegateAllTokens | boolean | Whether key has access to all owner's tokens |
description | string | null | User's description/label |
expiresAt | string | null | Expiration timestamp (ISO 8601) or null if never expires |
id | number | Unique identifier |
keyPrefix | string | First 8 characters for identification (e.g., "glp_abc1") |
lastUsedAt | string | null | Last time key was used (ISO 8601) or null if never used |
role | ApiKeyRole | Role determining permissions |
sourceType | ApiKeySource | Indicates whether the key holder owns tokens (OWNER) or only has moderator access (MODERATOR). Since 9.1.0 |
tokenNames | string[] | null | List of specifically delegated token names (null if delegateAllTokens is true) |
tokenPermissions? | Record<string, Permission[]> | null | Per-token permission overrides (null if no overrides set). Maps tokenName to Permission[]. Since 5.8.0 |
updatedAt | string | Last update timestamp (ISO 8601) |
created at delegate all tokens expires key prefix last used api role source type token names permissions updated