curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/explain' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"query": "string",
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"style": "string"
}'
{
"components": {
"decision_points": [
"string"
],
"perception": "string",
"semantics": "string",
"syntax": "49.00"
},
"enabled": true,
"explanation": "string"
}
Generate an explanation for a query
Generate a post-hoc explanation for a query. Required scope: write
POST
/
api
/
v1
/
explain
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/explain' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"query": "string",
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"style": "string"
}'
{
"components": {
"decision_points": [
"string"
],
"perception": "string",
"semantics": "string",
"syntax": "49.00"
},
"enabled": true,
"explanation": "string"
}
Generate a post-hoc explanation for a query.
Required scope:
write
Request body
ExplainRequest
string
required
The query to explain
string
Session ID for context
string
Explanation style: ‘symbolic’, ‘neural’, ‘contrastive’
Response
ExplainResponse
object
boolean
required
Whether explainability is enabled
string
Human-readable explanation
Status codes
| Code | Meaning |
|---|---|
200 | Explanation generated |
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 |
500 | Failed to generate explanation |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/explain' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"query": "string",
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"style": "string"
}'
{
"components": {
"decision_points": [
"string"
],
"perception": "string",
"semantics": "string",
"syntax": "49.00"
},
"enabled": true,
"explanation": "string"
}
Last modified on August 31, 2026