{"uid":"cap_BS41n1PRuX0NSgw9N0VB9","slug":"x402-trust-attestation-api-397444f8","name":"x402 Trust Attestation API","description":"Paid deterministic utility APIs settled in native USDC on Base.","url":"https://x402-url-evidence.vercel.app/api/x402-trust-attestation","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Credential-free public HTTPS x402 endpoint"},"method":{"enum":["GET","POST"],"type":"string"},"expected":{"type":"object","properties":{"asset":{"type":"string","description":"Expected token contract"},"payTo":{"type":"string","description":"Expected recipient address"},"network":{"type":"string","description":"Expected CAIP-2 network"},"maxAmount":{"type":"string","description":"Maximum accepted integer base-unit amount"}}},"receiptTxHash":{"type":"string","description":"Optional Base transaction hash to verify against current terms"},"baselineFingerprint":{"type":"string","description":"Optional prior SHA-256 attestation fingerprint"}}},"responseSchema":{"type":"json","example":{"receipt":null,"summary":{"failed":0,"passed":15,"warnings":0},"verdict":"ready","protocol":{"ready":true,"x402Version":2},"safeToPay":true,"attestation":{"changed":false,"algorithm":"sha256","fingerprint":"64-character digest"}}},"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_gcGJ8Bj5NEeOtdHAWsfEP","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":"Validates and attests the trustworthiness of an x402 payment-gated HTTPS endpoint by checking its protocol readiness, payment terms, and fingerprint integrity.","exampleAgentPrompt":"Before we pay into that x402 endpoint at https://api.example.com/data, can you run a trust attestation on it — POST method, expecting USDC on Base sent to 0xAbC...123 — and tell me if it's safe to pay and whether the terms have changed from our last fingerprint 'a1b2c3...deadbeef'?","exampleUseCases":[{"title":"Pre-flight check before USDC payment","prompt":"Before my agent pays into https://api.someservice.xyz/results, can you attest that it's a legitimate x402 endpoint expecting USDC on Base at address 0xDEF...789? I want to confirm it's safe to pay and get a fingerprint I can use next time."},{"title":"Detect tampered payment terms","prompt":"Last week I got a fingerprint 'f4e3d2c1b0a9...8765' for the x402 endpoint at https://data.provider.io/feed — can you re-attest it now and tell me if anything has changed in the payment terms?"},{"title":"Audit new third-party x402 service","prompt":"I'm evaluating a third-party x402 API at https://vendor.app/api/premium — it should be a POST endpoint paid to 0xAAA...BBB in USDC on Base. Can you run a full trust attestation and tell me whether the protocol is ready and how many checks passed?"}],"resultDescription":"Returns a JSON object containing: a boolean 'safeToPay' flag, a 'verdict' string (e.g. 'ready'), a 'protocol' object with x402 version and readiness, an 'attestation' object with SHA-256 fingerprint and a 'changed' boolean indicating drift from a prior baseline, a summary of passed/failed/warning checks, and an optional 'receipt' for transaction hash verification.","failureModes":["Endpoint URL is not reachable or returns non-x402 headers — verdict will indicate not ready","Payment terms mismatch expected values (wrong asset, payTo, or network) — warnings or failures in summary","Receipt transaction hash does not match current payment terms — attestation flags discrepancy","Baseline fingerprint differs from current state — 'changed: true' returned, safeToPay may be false","Malformed or non-HTTPS URL provided — validation error on input schema","x402 protocol version incompatibility — protocol.ready returns false"],"whenToPreferThis":"Use this endpoint when an AI agent needs to verify the integrity and payment parameters of an x402-gated API before committing USDC. It is the right choice when you want a deterministic, reproducible fingerprint of an endpoint's payment terms, when you need to detect drift between two calls (e.g. was the payTo address swapped?), or when onboarding a new third-party x402 service and need a safety audit. Prefer this over manual inspection when trust verification needs to be automated, auditable, and settled without human review.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:31:54.844Z","isFirstParty":false}