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

名称类型说明
dataarray<object>
data[].idstringUnique identifier for this run (`drun_...`).
data[].agentobjectA resolved agent reference with a concrete version.
data[].created_atstringA timestamp in RFC 3339 format
data[].deployment_idstringID of the deployment that produced this run.
data[].errornull | objectWhy the run failed to create a session. The type identifies the failure; message is human-readable detail.
data[].session_idnull | stringPopulated on success. Null on creation failure. Exactly one of `session_id` or `error` is non-null.
data[].trigger_contextobjectDescribes what triggered a deployment run, with trigger-specific metadata.
data[].typestring
next_pagestring | null