{"uid":"cap_W4P5rT54FlNybUREhU6Dv","slug":"delx-commerce-content-length-check-9d01faa4","name":"Delx Commerce — Content Length 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/content-length-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"declared":{"type":"integer","description":"Declared supplied to Content Length Check; used only for this bounded calculation and processed in memory without retention."},"observed":{"type":"integer","description":"Observed supplied to Content Length Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"delta":0,"matched":true,"declared":128,"observed":128},"schema":"delx/util-content-length-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"c55f65a8b217d1823723eaaef27fb2baf48c4cfd7f20ccc0fecf75ec925d4da5","external_calls":0},"operation":"web_reliability:content_length_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_Drf4BGWYYtfEcvNupq-JH","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":"Verifies whether a declared HTTP Content-Length header value matches the observed byte length of a response body, returning a pass/fail result with a delta.","exampleAgentPrompt":"Check whether the declared content length of 1024 bytes matches the observed content length of 987 bytes — I want to know if there's a mismatch and what the delta is.","exampleUseCases":[{"title":"Detecting corrupted HTTP downloads","prompt":"I downloaded a file and the server said the Content-Length was 204800 bytes, but I only received 198432 bytes — can you check if those match and tell me the delta?"},{"title":"Web scraper response integrity check","prompt":"My scraper is seeing inconsistent responses — the declared content length is 512 bytes but the observed is 512 bytes. Can you confirm they match before I process the payload?"},{"title":"API reliability monitoring audit","prompt":"As part of our uptime checks, verify that the declared content length of 2048 bytes matches the observed 1900 bytes and flag whether there's a mismatch so I can alert the team."}],"resultDescription":"Returns a JSON object with a boolean 'matched' field, the 'delta' between declared and observed values, the original declared and observed integers, an operation status ('pass'/'fail'), and an evidence block containing a SHA-256 hash of the input, a flag confirming no data retention, and a count of external calls made (always 0).","failureModes":["Missing or non-integer 'declared' or 'observed' fields return a validation error","Negative integer inputs may be rejected or produce unexpected deltas","Network or payment failures (x402 protocol) prevent the call from completing","Malformed request body returns a 4xx error before processing"],"whenToPreferThis":"Choose this endpoint when you need a verifiable, auditable, pay-per-use check of whether an HTTP Content-Length header matches the actual observed body size — particularly when you need cryptographic evidence (SHA-256 input hash) that no data was retained and no external calls were made. Prefer it over custom validation logic when you want tamper-evident results or when operating in an agent pipeline that requires provable, per-call billing via USDC on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:52:38.306Z","isFirstParty":false,"canonicalSlug":"delx-commerce-content-length-check-9d01faa4"}