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

# Review saved responses into an improvement report

> Scores saved responses rows and drafts rules, examples and regression cases. Nothing is applied automatically.

Scores saved `responses` rows and drafts rules, examples and regression cases. Nothing is applied automatically.

### Query parameters

**orgId** `string`

Org id

**agentId** `string`

Agent id

**limit** `integer`

Rows to review (default 100)

**includeRecords** `boolean`

Include per-response scores

### Response

`ReviewResponse`

**ok** `boolean`

**generatedAt** `string (date-time)`

**orgId** `string`

**agentId** `string`

**limit** `number`

**analysis** `object`

The endpoint does not change rules or examples; promote approved drafts yourself.

**analysis**

**summary** `object`

**summary**

**total** `number`

**working** `number`

**watch** `number`

**needsImprovement** `number`

**averageScore** `number`

**intents** `object[]`

**intents**

**intent** `string`

**total** `number`

**averageScore** `number`

**suggestions** `object[]`

**suggestions**

**intent** `string`

**issue** `string`

**recommendation** `string`

**ruleDraft** `object`

**exampleDrafts** `object[]`

**workingExamples** `object[]`

**workingExamples**

**customerMessage** `string`

**agentResponse** `string`

**regressionCases** `object[]`

**regressionCases**

**message** `string`

**expectedBehavior** `string`

### Status codes

| Code | Meaning |
| - | - |
| `200` | OK |
| `400` | Error |
| `401` | Error |

```bash cURL theme={null}
curl --request GET \
  --url 'https://api.example.com/api/response/review' \
  --header 'x-widget-token: YOUR_API_KEY'
```

```json 200 theme={null}
{
  "ok": true,
  "generatedAt": "2026-08-31T14:22:05Z",
  "orgId": "string",
  "agentId": "string",
  "limit": 20,
  "analysis": {
    "summary": {
      "total": 102.12,
      "working": 1.5,
      "watch": 1.5,
      "needsImprovement": 1.5,
      "averageScore": 7.5
    },
    "intents": [
      {
        "intent": null,
        "total": null,
        "averageScore": null
      }
    ],
    "suggestions": [
      {
        "intent": null,
        "issue": null,
        "recommendation": null,
        "ruleDraft": null,
        "exampleDrafts": null
      }
    ],
    "workingExamples": [
      {
        "customerMessage": null,
        "agentResponse": null
      }
    ],
    "regressionCases": [
      {
        "message": null,
        "expectedBehavior": null
      }
    ]
  }
}
```


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