# Save a sandbox as a new template version `POST /v1/templates` **In this build:** Works on the simulator or a real VM. **Scope:** `snapshot.write` **CLI:** `harebox template save` Send an `Idempotency-Key` header. A retry with the same key never repeats the action. ## Request: `CreateTemplateRequest` | Field | Type | Notes | |---|---|---| | `name` (required) | `string` | | | `sandbox` (required) | `string` | | | `include_memory` | `boolean` | | | `strip_owner_secrets` | `boolean` | | ## Response: 202 `Template` | Field | Type | Notes | |---|---|---| | `name` (required) | `string` | | | `latest_version` (required) | `integer` | | | `versions` | `array` | | | `owner_secrets_removed` | `boolean` | | Errors follow [one format](../errors.html).