Skip to main content
Use the Sandbox API to create and manage persistent sandboxes for code, services, and agents. The Agent API is an optional capability provided by agent templates for conversations and tools inside an instance. Start with Create an instance for a request you can copy, or follow the Quickstart to create a sandbox, run a command, and reach a service. Request examples include required and optional fields in curl, Python, and Node. Replace the example values with yours and omit optional fields you do not need; the field reference describes defaults, accepted values, and alternative forms.

Sandbox API

Manage instances, choose templates, run commands, and route services through HTTPS.

Agent API

These endpoints are provided by the gateway in agent templates. A custom image or web app does not need to provide a chat API.

Authentication and shared reference

See Core concepts for the base URLs and authentication headers for each API. For costs and failures, use Billing and Errors. No key yet? POST /v1/signup creates a workspace and a key in one unauthenticated call. Building with a coding agent? Give it the documentation.