> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Handler for GET /api/v1/kb/snapshot

> **Required scope:** read

**Required scope:** `read`

### Query parameters

<ParamField query="as_of" type="string" required>
  RFC3339 timestamp for snapshot reconstruction
</ParamField>

### Response

`SnapshotResponse`

<ResponseField name="snapshot" type="KBSnapshot" required>
  <Expandable title="KBSnapshot">
    <ResponseField name="as_of" type="string (date-time)" required />

    <ResponseField name="entity_count" type="integer" required />

    <ResponseField name="events_applied" type="integer" required />

    <ResponseField name="rule_count" type="integer" required />

    <ResponseField name="triple_count" type="integer" required />
  </Expandable>
</ResponseField>

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Point-in-time KB snapshot                          |
| `400` | Invalid timestamp                                  |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.nsr.stateset.com/api/v1/kb/snapshot' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "snapshot": {
      "as_of": "2026-08-31T14:22:05Z",
      "entity_count": 1,
      "events_applied": 1,
      "rule_count": 1,
      "triple_count": 1
    }
  }
  ```
</ResponseExample>
