メインコンテンツへスキップ
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.