{"uid":"cap_H00d80fKS2dhC6NNqpLmj","slug":"delx-commerce-x402-response-header-shape-validator-5d2cd12f","name":"Delx Commerce — X402 Response Header Shape Validator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/x402-response-header-shape?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"header":{"type":"string","maxLength":8192,"description":"Header supplied to X402 Response Header Shape; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"encoding":"base64_json","shape_valid":true},"schema":"delx/util-x402-response-header-shape/v1","status":"pass","evidence":{"retained":false,"input_sha256":"568768ddc248cedc248ab1ccfdcc4bd01ee9005aa08eff63b5e7df553e7ff724","external_calls":0},"operation":"delivery_contract:x402_response_header_shape"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cISumwWUDTSlgQ_gN2tqm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates and parses an X402 payment response header to confirm it matches the expected shape/encoding, returning a verifiable pass/fail result with evidence.","exampleAgentPrompt":"Can you check whether this x402 response header is correctly shaped and passes validation: 'X-Payment-Response: eyJzY2hlbWEiOiJ4NDAyIn0='?","exampleUseCases":[{"title":"Debug malformed x402 payment header","prompt":"I'm getting errors when processing x402 payment responses from this API — can you validate this header string for me and tell me if it's correctly shaped: 'X-Payment-Response: eyJ0eXBlIjoicGF5bWVudCJ9'?"},{"title":"Pre-flight x402 header check in agent pipeline","prompt":"Before my agent accepts this x402 payment confirmation, verify that the response header 'X-Payment-Response: eyJlbmNvZGluZyI6ImJhc2U2NF9qc29uIn0=' has the right shape and encoding so we don't process a malformed payment receipt."},{"title":"Audit x402 header integrity with evidence","prompt":"I need to audit this x402 response header for correctness and get back a SHA-256 hash of the input as evidence that it was checked — here's the header: 'X-Payment-Response: eyJzdGF0dXMiOiJwYWlkIn0='."}],"resultDescription":"Returns a JSON object containing: a 'status' field ('pass' or 'fail'), a 'result' object with 'shape_valid' boolean and 'encoding' type (e.g. 'base64_json'), an 'operation' identifier, a 'schema' version string, and an 'evidence' block with SHA-256 hash of the input, a 'retained: false' flag confirming no data storage, and external_calls count (0).","failureModes":["Header string exceeds 8192 character limit — request rejected","Malformed or non-x402 header — shape_valid returns false with status 'fail'","Empty or missing header field — validation cannot proceed","Network timeout or service unavailability — HTTP 5xx response","Invalid payment / insufficient USDC balance — HTTP 402 returned before processing"],"whenToPreferThis":"Use this endpoint when you need a lightweight, stateless, verifiable check that an X402 response header conforms to the expected shape and encoding before trusting or forwarding a payment confirmation. Prefer it over manual parsing when you need cryptographic evidence (SHA-256 of input) that the check was performed, or when operating in an agent pipeline that requires auditability and proof of non-retention of sensitive header data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:50:23.531Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-response-header-shape-validator-5d2cd12f"}