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

# List machines handlers

> **Required scope:** read

**Required scope:** `read`

### Response

`MachinesListResponse`

<ResponseField name="machines" type="MachineInfo[]" required>
  <Expandable title="MachineInfo">
    <ResponseField name="has_snapshot" type="boolean" required />

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

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

    <ResponseField name="status" type="string" required>
      One of `'active'`, `'activating'`, `'activation_failed'`, `'compiled'`, `'training'`, or `'not_provisioned'`.
    </ResponseField>

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

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

    <ResponseField name="vocabulary_size" type="integer" required />
  </Expandable>
</ResponseField>

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

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | List of provisioned NSR machines                   |
| `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/api/v1/machines' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "machines": [
      {
        "has_snapshot": true,
        "org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "programs_learned": 1,
        "status": "pending",
        "successful_inferences": 1,
        "training_examples": 1,
        "vocabulary_size": 1
      }
    ],
    "total": 102
  }
  ```
</ResponseExample>
