{"openapi":"3.1.0","info":{"title":"x402 Doctor","version":"2.5.0","termsOfService":"https://fizzl.eu/terms/","description":"Diagnoses why an x402, MPP or L402 payment endpoint is broken, without a funded wallet: challenge format (x402, MPP and L402 / Lightning), accepts[], resource URL, Solana settlement readiness, discovery and browser paywall.","x-guidance":"Before paying an unknown x402 endpoint, call GET /api/v1/preflight?url=<endpoint>&max_usd=<budget> ($0.001): it answers go, caution or no_go with the recommended payment option and the reasons. Checking several endpoints at once: GET /api/v1/preflight/batch?url=<a>&url=<b> (up to 10, $0.005). Before an expensive call: GET /api/v1/preflight/deep?url=<endpoint> ($0.01) adds the full diagnosis, the daily history, the other endpoints of the same seller and domain moves. To debug your own endpoint, call GET /api/v1/diagnose?url=<endpoint> ($0.01): every check with pass/warn/fail and a fix hint. To get the code that fixes it, call GET /api/v1/fix?url=<endpoint> ($0.05): per problem the concrete change for your stack, filled in with your own values. None of them ever pays the endpoint. Every paid answer carries a signed receipt: keep it to prove later which verdict you got (for example why you paid an endpoint); the signer is at /.well-known/x402-doctor-signer.json and POST /api/v1/verify checks one for free.","contact":{"name":"Fizzl","url":"https://fizzl.eu","email":"Fizzl13@protonmail.com"}},"servers":[{"url":"https://x402-doctor.fizzl.eu"}],"paths":{"/api/v1/diagnose":{"get":{"operationId":"diagnoseX402Endpoint","summary":"Check an x402 endpoint for payment problems","tags":["x402","developer-tools"],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"evm","intent":"charge","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","xrpl:0","algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","stellar:pubnet","eip155:196","eip155:143","eip155:137","eip155:42161","eip155:43114"],"asset":"USDC","offers":[{"amount":"10000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"Check an x402 endpoint for payment problems","intent":"charge","method":"evm"},{"amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"Check an x402 endpoint for payment problems","intent":"charge","method":"tempo"}]},"parameters":[{"name":"url","in":"query","required":true,"example":"https://ichimoku-signal.fizzl.eu/signal/BTC-USDT","schema":{"type":"string","format":"uri"},"description":"The x402 endpoint to diagnose"},{"name":"method","in":"query","required":false,"schema":{"type":"string","enum":["GET","POST"]},"description":"Endpoint method; default tries GET then POST"},{"name":"body","in":"query","required":false,"schema":{"type":"string"},"description":"Example JSON request body (URL-encoded) for a POST endpoint that checks its input before the 402; implies POST. Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried."}],"responses":{"200":{"description":"Diagnosis report","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":["string","null"],"enum":["GET","POST",null]},"overall":{"type":"string","enum":["pass","warn","fail"]},"checks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"group":{"type":"string","enum":["challenge","accepts","resource","settlement","wallets","discovery","browser"]},"status":{"type":"string","enum":["pass","warn","fail","info","skip"]},"message":{"type":"string"},"hint":{"type":"string"}},"required":["id","status","message"]}},"wallets":{"type":"array","description":"Which wallets can pay: per wallet, the networks where payment works (yes) and where it fails, with the reason (no).","items":{"type":"object","properties":{"wallet":{"type":"string"},"agent":{"type":"boolean"},"yes":{"type":"array","items":{"type":"string"}},"no":{"type":"array","items":{"type":"object","properties":{"network":{"type":"string"},"reason":{"type":"string"}}}}}}},"challenge":{"type":["object","null"]},"receipt":{"type":"object","description":"Signature over this whole answer (without receipt.signature), so the verdict can be verified later: EIP-191 personal_sign over canonical JSON (sorted keys, compact, ASCII-escaped). Signer addresses: /.well-known/x402-doctor-signer.json; free check: POST /api/v1/verify.","properties":{"request_id":{"type":"string"},"route":{"type":"string"},"input_sha256":{"type":"string","description":"sha256 of canonical JSON {route, input}: your query parameters as strings"},"payment":{"type":"object","description":"The payment behind this answer, from your x402 payment payload. EVM: payer + EIP-3009 nonce; find the settlement as AuthorizationUsed(payer, nonce) on the asset contract. Solana: payer + sha256 of the signed transaction you sent.","properties":{"network":{"type":"string"},"asset":{"type":"string"},"amount":{"type":"string"},"pay_to":{"type":"string"},"payer":{"type":"string"},"nonce":{"type":"string"},"transaction_sha256":{"type":"string"},"proof":{"type":"string","enum":["eip3009","svm-transaction"]}}},"cert":{"type":"object","description":"The payout wallet's certificate for this signing key: personal_sign by authority over 'fizzl receipt signer\\nservice: <service>\\nsigner: <signer>\\nvalid_from: <date>'. Pin the payout wallet and a rotated key still verifies.","properties":{"service":{"type":"string"},"signer":{"type":"string"},"valid_from":{"type":"string"},"authority":{"type":"string"},"signature":{"type":"string"}}},"signed_at":{"type":"string"},"signer":{"type":"string"},"algorithm":{"type":"string","enum":["eip191-canonical-json-v1"]},"signature":{"type":"string"}},"required":["request_id","route","input_sha256","signed_at","signer","algorithm","signature"]}},"required":["url","overall","checks"]}}}},"400":{"description":"Invalid input (rejected before payment)"},"402":{"description":"Payment required (x402 challenge in the PAYMENT-REQUIRED header, mirrored in the body)"}}}},"/api/v1/preflight":{"get":{"operationId":"preflightX402Payment","summary":"Check an x402 endpoint before paying it","tags":["x402","payments"],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"evm","intent":"charge","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","xrpl:0","algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","stellar:pubnet","eip155:196","eip155:143","eip155:137","eip155:42161","eip155:43114"],"asset":"USDC","offers":[{"amount":"1000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"Check an x402 endpoint before paying it","intent":"charge","method":"evm"},{"amount":"1000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"Check an x402 endpoint before paying it","intent":"charge","method":"tempo"}]},"parameters":[{"name":"url","in":"query","required":true,"example":"https://ichimoku-signal.fizzl.eu/signal/BTC-USDT","schema":{"type":"string","format":"uri"},"description":"The x402 endpoint you are about to pay"},{"name":"method","in":"query","required":false,"schema":{"type":"string","enum":["GET","POST"]},"description":"Method you will call it with; default tries GET then POST"},{"name":"body","in":"query","required":false,"schema":{"type":"string"},"description":"Example JSON request body (URL-encoded) for a POST endpoint that checks its input before the 402; implies POST. Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried."},{"name":"max_usd","in":"query","required":false,"example":"0.05","schema":{"type":"string"},"description":"Your budget per call in USD; above it the verdict is no_go"},{"name":"network","in":"query","required":false,"schema":{"type":"string"},"description":"CAIP-2 network you want to pay on, e.g. eip155:8453"},{"name":"client","in":"query","required":false,"schema":{"type":"string","enum":["gateway"]},"description":"Set to gateway when your agent pays with Circle's Gateway client (@circle-fin/x402-batching) from a Gateway balance: Gateway-only endpoints are then not a caution, and Gateway options are recommended first."}],"responses":{"200":{"description":"Verdict (go / caution / no_go), recommended option and reasons","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":["string","null"]},"verdict":{"type":"string","enum":["go","caution","no_go"]},"safe_to_pay":{"type":"boolean"},"summary":{"type":"string"},"recommended_option":{"type":["integer","null"]},"options":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"protocol":{"type":"string","enum":["x402","mpp","l402"]},"method":{"type":["string","null"],"description":"MPP payment method (evm, tempo, stripe); absent for x402 options"},"network":{"type":["string","null"]},"network_name":{"type":["string","null"]},"asset_symbol":{"type":["string","null"]},"amount":{"type":["string","null"]},"usd":{"type":["number","null"]},"pay_to":{"type":["string","null"]},"fee_payer":{"type":"string","description":"Solana: the facilitator that pays the network fee (extra.feePayer)"},"payable":{"type":"boolean"},"problems":{"type":"array","items":{"type":"string"}}},"required":["index","payable","problems"]}},"signals":{"type":"object"},"reasons":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["no_go","caution","info"]},"code":{"type":"string"},"message":{"type":"string"}},"required":["level","code","message"]}},"checked":{"type":"array","description":"What this verdict covered: \"go\" never means more than these checks.","items":{"type":"object","properties":{"check":{"type":"string"},"what":{"type":"string"}}}},"not_checked":{"type":"array","description":"What it did not cover, and why: unavailable (a check that applies could not run), no_data (nothing on record yet), not_sent (send names the parameter to add) or out_of_scope (why says what does check it).","items":{"type":"object","properties":{"check":{"type":"string"},"because":{"type":"string","enum":["unavailable","no_data","not_sent","out_of_scope"]},"why":{"type":"string"},"send":{"type":"string"}}}},"checks_complete":{"type":"boolean","description":"false when a check that applies could not run this time."},"checked_at":{"type":"string"},"cached":{"type":"boolean"},"refusal":{"type":"object","description":"Only when the seller takes refusals and the verdict is not go: a ready report to POST to url if you don't pay (draft x402 refusal extension).","properties":{"url":{"type":"string"},"send_if":{"type":"string"},"how":{"type":"string"},"signature_required":{"type":"boolean"},"signing_message":{"type":"string"},"report":{"type":"object"}}},"receipt":{"type":"object","description":"Signature over this whole answer (without receipt.signature), so the verdict can be verified later: EIP-191 personal_sign over canonical JSON (sorted keys, compact, ASCII-escaped). Signer addresses: /.well-known/x402-doctor-signer.json; free check: POST /api/v1/verify.","properties":{"request_id":{"type":"string"},"route":{"type":"string"},"input_sha256":{"type":"string","description":"sha256 of canonical JSON {route, input}: your query parameters as strings"},"payment":{"type":"object","description":"The payment behind this answer, from your x402 payment payload. EVM: payer + EIP-3009 nonce; find the settlement as AuthorizationUsed(payer, nonce) on the asset contract. Solana: payer + sha256 of the signed transaction you sent.","properties":{"network":{"type":"string"},"asset":{"type":"string"},"amount":{"type":"string"},"pay_to":{"type":"string"},"payer":{"type":"string"},"nonce":{"type":"string"},"transaction_sha256":{"type":"string"},"proof":{"type":"string","enum":["eip3009","svm-transaction"]}}},"cert":{"type":"object","description":"The payout wallet's certificate for this signing key: personal_sign by authority over 'fizzl receipt signer\\nservice: <service>\\nsigner: <signer>\\nvalid_from: <date>'. Pin the payout wallet and a rotated key still verifies.","properties":{"service":{"type":"string"},"signer":{"type":"string"},"valid_from":{"type":"string"},"authority":{"type":"string"},"signature":{"type":"string"}}},"signed_at":{"type":"string"},"signer":{"type":"string"},"algorithm":{"type":"string","enum":["eip191-canonical-json-v1"]},"signature":{"type":"string"}},"required":["request_id","route","input_sha256","signed_at","signer","algorithm","signature"]}},"required":["url","verdict","safe_to_pay","summary","options","reasons"]}}}},"400":{"description":"Invalid input (rejected before payment)"},"402":{"description":"Payment required (x402 challenge in the PAYMENT-REQUIRED header, mirrored in the body)"}}}},"/api/v1/preflight/batch":{"get":{"operationId":"preflightX402Batch","summary":"Check up to 10 x402 endpoints before paying them","tags":["x402","payments"],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"evm","intent":"charge","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","xrpl:0","algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","stellar:pubnet","eip155:196","eip155:143","eip155:137","eip155:42161","eip155:43114"],"asset":"USDC","offers":[{"amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"Check up to 10 x402 endpoints before paying them","intent":"charge","method":"evm"},{"amount":"5000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"Check up to 10 x402 endpoints before paying them","intent":"charge","method":"tempo"}]},"parameters":[{"name":"url","in":"query","required":true,"style":"form","explode":true,"example":["https://ichimoku-signal.fizzl.eu/signal/BTC-USDT","https://presign-guard.fizzl.eu/v1/token"],"schema":{"type":"array","maxItems":10,"items":{"type":"string","format":"uri"}},"description":"The x402 endpoints, one url parameter each (?url=a&url=b), at most 10"},{"name":"method","in":"query","required":false,"schema":{"type":"string","enum":["GET","POST"]},"description":"Method you will call it with; default tries GET then POST"},{"name":"max_usd","in":"query","required":false,"example":"0.05","schema":{"type":"string"},"description":"Your budget per call in USD; above it the verdict is no_go"},{"name":"network","in":"query","required":false,"schema":{"type":"string"},"description":"CAIP-2 network you want to pay on, e.g. eip155:8453"},{"name":"client","in":"query","required":false,"schema":{"type":"string","enum":["gateway"]},"description":"Set to gateway when your agent pays with Circle's Gateway client (@circle-fin/x402-batching) from a Gateway balance: Gateway-only endpoints are then not a caution, and Gateway options are recommended first."}],"responses":{"200":{"description":"Per endpoint go / caution / no_go (or unknown), the recommended option and reasons, plus totals","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer"},"counts":{"type":"object","properties":{"go":{"type":"integer"},"caution":{"type":"integer"},"no_go":{"type":"integer"},"unknown":{"type":"integer"}}},"results":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"verdict":{"type":"string","enum":["go","caution","no_go","unknown"]},"safe_to_pay":{"type":"boolean"},"summary":{"type":"string"},"recommended_option":{"type":["integer","null"]},"options":{"type":"array"},"reasons":{"type":"array"},"error":{"type":"string"}},"required":["url","verdict","safe_to_pay","summary"]}},"checked_at":{"type":"string"},"receipt":{"type":"object","description":"Signature over this whole answer (without receipt.signature), so the verdict can be verified later: EIP-191 personal_sign over canonical JSON (sorted keys, compact, ASCII-escaped). Signer addresses: /.well-known/x402-doctor-signer.json; free check: POST /api/v1/verify.","properties":{"request_id":{"type":"string"},"route":{"type":"string"},"input_sha256":{"type":"string","description":"sha256 of canonical JSON {route, input}: your query parameters as strings"},"payment":{"type":"object","description":"The payment behind this answer, from your x402 payment payload. EVM: payer + EIP-3009 nonce; find the settlement as AuthorizationUsed(payer, nonce) on the asset contract. Solana: payer + sha256 of the signed transaction you sent.","properties":{"network":{"type":"string"},"asset":{"type":"string"},"amount":{"type":"string"},"pay_to":{"type":"string"},"payer":{"type":"string"},"nonce":{"type":"string"},"transaction_sha256":{"type":"string"},"proof":{"type":"string","enum":["eip3009","svm-transaction"]}}},"cert":{"type":"object","description":"The payout wallet's certificate for this signing key: personal_sign by authority over 'fizzl receipt signer\\nservice: <service>\\nsigner: <signer>\\nvalid_from: <date>'. Pin the payout wallet and a rotated key still verifies.","properties":{"service":{"type":"string"},"signer":{"type":"string"},"valid_from":{"type":"string"},"authority":{"type":"string"},"signature":{"type":"string"}}},"signed_at":{"type":"string"},"signer":{"type":"string"},"algorithm":{"type":"string","enum":["eip191-canonical-json-v1"]},"signature":{"type":"string"}},"required":["request_id","route","input_sha256","signed_at","signer","algorithm","signature"]}},"required":["count","counts","results"]}}}},"400":{"description":"Invalid input (rejected before payment)"},"402":{"description":"Payment required (x402 challenge in the PAYMENT-REQUIRED header, mirrored in the body)"}}}},"/api/v1/preflight/deep":{"get":{"operationId":"preflightX402Deep","summary":"Deep check of an x402 endpoint before an expensive payment","tags":["x402","payments"],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"evm","intent":"charge","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","xrpl:0","algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","stellar:pubnet","eip155:196","eip155:143","eip155:137","eip155:42161","eip155:43114"],"asset":"USDC","offers":[{"amount":"10000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"Deep check of an x402 endpoint before an expensive payment","intent":"charge","method":"evm"},{"amount":"10000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"Deep check of an x402 endpoint before an expensive payment","intent":"charge","method":"tempo"}]},"parameters":[{"name":"url","in":"query","required":true,"example":"https://ichimoku-signal.fizzl.eu/setups","schema":{"type":"string","format":"uri"},"description":"The x402 endpoint you are about to pay"},{"name":"method","in":"query","required":false,"schema":{"type":"string","enum":["GET","POST"]},"description":"Method you will call it with; default tries GET then POST"},{"name":"max_usd","in":"query","required":false,"example":"0.05","schema":{"type":"string"},"description":"Your budget per call in USD; above it the verdict is no_go"},{"name":"network","in":"query","required":false,"schema":{"type":"string"},"description":"CAIP-2 network you want to pay on, e.g. eip155:8453"},{"name":"client","in":"query","required":false,"schema":{"type":"string","enum":["gateway"]},"description":"Set to gateway when your agent pays with Circle's Gateway client (@circle-fin/x402-batching) from a Gateway balance: Gateway-only endpoints are then not a caution, and Gateway options are recommended first."},{"name":"body","in":"query","required":false,"schema":{"type":"string"},"description":"Example JSON request body (URL-encoded) for a POST endpoint that checks its input before the 402; implies POST. Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried."}],"responses":{"200":{"description":"The preflight verdict plus the full diagnosis, daily history, seller reliability and domain-move checks","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"method":{"type":["string","null"]},"verdict":{"type":"string","enum":["go","caution","no_go"]},"safe_to_pay":{"type":"boolean"},"summary":{"type":"string"},"recommended_option":{"type":["integer","null"]},"options":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"protocol":{"type":"string","enum":["x402","mpp","l402"]},"method":{"type":["string","null"],"description":"MPP payment method (evm, tempo, stripe); absent for x402 options"},"network":{"type":["string","null"]},"network_name":{"type":["string","null"]},"asset_symbol":{"type":["string","null"]},"amount":{"type":["string","null"]},"usd":{"type":["number","null"]},"pay_to":{"type":["string","null"]},"fee_payer":{"type":"string","description":"Solana: the facilitator that pays the network fee (extra.feePayer)"},"payable":{"type":"boolean"},"problems":{"type":"array","items":{"type":"string"}}},"required":["index","payable","problems"]}},"signals":{"type":"object"},"reasons":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["no_go","caution","info"]},"code":{"type":"string"},"message":{"type":"string"}},"required":["level","code","message"]}},"checked":{"type":"array","description":"What this verdict covered: \"go\" never means more than these checks.","items":{"type":"object","properties":{"check":{"type":"string"},"what":{"type":"string"}}}},"not_checked":{"type":"array","description":"What it did not cover, and why: unavailable (a check that applies could not run), no_data (nothing on record yet), not_sent (send names the parameter to add) or out_of_scope (why says what does check it).","items":{"type":"object","properties":{"check":{"type":"string"},"because":{"type":"string","enum":["unavailable","no_data","not_sent","out_of_scope"]},"why":{"type":"string"},"send":{"type":"string"}}}},"checks_complete":{"type":"boolean","description":"false when a check that applies could not run this time."},"checked_at":{"type":"string"},"cached":{"type":"boolean"},"refusal":{"type":"object","description":"Only when the seller takes refusals and the verdict is not go: a ready report to POST to url if you don't pay (draft x402 refusal extension).","properties":{"url":{"type":"string"},"send_if":{"type":"string"},"how":{"type":"string"},"signature_required":{"type":"boolean"},"signing_message":{"type":"string"},"report":{"type":"object"}}},"diagnosis":{"type":"object","properties":{"overall":{"type":["string","null"]},"problems":{"type":"array"},"checks":{"type":"array"}}},"history":{"type":"array","items":{"type":"object","properties":{"date":{"type":["string","null"]},"status":{"type":"string","enum":["go","caution","no_go","unreachable","unknown"]}}}},"seller":{"type":["object","null"],"properties":{"origin":{"type":"string"},"resources":{"type":"integer"},"payable_now":{"type":"integer"},"avg_payable_ratio":{"type":"number"},"unreliable":{"type":"integer"}}},"domain":{"type":"object","properties":{"checks":{"type":"array"}}},"receipt":{"type":"object","description":"Signature over this whole answer (without receipt.signature), so the verdict can be verified later: EIP-191 personal_sign over canonical JSON (sorted keys, compact, ASCII-escaped). Signer addresses: /.well-known/x402-doctor-signer.json; free check: POST /api/v1/verify.","properties":{"request_id":{"type":"string"},"route":{"type":"string"},"input_sha256":{"type":"string","description":"sha256 of canonical JSON {route, input}: your query parameters as strings"},"payment":{"type":"object","description":"The payment behind this answer, from your x402 payment payload. EVM: payer + EIP-3009 nonce; find the settlement as AuthorizationUsed(payer, nonce) on the asset contract. Solana: payer + sha256 of the signed transaction you sent.","properties":{"network":{"type":"string"},"asset":{"type":"string"},"amount":{"type":"string"},"pay_to":{"type":"string"},"payer":{"type":"string"},"nonce":{"type":"string"},"transaction_sha256":{"type":"string"},"proof":{"type":"string","enum":["eip3009","svm-transaction"]}}},"cert":{"type":"object","description":"The payout wallet's certificate for this signing key: personal_sign by authority over 'fizzl receipt signer\\nservice: <service>\\nsigner: <signer>\\nvalid_from: <date>'. Pin the payout wallet and a rotated key still verifies.","properties":{"service":{"type":"string"},"signer":{"type":"string"},"valid_from":{"type":"string"},"authority":{"type":"string"},"signature":{"type":"string"}}},"signed_at":{"type":"string"},"signer":{"type":"string"},"algorithm":{"type":"string","enum":["eip191-canonical-json-v1"]},"signature":{"type":"string"}},"required":["request_id","route","input_sha256","signed_at","signer","algorithm","signature"]}},"required":["url","verdict","safe_to_pay","summary","options","reasons"]}}}},"400":{"description":"Invalid input (rejected before payment)"},"402":{"description":"Payment required (x402 challenge in the PAYMENT-REQUIRED header, mirrored in the body)"}}}},"/api/v1/delivery-check":{"get":{"operationId":"deliveryCheckX402Endpoint","summary":"Have an x402 endpoint bought once: paid and delivered?","description":"x402 Doctor buys the endpoint once with the example input its listing declares (at most $0.1, USDC on Base, from a dedicated wallet in GitHub Actions), checks the answer against the declared output schema, has TypeSafe's Jev judge whether it is what was paid for, and measures the charge on chain. Answers with a job id at once; GET /api/v1/delivery-check/{id} gives the status and, usually within 30 minutes, the result.","tags":["x402","payments"],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"evm","intent":"charge","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.25"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","xrpl:0","algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","stellar:pubnet","eip155:196","eip155:143","eip155:137","eip155:42161","eip155:43114"],"asset":"USDC","offers":[{"amount":"250000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"Have an x402 endpoint bought once: paid and delivered?","intent":"charge","method":"evm"},{"amount":"250000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"Have an x402 endpoint bought once: paid and delivered?","intent":"charge","method":"tempo"}]},"parameters":[{"name":"url","in":"query","required":true,"example":"https://rest.coincap.io/v3/agentFriendly/full_assets_by_slug","schema":{"type":"string","format":"uri"},"description":"The x402 endpoint to buy once: https, a \"go\" from the pre-payment check, payable in USDC on Base, at most $0.1"},{"name":"method","in":"query","required":false,"schema":{"type":"string","enum":["GET","POST"]},"description":"Endpoint method; default: the one its 402 answers to"}],"responses":{"200":{"description":"The queued job: id, status and status_url","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"status":{"type":"string","enum":["queued","awaiting_payment","done"]},"status_url":{"type":"string"},"queued_at":{"type":"string"},"endpoint_price_usd":{"type":"number"},"receipt":{"type":"object","description":"Signature over this whole answer (without receipt.signature), so the verdict can be verified later: EIP-191 personal_sign over canonical JSON (sorted keys, compact, ASCII-escaped). Signer addresses: /.well-known/x402-doctor-signer.json; free check: POST /api/v1/verify.","properties":{"request_id":{"type":"string"},"route":{"type":"string"},"input_sha256":{"type":"string","description":"sha256 of canonical JSON {route, input}: your query parameters as strings"},"payment":{"type":"object","description":"The payment behind this answer, from your x402 payment payload. EVM: payer + EIP-3009 nonce; find the settlement as AuthorizationUsed(payer, nonce) on the asset contract. Solana: payer + sha256 of the signed transaction you sent.","properties":{"network":{"type":"string"},"asset":{"type":"string"},"amount":{"type":"string"},"pay_to":{"type":"string"},"payer":{"type":"string"},"nonce":{"type":"string"},"transaction_sha256":{"type":"string"},"proof":{"type":"string","enum":["eip3009","svm-transaction"]}}},"cert":{"type":"object","description":"The payout wallet's certificate for this signing key: personal_sign by authority over 'fizzl receipt signer\\nservice: <service>\\nsigner: <signer>\\nvalid_from: <date>'. Pin the payout wallet and a rotated key still verifies.","properties":{"service":{"type":"string"},"signer":{"type":"string"},"valid_from":{"type":"string"},"authority":{"type":"string"},"signature":{"type":"string"}}},"signed_at":{"type":"string"},"signer":{"type":"string"},"algorithm":{"type":"string","enum":["eip191-canonical-json-v1"]},"signature":{"type":"string"}},"required":["request_id","route","input_sha256","signed_at","signer","algorithm","signature"]}}}}}},"400":{"description":"The endpoint cannot be bought this way (rejected before payment)"},"402":{"description":"Payment required (x402 challenge in the PAYMENT-REQUIRED header, mirrored in the body)"},"503":{"description":"Delivery checks unavailable or today's are taken (before payment)"}}}},"/api/v1/delivery-check/{id}":{"get":{"operationId":"deliveryCheckStatus","summary":"Status and result of a delivery check (free)","tags":["x402"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]{10}$"}}],"responses":{"200":{"description":"queued, awaiting_payment or done (with the result: delivered, off_schema, empty, charged_not_delivered, payment_rejected, error_not_charged, or a step that stopped it before paying)"},"404":{"description":"Unknown id"}}}},"/api/v1/fix":{"get":{"operationId":"fixX402Endpoint","summary":"Get the code that fixes an x402 endpoint","tags":["x402","developer-tools"],"x-payment-info":{"protocols":[{"x402":{}},{"mpp":{"method":"evm","intent":"charge","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}},{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.05"},"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","xrpl:0","algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","stellar:pubnet","eip155:196","eip155:143","eip155:137","eip155:42161","eip155:43114"],"asset":"USDC","offers":[{"amount":"50000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"Get the code that fixes an x402 endpoint","intent":"charge","method":"evm"},{"amount":"50000","currency":"0x20C000000000000000000000b9537d11c60E8b50","description":"Get the code that fixes an x402 endpoint","intent":"charge","method":"tempo"}]},"parameters":[{"name":"url","in":"query","required":true,"example":"https://x402-doctor.fizzl.eu/demo/broken","schema":{"type":"string","format":"uri"},"description":"Your x402 endpoint"},{"name":"method","in":"query","required":false,"schema":{"type":"string","enum":["GET","POST"]},"description":"Endpoint method; default tries GET then POST"},{"name":"body","in":"query","required":false,"schema":{"type":"string"},"description":"Example JSON request body (URL-encoded) for a POST endpoint that checks its input before the 402; implies POST. Without it, {} is sent and the requestBody example in the endpoint's /openapi.json is tried."},{"name":"stack","in":"query","required":false,"schema":{"type":"string","enum":["express","next","hono","node","python","generic"]},"description":"Your stack, if detection from the response headers is wrong"}],"responses":{"200":{"description":"Per problem: why, steps and code for your stack","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"overall":{"type":"string","enum":["pass","warn","fail"]},"stack":{"type":"object","properties":{"id":{"type":"string","enum":["express","next","hono","node","python","generic"]},"name":{"type":"string"},"detected_from":{"type":"string"}}},"summary":{"type":"string"},"fixes":{"type":"array","items":{"type":"object","properties":{"recipe":{"type":"string"},"severity":{"type":"string","enum":["fail","warn"]},"checks":{"type":"array","items":{"type":"string"}},"title":{"type":"string"},"why":{"type":"string"},"steps":{"type":"array","items":{"type":"string"}},"code":{"type":"array","items":{"type":"object","properties":{"language":{"type":"string"},"stack":{"type":"string"},"label":{"type":"string"},"snippet":{"type":"string"}}}},"verify":{"type":"string"}},"required":["title","why","steps","code"]}},"improvements":{"type":"array","items":{"type":"object"}},"unfixed":{"type":"array","items":{"type":"object"}},"receipt":{"type":"object","description":"Signature over this whole answer (without receipt.signature), so the verdict can be verified later: EIP-191 personal_sign over canonical JSON (sorted keys, compact, ASCII-escaped). Signer addresses: /.well-known/x402-doctor-signer.json; free check: POST /api/v1/verify.","properties":{"request_id":{"type":"string"},"route":{"type":"string"},"input_sha256":{"type":"string","description":"sha256 of canonical JSON {route, input}: your query parameters as strings"},"payment":{"type":"object","description":"The payment behind this answer, from your x402 payment payload. EVM: payer + EIP-3009 nonce; find the settlement as AuthorizationUsed(payer, nonce) on the asset contract. Solana: payer + sha256 of the signed transaction you sent.","properties":{"network":{"type":"string"},"asset":{"type":"string"},"amount":{"type":"string"},"pay_to":{"type":"string"},"payer":{"type":"string"},"nonce":{"type":"string"},"transaction_sha256":{"type":"string"},"proof":{"type":"string","enum":["eip3009","svm-transaction"]}}},"cert":{"type":"object","description":"The payout wallet's certificate for this signing key: personal_sign by authority over 'fizzl receipt signer\\nservice: <service>\\nsigner: <signer>\\nvalid_from: <date>'. Pin the payout wallet and a rotated key still verifies.","properties":{"service":{"type":"string"},"signer":{"type":"string"},"valid_from":{"type":"string"},"authority":{"type":"string"},"signature":{"type":"string"}}},"signed_at":{"type":"string"},"signer":{"type":"string"},"algorithm":{"type":"string","enum":["eip191-canonical-json-v1"]},"signature":{"type":"string"}},"required":["request_id","route","input_sha256","signed_at","signer","algorithm","signature"]}},"required":["url","fixes"]}}}},"400":{"description":"Invalid input (rejected before payment)"},"402":{"description":"Payment required (x402 challenge in the PAYMENT-REQUIRED header, mirrored in the body)"}}}}},"x-agentcash-provenance":{"ownershipProofs":["0x9965f72e5451dd9c70e8fd24a5b15dc42978be04998630bcdf8387b6651c63db4e5e3fa4d206fa09d777260a45964ac6bd412b5a53c9d82d58f841c855df7e271b"]},"x-service-info":{"categories":["payments","developer-tools","security"],"docs":{"homepage":"https://x402-doctor.fizzl.eu","apiReference":"https://x402-doctor.fizzl.eu/openapi.json","llms":"https://x402-doctor.fizzl.eu/skill.md"}}}