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

# The instance object

> Fields returned by create, get, list, edit, and fork operations.

Create, get, edit, and fork return an instance object. List wraps these objects in `{ "data": [...] }`. Sandbox API timestamps are epoch seconds.

```json Example wrap theme={null}
{
  "id": "ab12cd34ef",
  "status": "running",
  "status_reason": null,
  "template": "agent37-hermes",
  "template_revision": null,
  "image_ref": "ghcr.io/agent37-platform/hermes:2026.10.05a",
  "image_digest": "sha256:d3f6f28fae8128274b15256a3f17ecf6b2cc5e209db886def17f0595900a1045",
  "type": "default",
  "region": "us",
  "mount_path": "/home/node",
  "resources": { "cpu": 2, "memory": 4, "disk": 4 },
  "url": "https://ab12cd34ef.agent37.app",
  "domain_urls": [],
  "public_ports": [
    { "port": 8443, "url": "https://3f9a1c0b7d2e4f6a8b1c.agent37.app", "domain_urls": [], "prefix": null, "label": "telegram", "created": 1781222400 }
  ],
  "name": null,
  "metadata": null,
  "auto_sleep": false,
  "idle_timeout_seconds": 900,
  "network": "allow-all",
  "past_due": false,
  "created": 1781222400
}
```

## Fields

**id** `string`

A bare 10-character lowercase alphanumeric id, no prefix. It doubles as the DNS label in the instance's URL.

**status** `string`

