AnthropicClaude 托管智能体
列出部署运行
列出一次定时部署的历史运行记录,每条含触发时间与结果。
GET
/anthropic/v1/deployment_runs○ 未支持请求参数
created_at[gt]string可选query: 只返回严格晚于该时间创建的记录。
created_at[gte]string可选query: 只返回不早于该时间创建的记录。
created_at[lt]string可选query: 只返回严格早于该时间创建的记录。
created_at[lte]string可选query: 只返回不晚于该时间创建的记录。
deployment_idstring可选query: 部署 ID(路径或查询参数)。
has_errorboolean可选query: 按是否出错过滤部署运行。
trigger_typestring可选query: 按触发类型过滤部署运行。
limitnumber可选query: 每页返回的条数上限。
pagestring可选query: 分页游标,取自上一页响应的 next_page。
返回
501 平台还没有实现这个端点;调用会得到下面这个响应:
平台还不能按计划或触发条件自动运行智能体。调用会返回 501(not_implemented_error),不产生副作用,官方 SDK 不会重试。
错误按 Claude Managed Agents 格式返回,参见 错误码
响应
HTTP 200
Successful response
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| data | array<object> | |
| 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 | |
| next_page | string | null |