sandboxes

Refresh the sandbox extending its time to live

post/sandboxes/{sandboxID}/refreshes

Request

  • Base URL
    https://api.e2b.app
  • URL
    https://api.e2b.app/sandboxes/{sandboxID}/refreshes
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer and API key in header X-Team-ID
    • or API key in header X-Admin-Token and API key in header X-Team-ID
    • or HTTP bearer and API key in header X-Team-ID

Path parameters

sandboxIDstring required

Request body

durationinteger

Duration for which the sandbox should be kept alive in seconds

Response

Successfully refreshed the sandbox

Changes