id | string | Primary | The unique API key record identifier. |
configId | string | Index | The API key configuration identifier. Defaults to default. |
name | string or null | - | A user-friendly name for the key. |
start | string or null | - | The visible starting characters used to identify the key. |
prefix | string or null | - | The prefix added to generated API keys. |
key | string | Unique | The unique stored API key value. |
referenceId | string | Foreign, index | The user that owns the API key. |
refillInterval | integer or null | - | The interval used to replenish the key’s request allowance. |
refillAmount | integer or null | - | The number of requests restored during each refill. |
lastRefillAt | date or null | - | The date and time when the allowance was last refilled. |
enabled | boolean or null | - | Indicates whether the API key is enabled. |
rateLimitEnabled | boolean or null | - | Indicates whether rate limiting is enabled for the key. |
rateLimitTimeWindow | integer or null | - | The rate-limit time window. |
rateLimitMax | integer or null | - | The maximum number of requests allowed in the time window. |
requestCount | integer or null | - | The number of requests made in the current time window. |
remaining | integer or null | - | The number of requests remaining in the current time window. |
lastRequest | date or null | - | The date and time when the key was last used. |
expiresAt | date or null | - | The date and time when the key expires. |
createdAt | date | - | The date and time when the key was created. |
updatedAt | date | - | The date and time when the key was last updated. |
permissions | string or null | - | The key permissions serialized as a string. |
metadata | string or null | - | Additional API key metadata serialized as a string. |