get_session_environment
const url = 'https://app.everruns.com/api/v1/sessions/example/environment';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.everruns.com/api/v1/sessions/example/environmentGet the environment a session runs in: target, containment, and what it can actually do.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Session ID
Responses
Section titled “Responses”Resolved session environment
The environment a session is running in.
object
What the environment can actually do.
Read this before assuming a shell behaves like Linux. Bashkit reports
native_processes: false, which is why a build fails there; the answer is
available before the first turn rather than after a confusing tool error.
object
What commands may touch, and who enforces it.
object
none, native, or isolated.
Outbound network policy: deny, allowlist, or allow.
checkpointed, provider_snapshot, or none. Declared per target, so a
session on somebody else’s machine is never reported as recoverable.
How this view was produced. capabilities means it was derived from the
session’s effective capability set rather than read from a stored
environment profile.
Capability that supplied the compute, for operators tracing a surprise.
Target, absent when the session has no compute at all and only reads and writes files. That is a real configuration, not a misconfiguration.
object
Shape of the target: host, machine, vfs, container, managed.
Concrete provider, when the kind has one (bashkit, daytona, …).
Example
{ "capabilities": { "native_processes": false, "network_enforced": true, "packages": false, "portable_checkpoint": true, "ports": false, "pty": false }, "containment": { "level": "isolated", "network": "deny" }, "durability": "checkpointed", "resolved_from": "capabilities", "source_capability": "bashkit_shell", "target": { "kind": "vfs", "provider": "bashkit" }}Session not found