---
title: "Recover box from error state"
method: POST
path: "/boxes/{boxId}/recover"
tags: ["box"]
---

# Recover box from error state

`POST /boxes/{boxId}/recover`

Recover box from error state using specified recovery type

## Path parameters

- `boxId` string, required

## Request body

- RecoverBoxDTO
  - `cpuQuota` integer
  - `env` object
  - `errorReason` string, required
  - `fromVolumeId` string
  - `gpuQuota` integer
  - `memoryQuota` integer
  - `networkAllowList` string
  - `networkBlockAll` boolean
  - `osUser` string, required
  - `secrets` DtoSecretDTO[]
    - `hosts` string[]
    - `name` string, required
    - `placeholder` string
    - `value` string, required
  - `storageQuota` integer
  - `volumes` DtoVolumeDTO[]
    - `mountPath` string
    - `subpath` string
    - `volumeId` string

## Response `200`

Box recovered

- string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

## Changes

- **2026-06-09** `6c7a14acacbf` — 1 info
  - endpoint added
- **2026-05-02** `6565d7237d5f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/boxlite-ai/apis/boxlite-runner-api/changes/boxes/:boxId/recover/post.md)

---

[API](https://skmtc.dev/boxlite-ai/apis/boxlite-runner-api.md) · [All operations](https://skmtc.dev/boxlite-ai/apis/boxlite-runner-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/boxlite-ai/boxlite-runner-api/revisions/ddf7875fb7ed/schema)
