> ## Documentation Index
> Fetch the complete documentation index at: https://www.agent37.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# REST API reference

> Find endpoints, request examples, response fields, and authentication details.

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](https://www.agent37.com/docs/agents-api/instances/create.md) for a request you can copy, or follow the [Quickstart](https://www.agent37.com/docs/quickstart.md) 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.

| Resource | Reference |
| - | - |
| Instances | [Create, list, inspect, and delete](https://www.agent37.com/docs/agents-api/instances.md), [instance object](https://www.agent37.com/docs/agents-api/instances/object.md) |
| Lifecycle | [Stop](https://www.agent37.com/docs/agents-api/instances/stop.md), [start](https://www.agent37.com/docs/agents-api/instances/start.md), [restart](https://www.agent37.com/docs/agents-api/instances/restart.md), [update](https://www.agent37.com/docs/agents-api/instances/update.md), [resize](https://www.agent37.com/docs/agents-api/instances/resize.md), [fork](https://www.agent37.com/docs/agents-api/instances/fork.md) |
| Backups | [List](https://www.agent37.com/docs/agents-api/instances/list-backups.md), [create](https://www.agent37.com/docs/agents-api/instances/create-backup.md), [restore](https://www.agent37.com/docs/agents-api/instances/restore.md) |
| Templates | [System catalog and your own images](https://www.agent37.com/docs/agents-api/templates.md) |
| Networking | [Instance and preview URLs](https://www.agent37.com/docs/agents-api/urls.md), [public ports](https://www.agent37.com/docs/agents-api/public-ports.md), [custom domains](https://www.agent37.com/docs/agents-api/domains.md) |
| Execution | [Run commands](https://www.agent37.com/docs/agents-api/exec.md), [scheduled runs](https://www.agent37.com/docs/agents-api/crons.md), [SSH](https://www.agent37.com/docs/agents-api/ssh.md) |
| Operations | [Logs](https://www.agent37.com/docs/agents-api/logs.md), [metrics](https://www.agent37.com/docs/agents-api/metrics.md), [webhooks](https://www.agent37.com/docs/agents-api/webhooks.md), [budgets](https://www.agent37.com/docs/agents-api/budgets.md), [integrations](https://www.agent37.com/docs/agents-api/integrations.md) |
| Account | [Sign up](https://www.agent37.com/docs/agents-api/signup.md), [wallet and top-ups](https://www.agent37.com/docs/agents-api/billing.md#wallet-endpoints), [members](https://www.agent37.com/docs/agents-api/members.md), [feedback](https://www.agent37.com/docs/agents-api/feedback.md) |

## 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.

| Resource | Reference |
| - | - |
| Conversations | [Send a message](https://www.agent37.com/docs/agents-api/chat.md), [streaming](https://www.agent37.com/docs/agents-api/streaming.md), [sessions](https://www.agent37.com/docs/agents-api/sessions.md) |
| Agent environment | [Models](https://www.agent37.com/docs/agents-api/models.md), [files](https://www.agent37.com/docs/agents-api/files.md), [health and version](https://www.agent37.com/docs/agents-api/health.md) |
| Browser and desktop | [Hermes desktop protocol](https://www.agent37.com/docs/agents-api/hermes-desktop.md) |

## Authentication and shared reference

See [Core concepts](https://www.agent37.com/docs/agents-api/concepts.md#two-planes-one-key) for the base URLs and authentication headers for each API. For costs and failures, use [Billing](https://www.agent37.com/docs/agents-api/billing.md) and [Errors](https://www.agent37.com/docs/agents-api/errors.md). No key yet? [`POST /v1/signup`](https://www.agent37.com/docs/agents-api/signup) creates a workspace and a key in one unauthenticated call.

Building with a coding agent? [Give it the documentation](https://www.agent37.com/docs/for-agents.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.