## Node enrollment tokens (`node-enroll-tokens`)

Generates a one-time enrollment token and a one-line node install command; the token is returned only once, when generated.

Authentication: Admin only · Docs: https://www-demo.kuxitong.com/en/docs/api/node-enroll-tokens

### POST `/api/v2/node-enroll-tokens`

Create node enrollment token · Authentication: Admin only

```sh
curl -X POST "https://panel.example.com/api/v2/node-enroll-tokens" \
  -H "X-API-Key: $GOCDN_API_KEY"
```

Node enrollment tokens object:

| Field | Type | Required | Description |
|---|---|---|---|
| `command` | string |  | One-line node install command (includes the asset site URL, the control plane URL, the token and the trust root); a short notice if no asset site is configured or the control plane key is not initialized. |
| `expires_at` | string |  | Expires at |
| `token` | string |  | Plain text of the one-time enrollment token; shown only in this response. |
