跳轉到主要內容
DELETE
/
api
/
v1
/
x402
/
sessions
/
{id}
Delete x402 Session
curl --request DELETE \
  --url https://api.agentwallex.com/api/v1/x402/sessions/{id} \
  --header 'X-API-Key: <api-key>'
{
  "id": "<string>",
  "deleted": true
}

路徑參數

id
string
必填
要刪除的工作階段 ID(例如 sess_xyz789)。
刪除工作階段不會退還已消費的金額。只有未使用的預算會被釋放回代理的餘額。

範例

curl -X DELETE https://api.agentwallex.com/api/v1/x402/sessions/sess_xyz789 \
  -H "X-API-Key: awx_your_api_key"

授權

X-API-Key
string
header
必填

API key authentication. Keys are prefixed with awx_.

路徑參數

id
string
必填

The session ID to delete (e.g., sess_xyz789).

回應

Session deleted successfully.

id
string

The deleted session ID.

deleted
boolean

Confirmation of deletion.