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

# Create a new session

> Create a new reasoning session. **Required scope:** write

Create a new reasoning session.

**Required scope:** `write`

### Response

`SessionResponse`

**context** `object` *required*

Current context variables

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

Session creation time

**focus\_entities** `string[]` *required*

Current focus entities

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

Last activity time

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

Session ID

### Status codes

| Code | Meaning |
| - | - |
| `200` | New reasoning session |
| `401` | Unauthorized — missing or invalid credentials |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

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

```json 200 theme={null}
{
  "context": {},
  "created_at": "2026-08-31T14:22:05Z",
  "focus_entities": [
    "string"
  ],
  "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.