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

# Export model

> **Required scope:** models:manage Model export is not implemented yet: every call returns 501 Not Implemented with the standard NSR error envelope (code,…

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

Model export is not implemented yet: every call returns `501 Not Implemented` with the standard NSR error envelope (`code`, `message`, `request_id`, `details`), and there is no response body for a successful export because no success path exists. Use `POST /api/v1/model/checkpoints` to persist model state today.

### Request body

`ExportModelRequest`

<ParamField body="checkpoint_id" type="string">
  Checkpoint ID (optional, uses current if not specified)
</ParamField>

<ParamField body="format" type="ExportFormat" required />

<ParamField body="include_kb" type="boolean">
  Include knowledge base
</ParamField>

### Status codes

| Code  | Meaning                                                                                            |
| ----- | -------------------------------------------------------------------------------------------------- |
| `401` | Unauthorized — missing or invalid credentials                                                      |
| `403` | Forbidden — the key/token lacks the required scope                                                 |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset                                                 |
| `501` | Always returned — model export is not yet implemented; the body is the standard NSR error envelope |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.nsr.stateset.com/api/v1/model/export' \
    --header "X-API-Key: $STATESET_NSR_API_KEY" \
    --header 'Content-Type: application/json' \
    --data '{
    "checkpoint_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "format": "safe_tensors",
    "include_kb": true
  }'
  ```
</RequestExample>
