跳转到主要内容
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.