{"uid":"cap_KjCnhG4-nnv9a0KYGeF5A","slug":"delx-commerce-json-pattern-fields-check-762a92fb","name":"Delx Commerce — JSON Pattern Fields 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-pattern-fields-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 Pattern Fields Check; used only for this bounded calculation and processed in memory without retention."},"object":{"type":"object","description":"Object supplied to JSON Pattern Fields Check; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"pattern":{"type":"string","maxLength":8192,"description":"Pattern supplied to JSON Pattern Fields 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-pattern-fields-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"76c212959ee62ae10d1069f1f04a0f1ac36073c0c300552b25ad1c9929a1bd35","external_calls":0},"operation":"data_batch:json_pattern_fields_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_e4ibxx0RTJdaVHEtDCG3H","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 whether specified fields in a JSON object match a given pattern, returning pass/fail results and a list of any invalid fields.","exampleAgentPrompt":"Check this JSON object to see if the fields 'email', 'phone', and 'zipcode' all match the pattern '^[a-zA-Z0-9]+$' — tell me which ones pass and which ones fail.","exampleUseCases":[{"title":"Validate user-submitted form fields","prompt":"I have a JSON object from a user signup form and I need to verify that the 'username' and 'referral_code' fields both match the pattern '^[a-zA-Z0-9_]{3,20}$'. Can you check which ones are valid and list any that fail?"},{"title":"Audit API response fields for conformance","prompt":"Take this API response JSON and check whether the fields 'transaction_id', 'account_ref', and 'batch_code' all conform to the pattern '^[A-Z]{2}[0-9]{8}$'. Let me know if any of them are invalid."},{"title":"Pre-flight check on config fields before deployment","prompt":"Before I deploy, can you run a pattern check on this config object to confirm that the 'env', 'region', and 'app_name' fields all match '^[a-z][a-z0-9-]{1,30}$' and tell me which ones don't?"}],"resultDescription":"Returns a JSON object containing: a 'result' with a boolean 'passed' flag and an 'invalid_fields' array listing any fields that failed the pattern check; a 'status' field ('pass' or 'fail'); an 'evidence' block with the input SHA256 hash, a 'retained: false' flag confirming no data is stored, and a count of external calls made; plus the operation name and schema version.","failureModes":["Malformed or missing 'pattern' field returns a validation error","'fields' array exceeding 256 items is rejected","'object' with more than 128 properties is rejected","Invalid JSON in the 'object' field causes a parse error","Pattern string exceeding 8192 characters is rejected","Field names in 'fields' array not present in 'object' may be treated as failed or skipped — behavior depends on implementation"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, no-signup, pay-per-call validation of specific fields within a JSON object against a string pattern, especially in automated agent pipelines that require verifiable, tamper-evident results (SHA256 evidence) and no data retention. Ideal for CI/CD pre-flight checks, form validation pipelines, or API response auditing where cost predictability ($0.001 per call) and proof of execution matter more than a full schema validation framework.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:03:04.410Z","isFirstParty":false,"canonicalSlug":"delx-commerce-json-pattern-fields-check-762a92fb"}