跳转到内容
EN

查询客户删除任务

先调用「创建智能体」,用返回的智能体 ID 替换示例 ID。

GET/agent/v1/agents/{agent_id}/customers/{customer_id}/deletion● 支持

请求参数

  • agent_idstring必填

    path: Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….

  • customer_idstring必填

    path: Customer id from customer listing, or your own customer_id.

返回

200

仅 develop;与客户管理相同的商家鉴权。

错误按 Anthropic 错误格式返回(type / message / request_id),参见 错误码

请求示例

curl
# 先调用「创建智能体」,用返回的智能体 ID 替换示例 ID。
curl https://api.deepraxis.com/agent/v1/agents/agent_123/customers/docs-sample/deletion \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
Python
# 先调用「创建智能体」,用返回的智能体 ID 替换示例 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/agents/agent_123/customers/docs-sample/deletion",
    headers={"Authorization": f"Bearer {opts['api_key']}"},
)
print(resp.status_code, resp.json())
TypeScript
// 先调用「创建智能体」,用返回的智能体 ID 替换示例 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/agents/agent_123/customers/docs-sample/deletion`, {
  headers: { Authorization: `Bearer ${opts.apiKey}` },
});
console.log(resp.status, await resp.json());

响应示例 200

{
  "id": "eud_b8f495e9-e67a-4153-be06-60e44ca12a50",
  "status": "snapshotting",
  "counts": {},
  "created_at": "2026-10-24T08:08:23.217Z",
  "updated_at": "2026-10-24T08:08:23.715Z"
}

响应

HTTP 200

The latest deletion task and its snapshot counts.

application/json

名称 类型 说明
id string Deletion task identifier.
status string pending: accepted; snapshotting: exporting recovery data; deleting: verified snapshot exists and erasure is running; done: erasure completed; failed: stopped safely, retry DELETE to resume the same task.
counts object Counts from the verified snapshot; empty until snapshotting completes.
counts.sessions integer Number of primary and child sessions in the snapshot.
counts.events integer Number of durable session events captured without changing the history.
counts.messages integer Number of stored transcript messages in the snapshot.
counts.d1_rows integer Number of backed-up directory, authorization, feedback and projection rows.
counts.attachments integer Number of session attachment references; their file bytes are retained.
snapshot_key string Operator recovery snapshot key, retained for seven days. Attachment bytes are not copied or deleted.
error string Content-free failure summary; retry the confirmed deletion to resume.
created_at string Task creation time in RFC 3339 format.
updated_at string Latest task update time in RFC 3339 format.

运行示例前

先对自己的测试客户调用删除客户数据,再查询此接口。用同一智能体 ID 和客户 ID 查询删除进度。