# POST /sandboxes/{}/connect is deprecated

E2B API deprecated POST /sandboxes/{id}/connect without giving a shutdown date yet.

E2B API deprecated the POST /sandboxes/{id}/connect endpoint without a shutdown date. Calls made to this route are slated for removal and will eventually fail. The operation resumes paused sandboxes and extends TTL while returning sandbox details.

## What to use instead

Connect with POST /v2/sandboxes/{sandboxID}/connect instead.

- API: E2B API (api.e2b.app)
- Kind: Endpoint removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /sandboxes/{id}/connect`
- Source: [Announcement](https://docs.e2b.dev/api-reference/sandboxes/connect-to-sandbox.md)
- Verified: November 6, 2026, against E2B API's own pages
- Page: https://www.okapi.bot/providers/e2b-api/breaking-changes/post-sandboxes-connect-is-deprecated/

## E2B API's words

> Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use POST /v2/sandboxes/{sandboxID}/connect instead.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
