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

# List Deployments

> List the deployments created from sessions

Lists deployments, newest first. These are the deployments `session deploy run` produces; each carries its live URL, state, and version chain.

**Required scope:** `deployments:read` (API key auth)

## Query Parameters

**state** `string`

Filter by state: `queued`, `building`, `deploying`, `ready`, `failed`, `destroyed`.

**limit** `integer` (default: 50)

Results per page (1 to 100).

**offset** `integer` (default: 0)

Pagination offset.

## Response

**deployments** `array`

Deployment objects: `{deployment_id, name, state, url, error_message, version, is_latest, previous_deployment_id, app_name, template, runtime, src_hash, created_at, updated_at, ready_at, discovery}`.

**total** `integer`

Total matches before paging.

```bash cURL theme={null}
curl "https://app.runtm.com/api/cloud/v0/deployments?state=ready" \
  -H "Authorization: Bearer runtm_xxx"
```

```bash CLI theme={null}
runtm-api deployments list --state ready
```

```json 200 theme={null}
{
  "deployments": [
    {
      "deployment_id": "dep_3f2a",
      "name": "landing-page",
      "state": "ready",
      "url": "https://landing-page.runtm.app",
      "error_message": null,
      "version": 3,
      "is_latest": true,
      "previous_deployment_id": "dep_1c9b",
      "app_name": "landing-page",
      "template": "static-site",
      "runtime": "static",
      "src_hash": "5d41402a",
      "created_at": "2026-07-27T20:00:00Z",
      "updated_at": "2026-07-27T20:03:00Z",
      "ready_at": "2026-07-27T20:03:00Z",
      "discovery": null
    }
  ],
  "total": 1
}
```


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