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

# List all deployment runs

> List deployment runs across all deployments.

`GET /api/v1/cloud/deployment_runs`

Retrieves deployment runs across all deployments for the current user. This top-level endpoint is useful for monitoring all execution activity without filtering by a specific deployment.

## Headers

| Header          | Required | Description         |
| --------------- | -------- | ------------------- |
| `Authorization` | Yes      | `Bearer $QODER_PAT` |

## Query parameters

| Parameter         | Type    | Required | Description                                                                                                        |
| ----------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `limit`           | integer | No       | Maximum number of records to return. Default 20, range 1-100. Values above 100 return `400 invalid_request_error`. |
| `page`            | string  | No       | Cursor value returned by `next_page`. Do not combine with `before_id` or `after_id`.                               |
| `after_id`        | string  | No       | Cursor pagination: return records after this ID                                                                    |
| `before_id`       | string  | No       | Cursor pagination: return records before this ID                                                                   |
| `deployment_id`   | string  | No       | Filter by Deployment ID                                                                                            |
| `trigger_type`    | string  | No       | Filter by trigger type: `manual`, `schedule`                                                                       |
| `has_error`       | boolean | No       | Filter runs with/without public `error` objects                                                                    |
| `created_at[gt]`  | string  | No       | Only return runs created after this timestamp (ISO 8601)                                                           |
| `created_at[gte]` | string  | No       | Only return runs created at or after this timestamp (ISO 8601)                                                     |
| `created_at[lt]`  | string  | No       | Only return runs created before this timestamp (ISO 8601)                                                          |
| `created_at[lte]` | string  | No       | Only return runs created at or before this timestamp (ISO 8601)                                                    |

## Example request

```bash theme={null}
curl -X GET "https://api.qoder.com/api/v1/cloud/deployment_runs?limit=2" \
  -H "Authorization: Bearer $QODER_PAT"
```

## Example response

**HTTP 200 OK**

```json theme={null}
{
  "data": [
    {
      "agent": {
        "id": "agent_019ebb21ef8e7df6a559052c94875160",
        "type": "agent",
        "version": 1
      },
      "created_at": "2026-06-14T08:58:17Z",
      "deployment_id": "dep_019ec55a2b687b3f94eee77dd77e4b2a",
      "error": null,
      "id": "drun_019ec55a68af73028afa5b87931cb2f3",
      "session_id": "sess_019ec55a68b37e1e8d660691af161ab4",
      "trigger_context": {
        "type": "manual"
      },
      "type": "deployment_run"
    },
    {
      "agent": {
        "id": "agent_019ebb21ef8e7df6a559052c94875160",
        "type": "agent",
        "version": 1
      },
      "created_at": "2026-06-14T08:58:04Z",
      "deployment_id": "dep_019ec53748f7784bac33f208c0f66982",
      "error": null,
      "id": "drun_019ec55a371470969dd48ce41fb2a7da",
      "session_id": "sess_019ec55a37157b049f3e7f3681b5ec15",
      "trigger_context": {
        "scheduled_at": "2026-06-14T08:58:04Z",
        "type": "schedule"
      },
      "type": "deployment_run"
    }
  ],
  "first_id": "drun_019ec55a68af73028afa5b87931cb2f3",
  "has_more": true,
  "last_id": "drun_019ec55a371470969dd48ce41fb2a7da",
  "next_page": "drun_019ec55a371470969dd48ce41fb2a7da"
}
```

## Response fields

| Field       | Type           | Description                                        |
| ----------- | -------------- | -------------------------------------------------- |
| `data`      | array          | List of Deployment Run objects                     |
| `first_id`  | string         | ID of the first record on the current page         |
| `last_id`   | string         | ID of the last record on the current page          |
| `has_more`  | boolean        | Whether more records are available                 |
| `next_page` | string or null | Cursor value for the next page (null when no more) |

Use `next_page` as the `page` parameter to retrieve the next page.

See [Run a deployment](/cloud-agents/api/deployments/run) for Deployment Run field descriptions.

## Errors

| HTTP | Type                   | Trigger                |
| ---- | ---------------------- | ---------------------- |
| 401  | `authentication_error` | PAT invalid or expired |

See [Errors](/cloud-agents/api/conventions/errors) for the full error envelope.

## Related

<CardGroup cols={2}>
  <Card title="Get a deployment run (global)" icon="code" href="/cloud-agents/api/deployments/get-run-global">
    Fetch run details directly by run ID.
  </Card>

  <Card title="List deployment runs" icon="clock" href="/cloud-agents/api/deployments/list-runs">
    Query run history scoped to a single deployment.
  </Card>

  <Card title="List deployments" icon="list" href="/cloud-agents/api/deployments/list">
    View all deployments under the account.
  </Card>

  <Card title="Manually trigger a deployment" icon="play" href="/cloud-agents/api/deployments/run">
    Kick off a deployment run immediately.
  </Card>
</CardGroup>
