curl --request POST \
--url 'https://api.nsr.stateset.com/v1/messages' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "string",
"messages": [
{
"role": "string",
"content": "Two-person tent, green — replacement for damaged pole set."
}
],
"system": "string",
"max_tokens": 1,
"tools": [
{}
],
"tool_choice": {
"type": "standard",
"name": "Two-Person Tent"
},
"stop_sequences": [
"string"
],
"temperature": 1.5,
"top_p": 1.5,
"top_k": 1,
"stream": true,
"metadata": {},
"hydrate_org_context": true,
"kb_limits": {},
"facts": [
{}
],
"rules": [
{}
],
"max_depth": 1,
"max_iterations": 8,
"confidence_threshold": 7.5,
"include_nsr_metadata": true
}'
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "standard",
"role": "string",
"content": [
{
"type": "standard",
"text": "Two-person tent, green — replacement for damaged pole set.",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"input": {}
}
],
"model": "string",
"stop_reason": "string",
"stop_sequence": "string",
"usage": {
"input_tokens": 1,
"output_tokens": 1
},
"x_nsr": {}
}
Anthropic-compatible Messages endpoint backed by the recursive NSR solver.
Required scope: write
POST
/
v1
/
messages
curl --request POST \
--url 'https://api.nsr.stateset.com/v1/messages' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "string",
"messages": [
{
"role": "string",
"content": "Two-person tent, green — replacement for damaged pole set."
}
],
"system": "string",
"max_tokens": 1,
"tools": [
{}
],
"tool_choice": {
"type": "standard",
"name": "Two-Person Tent"
},
"stop_sequences": [
"string"
],
"temperature": 1.5,
"top_p": 1.5,
"top_k": 1,
"stream": true,
"metadata": {},
"hydrate_org_context": true,
"kb_limits": {},
"facts": [
{}
],
"rules": [
{}
],
"max_depth": 1,
"max_iterations": 8,
"confidence_threshold": 7.5,
"include_nsr_metadata": true
}'
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "standard",
"role": "string",
"content": [
{
"type": "standard",
"text": "Two-person tent, green — replacement for damaged pole set.",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"input": {}
}
],
"model": "string",
"stop_reason": "string",
"stop_sequence": "string",
"usage": {
"input_tokens": 1,
"output_tokens": 1
},
"x_nsr": {}
}
Required scope:
write
Request body
object
Model identifier (e.g.
claude-3-5-sonnet, or an nsr-v2-* alias). Used to select the NSR solver mode.Response
object
Status codes
| Code | Meaning |
|---|---|
200 | Anthropic-compatible message. With stream: true the body is an Anthropic SSE event stream instead. |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request POST \
--url 'https://api.nsr.stateset.com/v1/messages' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "string",
"messages": [
{
"role": "string",
"content": "Two-person tent, green — replacement for damaged pole set."
}
],
"system": "string",
"max_tokens": 1,
"tools": [
{}
],
"tool_choice": {
"type": "standard",
"name": "Two-Person Tent"
},
"stop_sequences": [
"string"
],
"temperature": 1.5,
"top_p": 1.5,
"top_k": 1,
"stream": true,
"metadata": {},
"hydrate_org_context": true,
"kb_limits": {},
"facts": [
{}
],
"rules": [
{}
],
"max_depth": 1,
"max_iterations": 8,
"confidence_threshold": 7.5,
"include_nsr_metadata": true
}'
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "standard",
"role": "string",
"content": [
{
"type": "standard",
"text": "Two-person tent, green — replacement for damaged pole set.",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "Two-Person Tent",
"input": {}
}
],
"model": "string",
"stop_reason": "string",
"stop_sequence": "string",
"usage": {
"input_tokens": 1,
"output_tokens": 1
},
"x_nsr": {}
}
Last modified on August 31, 2026