{"uid":"cap_asGH0-8L3MqTaxfpL1tB4","slug":"delx-commerce-json-size-budget-4cbbe21b","name":"Delx Commerce — JSON Size Budget","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/json-size-budget?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"object","description":"Value supplied to JSON Size Budget; 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 JSON Size Budget; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"bytes":19,"within_budget":true},"schema":"delx/util-json-size-budget/v1","status":"pass","evidence":{"retained":false,"input_sha256":"293a834474416653f334e4892f6eb0f0f2c98b11baddda224806b004dd8fbfba","external_calls":0},"operation":"data_batch:json_size_budget"}},"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_l18MIrH3Bhz8rKAXh4kNE","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 JSON object's serialized byte size falls within a specified maximum budget and returns the exact byte count.","exampleAgentPrompt":"Check if this JSON object is within a 1000-byte budget: {\"name\": \"Alice\", \"role\": \"admin\", \"active\": true} — tell me the exact byte size and whether it fits.","exampleUseCases":[{"title":"API payload size gate","prompt":"Before I send this JSON config object to the downstream service, check if it's under 512 bytes so I know it won't get rejected: {\"env\":\"prod\",\"retries\":3,\"timeout\":30}"},{"title":"Agent memory footprint check","prompt":"I'm about to store this JSON blob in my agent's working memory — can you tell me how many bytes it is and whether it stays under 256 bytes? Here it is: {\"user_id\":\"u_9821\",\"session\":\"abc123\",\"flags\":[\"beta\"]}"},{"title":"Webhook event size validation","prompt":"My webhook receiver rejects payloads over 2048 bytes — can you verify this event object fits and tell me the exact size? {\"event\":\"order.created\",\"order_id\":\"ORD-4422\",\"items\":[{\"sku\":\"A1\",\"qty\":2}],\"total\":49.99}"}],"resultDescription":"Returns the exact serialized byte size of the JSON object, a boolean indicating whether it is within the specified maximum_bytes budget, the operation schema identifier, a pass/fail status, and a verifiability envelope including the SHA-256 hash of the input and confirmation that no data was retained or sent to external services.","failureModes":["Missing or invalid 'value' field returns a validation error","Missing 'maximum_bytes' field may cause the budget check to fail or return an error","JSON object exceeds the 128-property maxProperties limit and is rejected","Malformed JSON input results in a parse error","Payment not completed causes a 402 response before processing begins"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call, trustless utility to measure and validate the byte size of a JSON payload with no signup or API key required. It is ideal for agents that need cryptographically verifiable, auditable proof that input was not retained — particularly useful in privacy-sensitive pipelines, or when you want deterministic, exact byte counts rather than estimates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:46.047Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-size-budget-4cbbe21b"}