메인 콘텐츠로 건너뛰기
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.