curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/backward-chain' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"goal_args": [
"string"
],
"goal_predicate": "string",
"max_depth": 1,
"use_belief_guard": true
}'
{
"belief_actions": [
"string"
],
"proofs": [
{
"confidence": 7.5,
"steps": [],
"substitution": {}
}
],
"proved": true,
"total_proofs": 1
}
Perform backward chaining to prove a goal
Perform backward-chaining proof search. Required scope: write
POST
/
api
/
v1
/
backward-chain
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/backward-chain' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"goal_args": [
"string"
],
"goal_predicate": "string",
"max_depth": 1,
"use_belief_guard": true
}'
{
"belief_actions": [
"string"
],
"proofs": [
{
"confidence": 7.5,
"steps": [],
"substitution": {}
}
],
"proved": true,
"total_proofs": 1
}
Perform backward-chaining proof search.
Required scope:
write
Request body
BackwardChainRequest
string[]
required
Arguments for the goal
string
required
The goal to prove
integer
Maximum proof depth
boolean
Route the proof through the AGM belief guard: consult entrenchment before search, expand/revise the belief base with each proof.
Response
BackwardChainResponse
string[]
Audit log of AGM belief-base mutations (present iff
use_belief_guard).boolean
required
integer
required
Status codes
| Code | Meaning |
|---|---|
200 | Backward chaining completed |
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 | Backward chaining failed |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/backward-chain' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"goal_args": [
"string"
],
"goal_predicate": "string",
"max_depth": 1,
"use_belief_guard": true
}'
{
"belief_actions": [
"string"
],
"proofs": [
{
"confidence": 7.5,
"steps": [],
"substitution": {}
}
],
"proved": true,
"total_proofs": 1
}
Last modified on August 31, 2026