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

# Add a thought to the reasoning graph

> **Required scope:** write

**Required scope:** `write`

### Request body

`AddThoughtRequest`

<ParamField body="content" type="string" required>
  Thought content
</ParamField>

<ParamField body="parent_id" type="integer">
  Optional parent thought ID to connect from
</ParamField>

<ParamField body="score" type="number (float)" required>
  Initial score
</ParamField>

### Response

`ThoughtResponse`

<ResponseField name="content" type="string" required>
  Content
</ResponseField>

<ResponseField name="id" type="integer" required>
  Thought ID
</ResponseField>

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

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Thought added                                      |
| `400` | Invalid request                                    |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |
| `503` | GoT not enabled                                    |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.nsr.stateset.com/api/v1/nsr/got/thoughts' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "content": "First, identify the action primitives in the input",
    "parent_id": null,
    "score": 0.85
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "content": "Two-person tent, green — replacement for damaged pole set.",
    "id": 1001,
    "score": 7.5
  }
  ```
</ResponseExample>
