How Quernbox sandboxes work, how to call the API and how billing is measured.
Documentation
Quernbox has one API, served over HTTPS from the agents. subdomain of this site. Every request is JSON, and every request except listing templates needs an API key in the Authorization header.
Start here
- Quickstart: start a sandbox, run a command and stop it, with curl.
- Sandboxes: sizes, templates, lifecycle and time limits.
- API reference: every endpoint, its fields and its responses.
- Machine-readable spec: OpenAPI 3.1, generated from the same definitions.
Keys
Keys start with qbx_live_ for production and qbx_test_ for test accounts. Send them as a bearer token:
Authorization: Bearer qbx_test_...
A key belongs to one workspace. Anyone holding it can start sandboxes that are billed to you, so keep it in a secret store and never commit it.
Errors
Errors are JSON with an error field and an HTTP status that means what it says: 400 for a missing or invalid field, 401 for a missing or unknown key, 404 for an unknown sandbox, 429 when you are over your plan's concurrency limit or sending requests too fast.