List Deployments
Call Create agent first and replace the example agent ID with its returned ID.
/agent/v1/deployments● SupportedRequest parameters
agent_idstringoptionalquery: Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name.
created_at[gte]stringoptionalquery: Return deployments created at or after this time (inclusive).
created_at[lte]stringoptionalquery: Return deployments created at or before this time (inclusive).
include_archivedbooleanoptionalquery: When true, includes archived deployments. Default: false (exclude archived).
statusstringoptionalquery: Filter by status:
activeorpaused. Omit for both. To include archived deployments, useinclude_archivedinstead; the two cannot be combined.limitnumberoptionalquery: Number of items per page.
pagestringoptionalquery: Opaque pagination cursor: pass the next_page value of the previous response unchanged. Omit it for the first page. A cursor from a different query or a malformed one returns 400.
Returns
200
Deployment resources support creation, retrieval, filtering, updates, archival, pause and unpause. Versions are pinned; schedules return up to five future occurrences. Only user.message initial events and file resources are accepted; vault_ids is accepted up to 50 deduplicated ids, each owned by the organization and not archived, and a missing or archived vault returns 400 vault_ids[<index>] <id> was not found. Manual triggers and cron schedules create sessions that carry the deployment's vault_ids; creation failures record an error run and automatically pause the deployment, and a vault archived after the deployment was saved is recorded as vault_archived_error. Own extensions accept agent_with_overrides and target=computer for general agents only. Overrides support model, permission_mode and cwd; tools, mcp_servers, system and skills return 400.
Errors follow the Anthropic error format (type / message / request_id) — see error codes
Request
curl
# Call Create agent first and replace the example agent ID with its returned ID.
curl "https://api.deepraxis.com/agent/v1/deployments?agent_id=agent_123" \
-H "Authorization: Bearer $PRAXIS_API_KEY"Python
# Call Create agent first and replace the example agent ID with its returned ID.
import requests
opts = dict(
base_url="https://api.deepraxis.com/agent",
api_key="$PRAXIS_API_KEY",
)
# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.get(
f"{opts['base_url']}/v1/deployments?agent_id=agent_123",
headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())TypeScript
// Call Create agent first and replace the example agent ID with its returned ID.
const opts = {
baseURL: "https://api.deepraxis.com/agent",
apiKey: "$PRAXIS_API_KEY",
};
// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/deployments?agent_id=agent_123`, {
headers: { Authorization: `Bearer ${opts.apiKey}` },
});
console.log(resp.status, await resp.json());Response 200
{
"data": [
{
"id": "depl_96efb13ddbbc42faaf62f099c0ce2a15",
"type": "deployment",
"agent": {
"type": "agent",
"id": "agent_b1dfcbdc-5694-4c68-ac8d-6cc81867d6b6",
"version": 1
},
"target": {
"type": "environment"
},
"environment_id": "env_8d2160bca3bf46ca830b785ddcc3d835",
"name": "文档测试",
"description": null,
"initial_events": [
{
"type": "user.message",
"content": [
{
"type": "text",
"text": "Hi"
}
]
}
],
"resources": [],
"vault_ids": [],
"budget": null,
"schedule": null,
"metadata": {},
"status": "active",
"paused_reason": null,
"created_at": "2026-10-22T15:24:29.989Z",
"updated_at": "2026-10-22T15:24:29.989Z",
"archived_at": null
}
],
"next_page": null
}Response
HTTP 200
Successful response
application/json
| Name | Type | Description |
|---|---|---|
| data | array<object> | Items of this page, in the order requested by the call. |
| data[].id | string | Unique identifier for this deployment. |
| data[].agent | object | Agent reference. Naming a version pins the deployment to it; naming only an id (or a bare id string) makes it follow the agent's active version, so every run uses whichever version is in effect then and a later agent save carries through automatically. The response also carries pinned_version (null while following) and active_version (the agent's currently effective version). The own face also accepts model, permission_mode and cwd overrides for new sessions. |
| data[].archived_at | null | string | A timestamp in RFC 3339 format |
| data[].created_at | string | A timestamp in RFC 3339 format |
| data[].description | null | string | Description of what the deployment does. |
| data[].environment_id | string | null | Existing, unarchived environment id; environment_id and target are alternatives, so send at least one. target=environment requires it, target=computer (own face, general agents) may omit it; null is also accepted there. |
| data[].initial_events | array<object> | Events sent to each session immediately after creation. |
| data[].metadata | object | Arbitrary key-value metadata. Maximum 16 pairs. |
| data[].name | string | Human-readable name. |
| data[].paused_reason | null | object | Why a deployment is paused. Non-null exactly when status is paused. |
| data[].resources | array<object> | Resources attached to sessions created from this deployment. Echoes the input minus write-only credentials. |
| data[].schedule | null | object | 5-field POSIX cron schedule with computed runtime timestamps. |
| data[].status | string | Lifecycle status of a deployment. |
| data[].type | string | Always deployment. A frozen set of session parameters and an optional schedule. |
| data[].updated_at | string | A timestamp in RFC 3339 format |
| data[].vault_ids | array<string> | Vault IDs supplying stored credentials for sessions created from this deployment. |
| data[].budget | null | object | A hard spend ceiling. The session stops issuing new model requests once the tracked list cost reaches max_list_cost. |
| data[].target | object | Execution target. environment (default) requires an existing, unarchived environment_id. computer is available only for general agents and permits environment_id to be omitted. |
| next_page | string | null | Opaque cursor for the next page: pass it unchanged as page to continue. Null when this is the last page. |
Before running the example
Create a deployment and replace depl_123 with its ID. Get drun_123 from Run deployment. Pause before testing unpause. After testing, wait for created sessions to become idle and delete them, then archive the deployment, environment and agent.