Billing

Revoke the caller's Lightning wallet

Revocation is deletion of the sub-wallet on the platform Hub: the pairing stops paying and the wallet's balance returns to the platform. The principal, its Base wallet, and its organizations are unchanged; a revoked principal may mint again once the deletion completes.

delete/agent/v1/lightning-wallet

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/agent/v1/lightning-wallet
  • Auth: API key in header SIGN-IN-WITH-X

Headers

SIGN-IN-WITH-Xstring required

SIWX auth header — base64-encoded JSON payload containing a signed CAIP-122 (EIP-4361) message. See https://docs.x402.org/extensions/sign-in-with-x.

Response

Revocation accepted (status: "revoking").

wallet_idstring required
status'minting' | 'active' | 'revoking' | 'revoked' | 'failed' required
network'regtest' | 'signet' | 'mainnet' required
custody'run402_hub' required
custody_notestring
lightning_addressstring nullable
budget_satsinteger required
starter_satsinteger required
has_pairingboolean required
pairingstring

The NWC pairing URI. Present exactly once; store it in the local profile and never send it to Run402.

pairing_claimed_atstring date-time nullable
failure_reasonstring nullable
created_atstring date-time required
activated_atstring date-time nullable
revoked_atstring date-time nullable

Example response

{
  "wallet_id": "lw_3f9c1e2b4d5a6f7081920a1b2c3d4e5f",
  "next_actions": [
    {
      "method": "POST",
      "path": "/tiers/v1/hobby",
      "auth": "x402"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.