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

# Provision machine handler

> **Required scope:** models:manage

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

### Request body

`ProvisionRequest`

<ParamField body="seed_from_gss" type="boolean">
  Whether to seed with the org's GSS rules from the seed file (default: true).
</ParamField>

<ParamField body="training_examples" type="ProvisionTrainingExample[]">
  Optional custom training examples to include during provisioning.
</ParamField>

### Response

`ProvisionResponse`

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

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

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

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

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

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

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

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `201` | Machine provisioned successfully                   |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |
| `500` | Failed to provision machine                        |

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

<ResponseExample>
  ```json 201 theme={null}
  {
    "org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "programs_learned": 1,
    "status": "pending",
    "successful_abductions": 1,
    "total_examples": 1,
    "training_examples_used": 1,
    "vocabulary_size": 1
  }
  ```
</ResponseExample>
