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

# Connect two thoughts in the graph

> **Required scope:** write

**Required scope:** `write`

### Request body

`ConnectThoughtsRequest`

<ParamField body="from_id" type="integer" required>
  Source thought ID
</ParamField>

<ParamField body="to_id" type="integer" required>
  Target thought ID
</ParamField>

### Response

No response body. Thoughts connected.

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Thoughts connected                                 |
| `400` | Invalid connection                                 |
| `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/connect' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "from_id": 1001,
    "to_id": 1001
  }'
  ```
</RequestExample>
