Skip to main content

API Reference

Use this page when you are integrating from a language without a first-party SDK. The generated endpoint reference is built from openapi.yaml, which is a symlink to the repository’s canonical specs/openapi.yaml contract.
For JavaScript or TypeScript, prefer the first-party TypeScript SDK (@nullspace/sdk). The fetch examples below are for languages without a first-party SDK, or when you want to call the raw HTTP contract directly.

Setup

The API expects a bearer token on customer-facing routes:

Create A Machine

Execute A Command

Expose A Port

Start a background process, then request signed preview URL metadata for the port:

Destroy The Machine

Response And Error Shape

Successful responses are JSON unless the endpoint explicitly documents a download stream or WebSocket upgrade. Errors use the standard error envelope documented in Error codes. Use API Reference Scope before building against account, Auth, admin, or operator-only routes. Use the API Reference section in the sidebar for endpoint schemas, generated examples, status codes, and field constraints.