GET /compat/e2b/envd/health
envd's `GET /health`, which the SDKs call after a failed envd request. `204` while the sandbox runs and the token is valid, `409` while it is paused (envd never resumes a sandbox), and the envd `401` otherwise.

Header Parameters

X-Access-Token string required header
The sandbox's envd access token (`b3os_et_…`), from the create or connect answer.
E2b-Sandbox-Id string required header
The sandbox the call is for (`sandboxID` of the create answer). The token must be this sandbox's.

Responses

204 Running.

No response body

401 The envd call is refused (`envd_token_invalid`), the same answer on every envd path whatever the reason, in E2B's error shape (Connect clients read the 401 as `unauthenticated`).
409 The sandbox is already paused (`sandbox_not_running`), or an `Idempotency-Key` was used for another body (`idempotency_key_conflict`).
curl -X GET 'https://beta-api.b3os.org/compat/e2b/envd/health' \  -H 'Authorization: Bearer YOUR_API_TOKEN' \  -H 'X-Access-Token: string' \  -H 'E2b-Sandbox-Id: string'
const response = await fetch('https://beta-api.b3os.org/compat/e2b/envd/health', {  method: 'GET',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN",      "X-Access-Token": "string",      "E2b-Sandbox-Id": "string"  }});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN',    'X-Access-Token': 'string',    'E2b-Sandbox-Id': 'string'}response = requests.get('https://beta-api.b3os.org/compat/e2b/envd/health', headers=headers)print(response.json())
401 Response
{  "code": 401,  "message": "envd_token_invalid: the envd access token is missing, expired or not for this sandbox"}
Ask a question... ⌘I