Boot ONE sandbox from an image (the expensive path; fork_sandbox is the loop) [rate class: sandbox_api_rps]
Boot ONE fresh sandbox from a curated image, run setup, and hand it over running. With NO setup this is cheap after the first call: the first one boots the image, and later calls for the same image and size fork the snapshot that first one left. Forking costs nothing extra. The response reports reused_snapshot: true when it uses a snapshot. With a setup every call pays a full boot plus the whole setup again, billed as sandbox time - fine for one interactive sandbox, wrong for anything repeated. Either way, if you want N sandboxes, this is still the wrong tool: create_sandbox_env once plus fork_sandbox(count: N) is ONE call for all N instead of N calls, and at any real width the round trips cost more than the sandboxes. Per-sample differences (a seed, an env var, an input file) do not need separate boots either: fork identical copies, then pass the difference as part of each fork's sandbox_exec command. The response includes the snapshot this sandbox came from so more copies are one fork_sandbox away, and if your workspace recently booted this same recipe the response carries a prefix_note naming the snapshot you could have forked instead. One exception: when the response says shared_base: true it came from a base Autoresearch keeps warm - forked from it, or, when pooled: true rides beside it, handed over already running (no boot, no fork, billed from the handover). That base is ours and carries no snapshot you can fork - another create_sandbox is just as fast, and N copies still want create_sandbox_env plus fork_sandbox.
Request
- Base URL: https://autoresearch.sfcompute.com
- URL: https://autoresearch.sfcompute.com/preview/sandboxes
- Auth: HTTP bearer
Query parameters
Act in this workspace (its slug). Omitted: the token's bound workspace, then the organization's default. Never ambient - there is no switch-workspace mutation on this door.
Request body
Response
The capability's JSON result.
Changes
No recorded changes to this operation across all 1 revision of this API.