{"uid":"cap_l9fNEkdyHufsnpDb3qOUk","slug":"delx-commerce-json-string-length-check-57477d89","name":"Delx Commerce — JSON String 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/json-string-length-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Fields supplied to JSON String Length Check; used only for this bounded calculation and processed in memory without retention."},"object":{"type":"object","description":"Object supplied to JSON String Length Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"maximum":{"type":"integer","description":"Maximum supplied to JSON String Length Check; used only for this bounded calculation and processed in memory without retention."},"minimum":{"type":"integer","description":"Minimum supplied to JSON String Length Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"passed":true,"invalid_fields":[]},"schema":"delx/util-json-string-length-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"e61f8b4c6194a85d31be821c7ddcec01a240fe3d4b33cd76336131c6315185b6","external_calls":0},"operation":"data_batch:json_string_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_RhmlfKv04Ty15As61KWJQ","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 specified string fields within a JSON object fall within defined minimum and maximum character length bounds.","exampleAgentPrompt":"Check whether the 'username' and 'bio' fields in this JSON object meet my length requirements — username must be between 3 and 32 characters, and bio between 10 and 500 characters: {\"username\": \"jo\", \"bio\": \"I love coding\"}","exampleUseCases":[{"title":"API payload field validation","prompt":"I'm receiving JSON payloads from users and need to verify that the 'title' and 'description' fields are within bounds — title between 5 and 100 characters, description between 20 and 1000. Can you check this object: {\"title\": \"Hi\", \"description\": \"Short\"}?"},{"title":"Form submission string enforcement","prompt":"Before I save this user profile to the database, validate that 'display_name' is between 2 and 50 characters and 'tagline' is between 0 and 160 characters in this object: {\"display_name\": \"Alex\", \"tagline\": \"Building cool stuff\"}"},{"title":"Data pipeline quality gate","prompt":"As part of my data pipeline, I need to confirm that the 'product_code' field in this batch record is exactly between 6 and 12 characters long — here's the object: {\"product_code\": \"AB12\", \"category\": \"electronics\"}"}],"resultDescription":"Returns a result object indicating whether all specified string fields passed the length check, a list of any fields that failed (invalid_fields), an overall status ('pass' or 'fail'), and evidence metadata including a SHA-256 hash of the input for verifiability and confirmation that no data is retained.","failureModes":["Field names specified in 'fields' array do not exist in the provided object — returns pass with no violations since no matching fields found","Non-string field values in the specified fields may not be evaluated correctly","Input object exceeds 128 properties limit — request rejected","Fields array exceeds 256 items — request rejected","Missing or malformed minimum/maximum integers — undefined validation behavior","Payment failure via x402 protocol — 402 response before computation occurs"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call, no-signup validation of JSON string field lengths with cryptographic verifiability (SHA-256 input hashing and no data retention guarantees). Prefer it over building custom validation logic when you want an auditable, agent-friendly microservice that returns structured pass/fail results. Ideal for agent pipelines that need to gate on data quality before downstream processing, especially when USDC micropayments via x402 are already integrated.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:57:25.288Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-string-length-check-57477d89"}