Reference
The control plane API
Billing and machine state, over HTTP. Every example below is a response the built server returned.
Status codes
- 200
- Done. The body carries
ok: true and data. - 400
- The body was refused before any rule ran: not JSON, a negative amount, a missing idempotency key.
- 401
- No session, or one that does not verify: bad signature, expired, or signed with another secret.
- 402
- Resume refused because the balance is zero. The machine stays paused and its files stay.
- 404
- No such machine, or it belongs to another account. The two are indistinguishable on purpose.
- 409
- The machine is in a state that cannot make that transition, pausing a paused machine, resuming a deleted one.
- 413
- The body is larger than 64 KB.
What is not built yet
Stated plainly, because an API reference that implies more than exists is the most expensive kind of wrong. This list is short, and it is the whole of it.
- API tokens. Every endpoint here authenticates with a session cookie, which is what a browser sends. There is no personal access token, so nothing can call this API from a script or a CI job without replaying a cookie.
- Custom machine images. A machine boots one image, chosen by the operator. You cannot bring your own.
- Billing in currencies other than US dollars. Prices, balances and receipts are USD, and the card is charged in USD.
What is built, so this list is not read as a description of the product: sign-in by email link works, a top-up takes a card through a payment provider and credits only what the provider confirms, and a machine is created on real hardware through a provider.