curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/got/branch' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"children": [
{
"content": "Apply rule: walk -> WALK",
"score": 0.9
},
{
"content": "Apply rule: twice -> repeat 2x",
"score": 0.8
},
{
"content": "Apply composition operator",
"score": 0.7
}
],
"parent_id": 0
}'
[
{
"content": "Two-person tent, green — replacement for damaged pole set.",
"id": 1001,
"score": 7.5
}
]
Branch from a parent thought to multiple children
Required scope: write
POST
/
api
/
v1
/
nsr
/
got
/
branch
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/got/branch' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"children": [
{
"content": "Apply rule: walk -> WALK",
"score": 0.9
},
{
"content": "Apply rule: twice -> repeat 2x",
"score": 0.8
},
{
"content": "Apply composition operator",
"score": 0.7
}
],
"parent_id": 0
}'
[
{
"content": "Two-person tent, green — replacement for damaged pole set.",
"id": 1001,
"score": 7.5
}
]
Required scope:
write
Request body
BranchThoughtsRequest
ThoughtChild[]
required
Children (content, score) pairs
integer
required
Parent thought ID
Response
ThoughtResponse[] — each element:
string
required
Content
integer
required
Thought ID
number (float)
required
Score
Status codes
| Code | Meaning |
|---|---|
200 | Branched successfully |
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 |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/got/branch' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"children": [
{
"content": "Apply rule: walk -> WALK",
"score": 0.9
},
{
"content": "Apply rule: twice -> repeat 2x",
"score": 0.8
},
{
"content": "Apply composition operator",
"score": 0.7
}
],
"parent_id": 0
}'
[
{
"content": "Two-person tent, green — replacement for damaged pole set.",
"id": 1001,
"score": 7.5
}
]
Last modified on August 31, 2026