# ApiKey

The ApiKey object of the Kaabist API.

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | pattern `^key_[0-9a-hjkmnp-tv-z]{26}$` |
| `object` | `"api_key"` | yes |  |
| `name` | string | yes |  |
| `prefix` | string | yes |  |
| `scopes` | `"run"`, `"read"`, `"admin"`[] | yes | min items 1 |
| `mode` | `"live"`, `"test"` | yes |  |
| `last_used_at` | string or null (date-time) | yes |  |
| `expires_at` | string or null (date-time) | yes |  |
| `created_at` | string (date-time) | yes |  |

## Example

```json
{
  "id": "key_01j9zqk3q7m4n5p6r7s8t9v0wx",
  "object": "api_key",
  "name": "ci",
  "prefix": "sk_live_ab12",
  "scopes": [
    "run"
  ],
  "mode": "live",
  "last_used_at": "2026-09-18T10:00:00Z",
  "expires_at": null,
  "created_at": "2026-09-18T10:00:00Z"
}
```
