跳转到内容
EN

列出部署

GET/anthropic/v1/deployments● 支持

请求参数

  • agent_idstring可选

    query: 按智能体 ID 过滤结果。

  • created_at[gte]string可选

    query: 只返回不早于该时间创建的记录。

  • created_at[lte]string可选

    query: 只返回不晚于该时间创建的记录。

  • include_archivedboolean可选

    query: 是否包含已归档的记录。

  • statusstring可选

    query: 按状态过滤:active 或 paused。

  • limitnumber可选

    query: 每页返回的条数上限。

  • pagestring可选

    query: 分页游标,取自上一页响应的 next_page。

返回

501

支持部署资源创建、读取、过滤、更新、归档、暂停与恢复,固定智能体版本并返回最多五次未来调度时间;初始事件仅 user.message,资源仅 file,支持 vault_ids,最多 50 个,必须属于本组织且未归档;Secret 以环境变量交给会话的电脑,并按 MCP 服务器地址匹配凭据。支持手动运行与 cron 调度,使用固定智能体版本创建会话;创建失败记录错误并自动暂停,恢复后继续调度。错过多个时间点只补跑一次。运行列表支持部署、错误、触发类型、时间范围过滤及游标翻页。 compat 列表跳过 computer 部署;单资源操作返回 400 并指向 /agent/v1。overrides 在读取时只投影基础引用,带 agent 的更新返回 400。

错误按 Claude Managed Agents 格式返回,参见 错误码

请求示例

curl
curl https://api.deepraxis.com/anthropic/v1/deployments \
  -H "x-api-key: $PRAXIS_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: managed-agents-2026-04-01"
Python
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.deepraxis.com/anthropic",
    api_key="$PRAXIS_API_KEY",
)

# 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
result = client.beta.list()
print(result)
TypeScript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  baseURL: "https://api.deepraxis.com/anthropic",
  apiKey: "$PRAXIS_API_KEY",
});

// 官方有、平台未支持:调用得到 501(not_implemented_error),无副作用。
const result = await client.beta.list();
console.log(result);

响应示例 501

{
  "type": "error",
  "error": {
    "type": "not_implemented_error",
    "message": "Not implemented: this Managed Agents operation is not implemented on this platform yet (GET /v1/deployments); see the docs for the supported subset."
  },
  "request_id": "2ca7eb9c-b675-43d3-8be2-eef796ee3a1d"
}

响应

HTTP 200

Successful response

application/json

名称 类型 说明
data array<object>
data[].id string Unique identifier for this deployment.
data[].agent object A resolved agent reference with a concrete version.
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 ID of the environment where sessions run.
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
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.
next_page string | null