Paginated list of Deployments. Supports filtering by Agent, status, and keyword.
Prerequisites
Endpoint and authentication configured. For details, see API overview and authentication.
Endpoint
GET /deployments
Query parametersagent_idstring (可选)Filter by Agent IDkeyword string (可选)Fuzzy search by ID or namestatus string (可选)Filter by status: active or pausedinclude_archived boolean (可选)Whether to include archived Deployments; default falselimit integer (可选)Number of items per page; max 100; default 20page string (可选)Pagination cursorcreated_at[gte] string (可选)Created-at lower bound, RFC 3339created_at[lte] string (可选)Created-at upper bound, RFC 3339 | Request example |
Response fieldsdataarray<object>Array of Deployment objectsdata[].id stringDeployment IDdata[].type stringAlways deploymentdata[].name stringDeployment namedata[].description stringDeployment purpose descriptiondata[].agent objectSnapshot of the associated Agent at the locked versiondata[].environment_id stringAssociated Environment IDdata[].schedule objectSchedule trigger configurationdata[].initial_events array<object>Initial events sent to the Agent on triggerdata[].resources array<object>Mounted file resourcesdata[].vault_ids array<string>Associated Vault ID listdata[].metadata objectCustom business key-value pairsdata[].status stringDeployment status: active or pauseddata[].paused_reason object | nullPause reason; returned only when the status is pauseddata[].archived_at string | nullArchive timestamp; null if not archiveddata[].created_at stringCreation time, ISO 8601data[].updated_at stringLast update time, ISO 8601data[].request_id stringUnique request identifiernext_page string | nullNext page cursor; null when there is no more data | ResponseThe response containsdata (an array of Deployment objects) and next_page (the next-page cursor; null when there is no more data). |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API key provided. |