> ## 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.

# Get full session history

> Fetch session reasoning history. **Required scope:** read

Fetch session reasoning history.

**Required scope:** `read`

### Path parameters

<ParamField path="session_id" type="string" required>
  Session ID
</ParamField>

### Response

`SessionHistoryResponse`

<ResponseField name="context" type="object" required>
  Current context variables
</ResponseField>

<ResponseField name="created_at" type="string" required>
  Session creation time
</ResponseField>

<ResponseField name="exchange_count" type="integer" required>
  Total number of exchanges
</ResponseField>

<ResponseField name="history" type="SessionHistoryEntry[]" required>
  Full conversation history

  <Expandable title="SessionHistoryEntry">
    <ResponseField name="answer" type="string">
      The answer provided (if any)
    </ResponseField>

    <ResponseField name="confidence" type="number (float)" required>
      Confidence score
    </ResponseField>

    <ResponseField name="query" type="string" required>
      The query that was asked
    </ResponseField>

    <ResponseField name="strategy" type="string" required>
      Strategy or mode used to answer the query
    </ResponseField>

    <ResponseField name="timestamp" type="string" required>
      Timestamp of the exchange
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="last_activity" type="string" required>
  Last activity time
</ResponseField>

<ResponseField name="session_id" type="string" required>
  Session ID
</ResponseField>

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Session history                                    |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | Session not found                                  |
| `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/sessions/{session_id}/history' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "context": {},
    "created_at": "2026-08-31T14:22:05Z",
    "exchange_count": 1,
    "history": [
      {
        "answer": "string",
        "confidence": 7.5,
        "query": "string",
        "strategy": "string",
        "timestamp": "2026-08-31T14:22:05Z"
      }
    ],
    "last_activity": "string",
    "session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  }
  ```
</ResponseExample>
