GET /v1/deployments
Retrieves all deployments under the current account with cursor pagination. Results are sorted by creation time in descending order (newest first). Archived deployments are excluded by default.
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, max 1000. |
after_id | string | No | Cursor pagination: return records after this ID |
before_id | string | No | Cursor pagination: return records before this ID |
status | string | No | Filter by status: active, paused |
include_archived | boolean | No | Include archived deployments. Default false. |
agent_id | string | No | Filter by Agent ID |
Example request
Example response
HTTP 200 OKResponse fields
| Field | Type | Description |
|---|---|---|
data | array | List of Deployment 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 (same as last_id when has_more is true, null otherwise) |
last_id as the after_id parameter on the next request to page forward.
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 401 | authentication_error | PAT invalid or expired |
Related
Create a deployment
Create a new cron-scheduled or manually-triggered deployment.
Get a deployment
Retrieve details for a single deployment.
List all runs
Query run history across all deployments.
Errors reference
All API error codes and the error envelope convention.