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

# Set sandbox timeout

`POST /sandboxes/{sandboxID}/timeout`

Set the timeout for the sandbox. The sandbox will expire x seconds from the time of the request. Calling this method multiple times overwrites the TTL, each time using the current timestamp as the starting point to measure the timeout duration.

## Path parameters

- `sandboxID` string, required

## Request body

- SandboxTimeoutRequest
  - `timeout` integer, required — Timeout in seconds from the current time after which the sandbox should expire

## Response `204`

Successfully set the sandbox timeout

## Other responses

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

## Changes

> 53 revisions in range; 5 could not be searched.

- **2026-07-24** `93ed246a4c10` — 2 info
  - the endpoint scheme security `AdminApiKeyAuth AND AdminTeamAuth` was added to the API
  - the endpoint scheme security `Supabase1TokenAuth AND Supabase2TeamAuth` was removed from the API
- **2026-05-27** `e13ef89d456c` — 1 info
  - the endpoint scheme security `AuthProviderBearerAuth AND AuthProviderTeamAuth` was added to the API
- **2025-03-21** `ca973917d2e1` — 1 info
  - the endpoint scheme security `Supabase1TokenAuth AND Supabase2TeamAuth` was added to the API
- **2024-06-01** `459e267350a5` — 1 breaking, 1 warning
  - added the new required request property `timeout`
  - removed the request property `duration`
- **2024-05-31** `7ae937d719fd` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/e2b-dev/apis/e2b-api/changes/sandboxes/:sandboxID/timeout/post.md)

---

[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)
