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

# Get NSR Machine statistics

> Returns comprehensive statistics about the NSR Machine, including training metrics, vocabulary size, enabled features, and configuration summary…

Returns comprehensive statistics about the NSR Machine, including training
metrics, vocabulary size, enabled features, and configuration summary.
**Example**

```bash theme={null}
curl -X GET 'https://api.nsr.stateset.com/api/v1/nsr/stats' \
-H 'X-API-Key: your-api-key'
```

**Required scope:** `read`

### Response

`NSRStatsResponse`

<ResponseField name="config" type="NSRConfigSummary" required>
  <Expandable title="NSRConfigSummary">
    <ResponseField name="embedding_dim" type="integer" required>
      Embedding dimension
    </ResponseField>

    <ResponseField name="hidden_size" type="integer" required>
      Hidden size
    </ResponseField>

    <ResponseField name="max_program_depth" type="integer" required>
      Max program depth
    </ResponseField>

    <ResponseField name="max_seq_len" type="integer" required>
      Max sequence length
    </ResponseField>

    <ResponseField name="synthesis_enabled" type="boolean" required>
      Program synthesis enabled
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="enabled_features" type="string[]" required>
  Enabled features
</ResponseField>

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

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

<ResponseField name="training_examples" type="integer" required>
  Training examples processed
</ResponseField>

<ResponseField name="vocabulary_size" type="integer" required>
  Vocabulary size
</ResponseField>

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | NSR Machine statistics                             |
| `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/nsr/stats' \
    --header 'X-API-Key: YOUR_API_KEY'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "config": {
      "embedding_dim": 1,
      "hidden_size": 1,
      "max_program_depth": 1,
      "max_seq_len": 1,
      "synthesis_enabled": true
    },
    "enabled_features": [
      "string"
    ],
    "programs_learned": 1,
    "successful_inferences": 1,
    "training_examples": 1,
    "vocabulary_size": 1
  }
  ```
</ResponseExample>
