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

# Machine status handler

> **Required scope:** read

**Required scope:** `read`

### Response

`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 />

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Machine status for the org                         |
| `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 GET \
    --url 'https://api.nsr.stateset.com/api/v1/machines/status' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

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