The lifecycle state. `running` means the instance's computer is up; poll `GET /v1/health` before the first message. Around a wake or a start the field can trail reality by a few seconds: the response to your own request, or the instance's [health endpoint](https://www.agent37.com/docs/agents-api/health.md), is the authority. See the [statuses table](https://www.agent37.com/docs/agents-api/instances/object.md#statuses) below.

**status\_reason** `object | null`

Why the most recent lifecycle operation failed, as `{ code, message, detail?, operation, at }`, or `null` when there is no failure reason. `detail`, when present, carries the raw failure output, including the tail of your container's console log when the container exited or never opened its port; use it to see your own application's startup error. The failing request's own `502` already carries the same `message` and `detail` (see [errors](https://www.agent37.com/docs/agents-api/errors.md)), so this field is for reading the reason later, not for discovering it. `at` is an epoch-second timestamp. It also reads `instance_limit_reached` on a sleeping instance that a request woke past your [memory limit](https://www.agent37.com/docs/agents-api/billing.md#memory-limit), which went back to sleep. On a sleeping instance whose memory a [sleep](https://www.agent37.com/docs/agents-api/instances/sleep.md) could not save, it reads `memory_not_saved` until the instance wakes.

**template** `string`

The template the instance was built from, including its [version pin](https://www.agent37.com/docs/agents-api/templates.md#pin-a-template-version) when it has one (`agent37-hermes@<tag>`, `my-agent@2`).

**template\_revision** `integer | null`

The workspace template revision this instance has installed. Compare it with the template's current `revision` to detect an available update. It changes only when the instance is created or [updated](https://www.agent37.com/docs/agents-api/instances/update.md), and is `null` for system templates and for instances created before revisions existed (an update stamps it).

**image\_ref** `string | null`

The public source reference for a system template or registry-born workspace template. `null` for an image published by a [cloud build](https://www.agent37.com/docs/agents-api/templates.md#build-an-image-in-the-cloud). This never exposes Agent37's internal private-mirror path.

**image\_digest** `string | null`

The immutable `sha256:...` digest of the image the instance runs. Use this, not a mutable `image_ref` tag, as the exact image identity. `null` only on older instances that predate digest pinning.

**type** `string`

`default` or `performance`. See [Default and Performance instances](https://www.agent37.com/docs/agents-api/billing.md#default-and-performance-instances).

**region** `string`

Where the instance runs: `us`, `eu` (France or the UK), or `ap-south` (India, Mumbai). Set at create, fixed for the life of the instance. See [`region`](https://www.agent37.com/docs/agents-api/instances/create#request-body) on create.

**mount\_path** `string`

The folder the disk is mounted at: the one set by [`mount_path`](https://www.agent37.com/docs/agents-api/instances/create#request-body) on create, or else the image user's home folder.

**resources** `object`

The shape: `cpu` (vCPUs), `memory` and `disk` (GB).

**url** `string`

The bare instance URL, `https://{instanceId}.agent37.app`, where the agent's chat API lives (it routes to the template's `default_port`, `3737` unless declared otherwise). Every other port is reachable at `https://{instanceId}-{port}.agent37.app`, derivable with no declaration needed. Open any port in a browser with a [signed URL](https://www.agent37.com/docs/agents-api/urls.md#browser-access-with-signed-urls). See [Instance and preview URLs](https://www.agent37.com/docs/agents-api/urls.md).

**domain\_urls** `string[]`

The instance URL mirrored under each of your workspace's active [custom domains](https://www.agent37.com/docs/agents-api/domains.md); empty until a domain is active.

**public\_ports** `object[]`

The instance's [public ports](https://www.agent37.com/docs/agents-api/public-ports.md), each `{ port, url, domain_urls, prefix, label, created }`: permanent unauthenticated URLs. `agent37-hermes` and `agent37-openclaw` instances start with one on `8443`, labelled `telegram`, for [Telegram webhooks](https://www.agent37.com/docs/agents-api/public-ports.md); otherwise the list is empty unless you created some.

**name** `string | null`

Your label, echoed back.

**metadata** `object | null`

Your key/value pairs, echoed back.

**auto\_sleep** `boolean`

Whether the instance sleeps on idle. Set at create or by `PATCH`. See [Auto-sleep](https://www.agent37.com/docs/agents-api/instance-auto-sleep.md).

**idle\_timeout\_seconds** `integer`

How long the instance must be idle before it sleeps, in seconds. Defaults to `900`.

**network** `string | object`

Where the instance can connect: `"allow-all"`, `"deny-all"`, or `{ "allow": [...] }` with the stored domains and IPv4 networks. See [Network access](https://www.agent37.com/docs/agents-api/instance-network.md).

**slept\_at** `integer | null`

Present only while `status` is `sleeping` or `waking`: when the instance fell asleep, in epoch seconds. It does not signal that the checkpoint has finished: `status` flips to `sleeping` before the checkpoint is written, and during the write this field can be `null` or still carry an earlier timestamp. Instances moved to cold storage are rebuilt on wake (see [Auto-sleep](https://www.agent37.com/docs/agents-api/instance-auto-sleep.md)).

**past\_due** `boolean`

`true` when the workspace balance went negative and the instance was suspended. Top up to clear it; the next request to the instance's URL wakes it. See [Billing](https://www.agent37.com/docs/agents-api/billing.md#past-due-and-suspension).

**created** `integer`

Creation time in epoch seconds.

## Statuses

| Status | Meaning |
| - | - |
| `provisioning` | Being created. You only observe this if a create is in flight. |
| `running` | Up. Poll `GET /v1/health` before the first message. |
| `stopping` | A stop is in progress. |
| `stopped` | Halted until an explicit `start`. Only an explicit `stop` produces this state; the platform never stops an instance on its own. Data intact, disk reserved, compute released. Bills disk only. |
| `starting` | A start is in progress. |
| `restarting` | A restart is in progress. |
| `updating` | An update, resize, or [restore](https://www.agent37.com/docs/agents-api/instances/restore.md) is in progress. |
| `sleeping` | Checkpointed on idle ([auto-sleep](https://www.agent37.com/docs/agents-api/instance-auto-sleep.md)), or force-slept for non-payment (with `past_due: true`). Any request to its URLs, an explicit `start`, an `exec`, or an `update` wakes it; while the checkpoint is still being written, `stop`, `start`, `exec`, and `update` return `409 try_again`. A sleeper moved to cold storage can be woken or deleted but not stopped. Bills disk only. |
| `waking` | A wake is in progress. Every `start`, `exec`, or `update` wake shows it, as does a URL wake that has to move the instance to another host or pull it back from cold storage. The held request completes when it finishes. Bills disk only. |
| `failed` | A create or lifecycle action failed. |
| `deleting` | A delete is in progress. |
| `deleted` | Gone. The id reads as `404` from here on. |

To be told when an instance changes status instead of polling for it, register a [webhook](https://www.agent37.com/docs/agents-api/webhooks.md).

> [!NOTE]
>
> `past_due` is a flag, not a status: a suspended instance shows it alongside `sleeping` (or `stopped`, if it already was). Top up the wallet to clear it; see [Billing](https://www.agent37.com/docs/agents-api/billing.md#past-due-and-suspension).


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