Get customer deletion
Call Create agent first and replace the example agent ID with its returned ID.
/agent/v1/agents/{agent_id}/customers/{customer_id}/deletion● SupportedRequest parameters
agent_idstringrequiredpath: 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_idstringrequiredpath: Customer id from customer listing, or your own customer_id.
Returns
200
Use the same agent_id and customer id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. snapshot_key is an operator recovery reference retained for seven days, not a download URL. A customer access token and a missing task return 404.
Errors follow the Anthropic error format (type / message / request_id) — see error codes
Request
curl
# Call Create agent first and replace the example agent ID with its returned ID.
curl https://api.deepraxis.com/agent/v1/agents/agent_123/customers/docs-sample/deletion \
-H "Authorization: Bearer $PRAXIS_API_KEY"Python
# Call Create agent first and replace the example agent ID with its returned 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
// Call Create agent first and replace the example agent ID with its returned 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());Response 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"
}Response
HTTP 200
The latest deletion task and its snapshot counts.
application/json
| Name | Type | Description |
|---|---|---|
| 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. |
Before running the example
Delete your own test customer’s data first, then query deletion progress with the same agent ID and customer ID.