Skip to main content
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
}

Path Parameters

id
string
required
The session ID to delete (e.g., sess_xyz789).
Deleting a session does not refund already-spent amounts. Only the unspent budget is released back to the agent’s balance.

Example

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

Authorizations

X-API-Key
string
header
required

API key authentication. Keys are prefixed with awx_.

Path Parameters

id
string
required

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

Response

Session deleted successfully.

id
string

The deleted session ID.

deleted
boolean

Confirmation of deletion.