Every endpoint and form, with curl examples.

API reference

GET /v1/templates

List templates. Templates a sandbox can start from. No key needed.

curl "https://agents.gentlenickel.shop/v1/templates"
Authentication
No API key needed.

POST /v1/sandboxes

Create a sandbox. template (for example python-3.12) and size (small, medium or large) are required. Optional: timeout_seconds, network (default or none).

curl -X POST "https://agents.gentlenickel.shop/v1/sandboxes" \
  -H "Authorization: Bearer qbx_test_..." \
  -H "Content-Type: application/json" \
  -d '{"template":"example","size":"example"}'
Authentication
Needs an API key (Authorization: Bearer qbx_test_...).
Required
Required fields: template, size.

GET /v1/sandboxes/{sandbox_id}

Get a sandbox. Status, template, size and start time of one sandbox.

curl "https://agents.gentlenickel.shop/v1/sandboxes/example-sandbox-id" \
  -H "Authorization: Bearer qbx_test_..."
Authentication
Needs an API key (Authorization: Bearer qbx_test_...).

POST /v1/sandboxes/{sandbox_id}/exec

Run a command. command is run with /bin/sh -c in /workspace. Optional timeout_seconds, default 300. Returns exit_code, stdout and stderr.

curl -X POST "https://agents.gentlenickel.shop/v1/sandboxes/example-sandbox-id/exec" \
  -H "Authorization: Bearer qbx_test_..." \
  -H "Content-Type: application/json" \
  -d '{"command":"example"}'
Authentication
Needs an API key (Authorization: Bearer qbx_test_...).
Required
Required fields: command.

POST /v1/sandboxes/{sandbox_id}/stop

Stop a sandbox. Stops the sandbox and ends billing for it. Stopping twice is not an error.

curl -X POST "https://agents.gentlenickel.shop/v1/sandboxes/example-sandbox-id/stop" \
  -H "Authorization: Bearer qbx_test_..." \
  -H "Content-Type: application/json" \
  -d '{}'
Authentication
Needs an API key (Authorization: Bearer qbx_test_...).

POST /signup

Get an API key. Also available as a form.

curl -X POST "https://agents.gentlenickel.shop/signup" \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com","company":"example","use_case":"example"}'