> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Answer a queue of tickets in one call.

> **Required scope:** write

**Required scope:** `write`

### Request body

`BatchAnswerRequest`

**items** `AnswerRequest[]` *required*

### Response

`BatchAnswerResponse`

**answers** `AnswerResponse[]` *required*

**AnswerResponse**

**auto\_send** `boolean` *required*

True when this can ship untouched. False means read `requires_human`.

**decision** `object`

**decision**

**action** `object`

**confidence** `number (double)` *required*

**decision** `string` *required*

`approved` | `denied` | `refused`.

**decision\_id** `string` *required*

**dropped\_citations** `string[]`

Org rules the engine fired during hydration that were dropped from `proof.cited_rules` as unrelated to this decision. Persistently non-empty values mean a standing rule with permanently satisfied premises fires on every hydrated decision — scope or prune it.

**evaluated\_goal** `string`

Exact predicate evaluated as the permit target. Absent for legacy requests that relied on action/query inference.

**grounding** `DecisionGrounding` *required*

**gss\_machine** `GssMachineGroundingSnapshot` *required*

**plain\_explanation** `string` *required*

Deterministic, proof-derived, business-readable 'why' — distinct from `rationale` (engine narration): 'Approved to issue a refund for order 9412: the return for order 9412 was received and order 9412 passed inspection.' Always present.

**proof** `DecisionProof` *required*

**rationale** `string` *required*

**refusal** `object`

**trace** `RecursiveChatTraceStep[]`

Full proof trace, when `include_trace` was set.

**usage** `DecisionUsage` *required*

**verifiable\_bundle** `object`

A self-contained, INDEPENDENTLY-VERIFIABLE proof bundle for an approved decision: the exact facts and rules plus a `RuleEngine::backward_chain` derivation of the authorization goal, in the `knowledge::ProofBundle` wire format. POST it verbatim to `/v1/proofs/verify` (or check it offline with the dependency-light `proof_check`) to confirm the verdict without trusting this server. Present only when the caller declared an `authorization_goal` AND the rule engine reproduces the proof; absent otherwise (the verdict still stands on its own derivation).

**warnings** `string[]`

Non-fatal advisories about how the verdict was derived (e.g. the outcome rested on predicate-name inference rather than declared rule effects). Omitted when empty.

**x\_nsr** `object`

**evidence** `AnswerEvidence` *required*

**AnswerEvidence**

**because** `string` *required*

Human-readable statement of why, derived from the proof.

**cited\_rules** `string[]` *required*

**decision\_id** `string` *required*

**grounding** `string` *required*

**policy\_hash** `string`

sha256 over the exact policy this answer stands on.

**replayable** `boolean`

True when every cited rule re-fires from the evidence in this response.

**gaps** `AnswerGap[]`

What to go and find out. Each entry, if confirmed, may change the answer.

**AnswerGap**

**fact** `string` *required*

**needed\_by\_rule** `string`

**reply** `object`

**reply**

**auto\_send** `boolean` *required*

True only when the macro is approved, fully filled, its tool call fully bound, and the macro itself armed for auto-send. Anything less is a draft for a human.

**macro\_id** `string` *required*

**macro\_name** `string` *required*

**missing\_slots** `string[]` *required*

Merge fields with no value supplied. Non-empty blocks sending.

**rendered** `string` *required*

**rule\_name** `string` *required*

**requires\_human** `string[]`

Why a human is needed. Empty means none is.

**subject** `string` *required*

**tool\_call** `object`

Emitted, NOT executed — the engine never holds your credentials. Run it against your own systems.

**verdict** `string` *required*

`approved` | `denied` | `refused`.

**auto\_send\_count** `integer` *required*

**errors** `BatchAnswerError[]` *required*

Per-item failures by index. One bad ticket never sinks a queue.

**BatchAnswerError**

**error** `string` *required*

**index** `integer` *required*

**subject** `string` *required*

**human\_count** `integer` *required*

### Status codes

| Code | Meaning |
| - | - |
| `200` | One answer per ticket |
| `401` | Unauthorized — missing or invalid credentials |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

```bash cURL theme={null}
curl --request POST \
  --url 'https://api.nsr.stateset.com/api/v1/answer/batch' \
  --header "X-API-Key: $STATESET_NSR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "items": [
    {
      "context": {},
      "facts": {},
      "include_decision": true,
      "mode": "string",
      "question": "string",
      "rules": [],
      "subject": "Replacement tent pole set"
    }
  ]
}'
```

```json 200 theme={null}
{
  "answers": [
    {
      "auto_send": true,
      "decision": {
        "action": null,
        "confidence": null,
        "decision": null,
        "decision_id": null,
        "dropped_citations": null,
        "evaluated_goal": null,
        "grounding": null,
        "gss_machine": null,
        "plain_explanation": null,
        "proof": null,
        "rationale": null,
        "refusal": null,
        "trace": null,
        "usage": null,
        "verifiable_bundle": null,
        "warnings": null,
        "x_nsr": null
      },
      "evidence": {
        "because": null,
        "cited_rules": null,
        "decision_id": null,
        "grounding": null,
        "policy_hash": null,
        "replayable": null
      },
      "gaps": [],
      "reply": {
        "auto_send": null,
        "macro_id": null,
        "macro_name": null,
        "missing_slots": null,
        "rendered": null,
        "rule_name": null
      },
      "requires_human": [],
      "subject": "Replacement tent pole set",
      "tool_call": null,
      "verdict": "string"
    }
  ],
  "auto_send_count": 1,
  "errors": [
    {
      "error": "string",
      "index": 1,
      "subject": "Replacement tent pole set"
    }
  ],
  "human_count": 1
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.