{"uid":"cap_Hha7T1iJUK4uvO6NhgUvK","slug":"delx-commerce-x402-challenge-shape-check-db7877ff","name":"Delx Commerce — X402 Challenge Shape Check","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-challenge-shape-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"challenge":{"type":"object","description":"Challenge supplied to X402 Challenge Shape Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"result":{"shape_valid":true,"accept_count":1,"missing_fields":[]},"schema":"delx/util-x402-challenge-shape-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"62072ab7fce77c19843d604f1566016ce4dbe3ea291d11d208433c905228eeab","external_calls":0},"operation":"delivery_contract:x402_challenge_shape_check"}},"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_HTz0pO7Ve2M3vTkAyGBGV","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 that an X402 payment challenge object has the correct structure and required fields, returning a shape-validity report with field diagnostics.","exampleAgentPrompt":"Can you check whether this x402 challenge object has the right shape and tell me if any required fields are missing? Here's the challenge payload: {\"accept\":[{\"scheme\":\"exact\",\"network\":\"base\",\"maxAmountRequired\":\"1000\",\"resource\":\"https://example.com/api\",\"description\":\"\",\"mimeType\":\"\",\"payTo\":\"0xABC\",\"maxTimeoutSeconds\":60,\"asset\":\"0xUSDC\",\"extra\":null}]}.","exampleUseCases":[{"title":"Preflight check before payment submission","prompt":"Before I send this x402 challenge to my payment agent, can you run a shape check on it and tell me whether it's valid and how many accept entries it has?"},{"title":"Debugging a malformed x402 challenge","prompt":"My x402 integration keeps failing — can you validate this challenge object and list any missing or malformed fields so I can fix it?"},{"title":"CI pipeline x402 challenge linting","prompt":"As part of my test suite, check that this x402 challenge payload conforms to the expected shape and return pass or fail along with the SHA-256 of the input."}],"resultDescription":"Returns a JSON object indicating whether the challenge is shape-valid (shape_valid: true/false), the count of accept entries (accept_count), a list of any missing fields (missing_fields), an overall status ('pass' or 'fail'), and an evidence block containing the SHA-256 hash of the input, a flag confirming no data retention, and the count of external calls made (always 0).","failureModes":["Challenge object exceeds 128 properties limit — rejected with validation error","Malformed JSON input — returns shape_valid: false with missing_fields populated","Missing required top-level challenge key — request body rejected","Network or service unavailability — HTTP 5xx error","Insufficient USDC balance for x402 payment — HTTP 402 payment required before response"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.001 USDC), trustless, in-memory shape check on an X402 challenge object with no data retention — especially useful as a preflight step before attempting a live payment flow, or when debugging x402 integration issues. Prefer this over manual JSON schema validation when you need a verifiable, signed evidence receipt (SHA-256 of input) proving the check was performed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:06:21.808Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-challenge-shape-check-db7877ff"}