---
title: "Refresh sandbox"
method: POST
path: "/sandboxes/{sandboxID}/refreshes"
tags: ["sandboxes"]
---

# Refresh sandbox

`POST /sandboxes/{sandboxID}/refreshes`

Refresh the sandbox extending its time to live

## Path parameters

- `sandboxID` string, required

## Request body

- SandboxRefreshRequest
  - `duration` integer — Duration for which the sandbox should be kept alive in seconds

## Response `204`

Successfully refreshed the sandbox

## Other responses

- `401` — Authentication error
- `404` — Not found

---

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