curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/reason' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
{
"answer": "string",
"confidence": 7.5,
"evidence": [],
"explanation": null,
"metadata": {
"facts_used": 1,
"query_time_ms": 250,
"rules_fired": 1
},
"reasoning_type": "string",
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Reason at time handler
Required scope: read
GET
/
api
/
v1
/
reason
curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/reason' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
{
"answer": "string",
"confidence": 7.5,
"evidence": [],
"explanation": null,
"metadata": {
"facts_used": 1,
"query_time_ms": 250,
"rules_fired": 1
},
"reasoning_type": "string",
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Required scope:
read
Query parameters
string
required
Query string to evaluate
string
required
RFC3339 timestamp for historical snapshot
string
Optional strategy override
string
Optional session ID
integer
Optional max depth override
number (float)
Optional confidence threshold override
boolean
Whether to include explanation in response
number (float)
Neural weight for hybrid reasoning
boolean
Whether to include evidence in response
Response
ReasonResponse
string
The answer to the query
number (float)
required
Confidence score (0.0 to 1.0)
any[]
Optional evidence/citation objects supporting the answer
object
Detailed explanation of reasoning steps
ResponseMetadata
required
string
required
Type of reasoning used (symbolic, neural, hybrid)
string
Session ID for follow-up queries
Status codes
| Code | Meaning |
|---|---|
200 | Reasoning completed successfully |
400 | Invalid query parameters |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
404 | Session not found |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
500 | Reasoning engine failure |
curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/reason' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
{
"answer": "string",
"confidence": 7.5,
"evidence": [],
"explanation": null,
"metadata": {
"facts_used": 1,
"query_time_ms": 250,
"rules_fired": 1
},
"reasoning_type": "string",
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Last modified on August 31, 2026