Delete a sandbox
DELETE
Deletes the sandbox and everything in it. This cannot be undone.
apiKeyheader
AuthorizationBearer <hmk_…>An API key from the dashboard or homemade api-key create.
sandboxId*stringDeleted.
application/json- response
ok*booleanstate*stringValue in
"queued""placing""booting""injecting""running""asleep""deep_sleeping""deep_asleep""stopped""failed"curl -X DELETE 'https://api.homemade.dev/api/sandboxes/string'Example Response
{ "ok": true, "state": "queued"}Create a sandbox POST
Creates a sandbox: a throwaway VM with no project, on the plain base image or on one of your projects' images. It answers at once while the sandbox starts; a command sent to it waits until it is up. It never sleeps and is deleted when `ttlMinutes` runs out (default 60, at most 1440).
Run a command in a sandbox POST
Runs one command in the sandbox with `/bin/sh -lc` and answers its exit code and output. A sandbox that is still starting is waited for (up to a minute). The sandbox's own `env` is set, under the command's. Use `?stream=1` for commands that run longer than about 90 seconds.