{"uid":"cap_Q9O5G7cot-uUEGMyYHQkL","slug":"delx-commerce-x402-delivery-size-check-38e7f251","name":"Delx Commerce — X402 Delivery Size 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-delivery-size-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"result":{"type":"object","description":"Result supplied to X402 Delivery Size Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"maximum_bytes":{"type":"integer","description":"Maximum Bytes supplied to X402 Delivery Size Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"bytes":39,"within_budget":true},"schema":"delx/util-x402-delivery-size-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"076621b47df3f39c3106d66269581bbf20cc78094ab64cec4fdb10ac2b5f03d1","external_calls":0},"operation":"delivery_contract:x402_delivery_size_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_bOf0ABqzNXKEmFULjrKql","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":"Checks whether a result object's serialized byte size falls within a specified budget, returning byte count and pass/fail status without retaining the data.","exampleAgentPrompt":"Check whether this result object is within a 512-byte budget — just measure it and tell me if it fits without storing anything.","exampleUseCases":[{"title":"Pre-flight x402 delivery budget check","prompt":"Before I send this result payload over x402, can you check if it's within 1024 bytes and tell me the exact size?"},{"title":"Agent response size validation","prompt":"Validate that this JSON object I'm about to deliver is under 256 bytes — I need a pass or fail with the actual byte count."},{"title":"Payload audit with SHA-256 evidence","prompt":"Measure the size of this result object against a 2048-byte maximum and give me a verifiable hash of the input so I can prove what was checked."}],"resultDescription":"Returns a JSON object containing the serialized byte size of the submitted result, a boolean indicating whether it falls within the specified maximum_bytes budget, a pass/fail status string, and an evidence block with SHA-256 hash of the input, a flag confirming no data was retained, and the number of external calls made (always 0).","failureModes":["Missing required 'result' field causes validation error","'maximum_bytes' not provided may default to unbounded check or return error","Result object exceeding 128 properties (maxProperties limit) is rejected","Payment not included or invalid USDC payment causes 402 response","Malformed JSON body causes 400 parse error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, verifiable, privacy-preserving byte-size check on a result object before committing to an x402 delivery — especially when you need cryptographic evidence (SHA-256) that the input was not retained. Prefer this over a local size calculation when auditability and proof-of-no-retention matter, or when operating in an x402 payment pipeline where delivery size constraints must be enforced.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:01.490Z","isFirstParty":false,"canonicalSlug":"delx-commerce-x402-delivery-size-check-38e7f251"}