Skip to content
中文

List Deployment Runs

GET/agent/v1/deployment_runs● Supported

Request parameters

  • created_at[gt]stringoptional

    query: Return runs created strictly after this time (exclusive).

  • created_at[gte]stringoptional

    query: Return runs created at or after this time (inclusive).

  • created_at[lt]stringoptional

    query: Return runs created strictly before this time (exclusive).

  • created_at[lte]stringoptional

    query: Return runs created at or before this time (inclusive).

  • deployment_idstringoptional

    query: Filter to a specific deployment. Omit to list across all deployments in the workspace. Filtering by a non-existent deployment_id returns 200 with empty data.

  • has_errorbooleanoptional

    query: Filter: true for runs with non-null error, false for runs with non-null session_id. Omit for all.

  • trigger_typestringoptional

    query: Filter runs by what triggered them. Omit to return all runs.

  • limitnumberoptional

    query: Number of items per page.

  • pagestringoptional

    query: 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

Manual triggers and cron schedules create sessions with pinned agent versions. Session creation errors are recorded and automatically pause the deployment; unpause to resume scheduling. Missed cron occurrences produce one catch-up run. Lists support deployment_id, has_error, trigger_type and all four created_at bounds, with keyset pagination.

Errors follow the Anthropic error format (type / message / request_id) — see error codes

Request

curl
curl "https://api.deepraxis.com/agent/v1/deployment_runs?deployment_id=depl_123" \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
Python
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/deployment_runs?deployment_id=depl_123",
    headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())
TypeScript
const opts = {
  baseURL: "https://api.deepraxis.com/agent",
  apiKey: "$PRAXIS_API_KEY",
};

// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/deployment_runs?deployment_id=depl_123`, {
  headers: { Authorization: `Bearer ${opts.apiKey}` },
});
console.log(resp.status, await resp.json());

Response 200

{
  "data": [
    {
      "id": "drun_8e34a8431c80444493b32b1ad49cd2bd",
      "type": "deployment_run",
      "agent": {
        "type": "agent",
        "id": "agent_18b8d51c-3dfb-4b8a-82d7-14f254114b35",
        "version": 1
      },
      "created_at": "2026-10-22T15:26:05.412Z",
      "deployment_id": "depl_4796b85839d54ec485fad1947c9d0ed4",
      "session_id": "sesn_bf060568e1aa48bca4098f84b3e3ec2f",
      "error": null,
      "trigger_context": {
        "type": "manual"
      }
    }
  ],
  "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 run (drun_...).
data[].agent object A resolved agent reference with a concrete version.
data[].created_at string A timestamp in RFC 3339 format
data[].deployment_id string ID of the deployment that produced this run.
data[].error null | object Why the run failed to create a session. The type identifies the failure; message is human-readable detail.
data[].session_id null | string Populated on success. Null on creation failure. Exactly one of session_id or error is non-null.
data[].trigger_context object Describes what triggered a deployment run, with trigger-specific metadata.
data[].type string Always deployment_run. The result of one manual or scheduled deployment trigger.
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.