{"uid":"cap_3m441Pk2-lqYIoSNkoiAW","slug":"saferoute-diagnostics-repairs-payment-protection-proof-endpoint-9e88bcbb","name":"SafeRoute Diagnostics, Repairs & Payment Protection — Proof Endpoint","description":"Workflow automation, Stripe and API integration repair, and x402 payment diagnostics. Choose a fixed scope and review it before payment.","url":"https://api.usesaferoute.com/v1/proof?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"oneOf":[{"type":"object","required":["action","from","to","amount","wallet"],"properties":{"to":{"enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string"},"from":{"enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string"},"action":{"type":"string","const":"trade"},"amount":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$"},"wallet":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"intentId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":128,"minLength":16},"referralCode":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":64,"minLength":3},"executionMode":{"type":"string","const":"standard"},"sourceAgentId":{"type":"string","maxLength":128,"minLength":1}},"additionalProperties":false},{"type":"object","required":["action","transaction"],"properties":{"action":{"type":"string","const":"transaction"},"intentId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":128,"minLength":16},"transaction":{"type":"object","required":["from","to","data"],"properties":{"to":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"data":{"type":"string","pattern":"^0x[a-fA-F0-9]+$"},"from":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"type":"string","pattern":"^\\d+$"}},"additionalProperties":false},"referralCode":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":64,"minLength":3},"sourceAgentId":{"type":"string","maxLength":128,"minLength":1}},"additionalProperties":false},{"type":"object","required":["action","token"],"properties":{"token":{"enum":["USDC","WETH","EURC","CBETH","CBBTC","VIRTUAL","AERO"],"type":"string"},"action":{"type":"string","const":"token"},"intentId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":128,"minLength":16},"referralCode":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":64,"minLength":3},"sourceAgentId":{"type":"string","maxLength":128,"minLength":1}},"additionalProperties":false}]},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["status","service"],"properties":{"status":{"type":"string","const":"ok"},"service":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"status":"ok","service":"saferoute-proof"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sZxoBhLEDhSwMlj37PuiI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes workflow automation tasks, Stripe/API integration repairs, and x402 payment diagnostics with a fixed-scope review model, returning a cryptographic or status proof of the operation.","exampleAgentPrompt":"Run a SafeRoute diagnostics check on my x402 payment setup — I want to submit a trade action swapping 100 USDC for WETH from wallet 0xAbCd1234...5678 and get a proof of the result back before I commit anything.","exampleUseCases":[{"title":"x402 payment integration diagnosis","prompt":"My x402 payment flow keeps failing silently — can you run a SafeRoute diagnostics proof against it using a trade action from wallet 0xAbCd1234567890abcdef1234567890abcdef1234, swapping 50 USDC to EURC, and tell me what comes back?"},{"title":"Broken Stripe API workflow repair","prompt":"My Stripe API integration pipeline has stopped working and I need SafeRoute to run a repair workflow on it — submit it as a transaction action with from 0xAbCd1234567890abcdef1234567890abcdef1234, to 0xDead1234567890abcdef1234567890abcdef5678, and data 0xabcdef01 so I can see the proof of what it finds."},{"title":"On-chain token info verification before swap","prompt":"Before I do a live swap, use SafeRoute to get a proof-backed token diagnostic on CBBTC so I can confirm the integration is healthy and see the status returned."}],"resultDescription":"Returns a JSON object with a status field (e.g. 'ok') and a service identifier ('saferoute-proof'), along with any proof or diagnostic results from the requested action — confirming whether the workflow, payment, or transaction validated successfully.","failureModes":["Missing required fields (action, type, method, bodyType) returns a 400 validation error","Invalid wallet address format (not 0x + 40 hex chars) causes schema rejection","Unsupported token enum value results in input validation failure","x402 payment of 0.05 USDC not included causes 402 Payment Required response","Malformed transaction data field (not valid hex) causes parse error","Intent ID below minimum length (16 chars) or above max (128 chars) triggers rejection"],"whenToPreferThis":"Choose this endpoint when you need cryptographic or status proof of a DeFi trade, raw transaction, or token operation on Base — especially in diagnostic, repair, or integration-validation contexts where you need to confirm an x402 payment flow or Stripe/API pipeline is functioning correctly before committing to a live operation. Prefer it over the standard swap endpoints when the goal is diagnostics, audit trail, or workflow repair rather than execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:51:41.496Z","isFirstParty":false,"canonicalSlug":"saferoute-diagnostics-repairs-payment-protection-proof-endpoint-9e88bcbb"}