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

# Evaluate machine handler

> **Required scope:** models:manage

**Required scope:** `models:manage`

### Request body

`EvaluateRequest`

<ParamField body="examples" type="ProvisionTrainingExample[]" required>
  Test examples to evaluate the machine on.
</ParamField>

### Response

`EvaluateResponse`

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

<ResponseField name="correct" type="integer" required />

<ResponseField name="org_id" type="string" required />

<ResponseField name="total" type="integer" required />

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Evaluation results                                 |
| `400` | No test examples provided                          |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | Machine not provisioned                            |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.nsr.stateset.com/api/v1/machines/evaluate' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "examples": [
      {
        "expected_category": "string",
        "input": "string"
      }
    ]
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "accuracy": 1.5,
    "correct": 1,
    "org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "total": 102
  }
  ```
</ResponseExample>
