Paid API (x402)
UndoHaven is an unofficial third-party, compatible with dsh. Agents pay per call in USDC on Base over HTTP 402.
- POST /x402/snapshot costs 0.05 USDC. The body is { label, files }. The service encrypts it with AES-256-GCM and returns the key as restoreToken. The key is not stored. Maximum size is 100 MB. Retention is 30 days. Above 4 MB the body is { mode: "chunked", bytes }, one charge, then restore-token parts of client ciphertext.
- GET /x402/restore/{id} costs 0.05 USDC and sends X-Restore-Token. A files snapshot's paid response is the decrypted JSON. A larger snapshot returns a one-time download grant; the bytes are GET /x402/restore/{id}/body and that request is not charged.
- POST /x402/pass costs 6 USDC for 30 days of Pro, including hosted S3. The price is the Stripe Pro monthly price. There is no discount. The Bearer token uses the existing account and plan.
Idempotency-Key is optional. The same key returns the stored response only when the body, restore token, and payer match, and it does not settle again. A different body returns 409. The switch defaults to off. Mainnet settlement uses PayAI at https://facilitator.payai.network and does not need CDP keys. CDP settlement is optional and is what lists the API in CDP Bazaar automatically. Mainnet still needs a checksummed X402_PAY_TO.
Discovery is /.well-known/x402 and /openapi.json. The Paid API section of /llms.txt is generated from the current config.
If settlement fails (e.g. facilitator nonce too low), you were not charged; retry once.