{"uid":"cap_GFkEgi--9CJXEO7kozo8e","slug":"delx-commerce-payload-size-check-7ca1e383","name":"Delx Commerce Payload 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/payload-size-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"payload":{"type":"object","description":"Input field: payload."},"hard_limit_bytes":{"type":"integer","description":"Input field: hard limit bytes."},"soft_limit_bytes":{"type":"integer","description":"Input field: soft limit bytes."}}},"responseSchema":{"type":"json","example":{"bytes":17,"chars":17,"schema":"delx/util-payload-size-check/v1","status":"ok","within_hard":true,"within_soft":true,"hard_limit_bytes":65536,"soft_limit_bytes":8192,"recommend_truncate":false}},"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_OH5vTkhn3bmEOb7PD5kwl","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 the byte and character size of a JSON payload against configurable hard and soft size limits, returning size metrics and truncation recommendations.","exampleAgentPrompt":"Check if this JSON object fits within a soft limit of 8192 bytes and a hard limit of 65536 bytes — tell me the exact byte count and whether I need to truncate it.","exampleUseCases":[{"title":"Pre-flight payload size guard","prompt":"Before I send this data object to the downstream API, check if it's within the 8192-byte soft limit and 65536-byte hard limit so I know whether to trim it first."},{"title":"Agent context window budget check","prompt":"I'm building up a context payload for my agent — can you measure how many bytes it is and tell me if it exceeds my 4096-byte soft limit or 32768-byte hard limit?"},{"title":"Truncation decision for large responses","prompt":"I have a JSON object I want to forward — check its byte size against a hard limit of 65536 and a soft limit of 8192 and tell me if I should truncate before passing it along."}],"resultDescription":"Returns the byte count, character count, a schema identifier, an overall status ('ok'), boolean flags indicating whether the payload is within the hard and soft limits, the limit values used, and a boolean recommendation on whether to truncate the payload.","failureModes":["Missing or malformed payload object returns a validation error","Non-integer limit values may cause a type error","Extremely large payloads may time out or be rejected before measurement","Payment failure via x402 protocol results in 402 response before processing"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, trustless utility check on payload size — especially within automated agent pipelines where you want to guard against oversized data before forwarding to a downstream API. Ideal when you need both byte and character counts and a built-in truncation recommendation in one call, without setting up your own size-checking logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:32.554Z","isFirstParty":false,"canonicalSlug":"delx-commerce-payload-size-check-7ca1e383"}