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

**session\_id** `string` *required*

Session ID

### Response

`SessionHistoryResponse`

**context** `object` *required*

Current context variables

**created\_at** `string` *required*

Session creation time

**exchange\_count** `integer` *required*

Total number of exchanges

**history** `SessionHistoryEntry[]` *required*

Full conversation history

**SessionHistoryEntry**

**answer** `string`

The answer provided (if any)

**confidence** `number (float)` *required*

Confidence score

**query** `string` *required*

The query that was asked

**strategy** `string` *required*

Strategy or mode used to answer the query

**timestamp** `string` *required*

Timestamp of the exchange

**last\_activity** `string` *required*

Last activity time

**session\_id** `string` *required*

Session ID

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

```bash cURL theme={null}
curl --request GET \
  --url 'https://api.nsr.stateset.com/api/v1/sessions/{session_id}/history' \
  --header "X-API-Key: $STATESET_NSR_API_KEY"
```

```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"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.