> ## 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.

# The reliability curve: how well the engine's reported confidence predicts

> the real-world honored rate, bucketed by confidence, with an Expected Calibration Error…

the real-world honored rate, bucketed by confidence, with an Expected
Calibration Error. Requires recorded outcomes (see the outcome endpoint) —
this is what lets an operator set an auto-send threshold they can trust.

**Required scope:** `read`

### Response

`Calibration`

<ResponseField name="bins" type="CalibrationBin[]" required>
  Populated confidence buckets, ascending.

  <Expandable title="CalibrationBin">
    <ResponseField name="approvals" type="integer" required>
      Approved decisions in this bucket that have a recorded outcome.
    </ResponseField>

    <ResponseField name="confidence_high" type="number (double)" required />

    <ResponseField name="confidence_low" type="number (double)" required />

    <ResponseField name="honored" type="integer" required>
      How many of them were `honored`.
    </ResponseField>

    <ResponseField name="honored_rate" type="number (double)" required>
      `honored / approvals` — should track the bucket's confidence midpoint when the engine is well-calibrated.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="expected_calibration_error" type="number (double)" required>
  Expected Calibration Error in \[0, 1]; 0 = perfectly calibrated.
</ResponseField>

<ResponseField name="labeled_approvals" type="integer" required>
  Approved decisions in the window with a recorded outcome (the sample).
</ResponseField>

### Status codes

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

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.nsr.stateset.com/v1/decisions/calibration' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "bins": [
      {
        "approvals": 1,
        "confidence_high": 7.5,
        "confidence_low": 7.5,
        "honored": 1,
        "honored_rate": 7.5
      }
    ],
    "expected_calibration_error": 7.5,
    "labeled_approvals": 1
  }
  ```
</ResponseExample>
