{"uid":"cap_ja-Sj1lCAF0y3spplSYtr","slug":"json-key-allowlist-17ae5c9d","name":"JSON Key Allowlist","description":"JSON Key Allowlist: JSON Key Allowlist finds top-level object keys outside an explicit allowlist from bounded caller-supplied values without an external provider. Call JSON Key Allowlist before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Key Allowlist as versioned deterministic JSON. Price: $0.001 USDC via x402 on Bas…","url":"https://api.delx.ai/api/v1/x402/json-key-allowlist","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"object":{"type":"object","description":"Object supplied to JSON Key Allowlist; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true},"allowed":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Allowed supplied to JSON Key Allowlist; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"passed":true,"unexpected_keys":[]},"schema":"delx/util-json-key-allowlist/v1","status":"pass","evidence":{"retained":false,"input_sha256":"8db5924d2566b60a20ce9bbc77d50f76ea1135a98e526ba746e027da4b772dda","external_calls":0},"operation":"data_batch:json_key_allowlist"}},"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_ZA-eDfDiM9MX8Hb9Ckfah","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 a JSON object's top-level keys against a caller-supplied allowlist, returning counts and details of any disallowed keys found.","exampleAgentPrompt":"Before I pass this JSON object to the payment processor, check that it only has the keys 'amount', 'currency', and 'recipient' — tell me if there are any unexpected fields.","exampleUseCases":[{"title":"Guard downstream tool input","prompt":"I'm about to hand this structured plan object to a fulfillment API that only accepts 'sku', 'quantity', and 'warehouse' as top-level keys — can you check the object against that allowlist and tell me if anything is outside the contract?"},{"title":"Catch LLM hallucinated fields","prompt":"The AI just produced this JSON result, but our downstream system only allows 'id', 'status', 'timestamp', and 'payload' — validate those top-level keys and flag anything extra before I forward it."},{"title":"Enforce schema in agent pipeline","prompt":"Before the orchestrator hands this batch plan to the execution agent, verify the top-level keys are strictly within ['task', 'priority', 'deadline', 'assignee'] and return a count of any disallowed ones."}],"resultDescription":"Returns a versioned deterministic JSON result containing the count of disallowed keys found, the specific disallowed key names, normalized values, and a versioned result contract. All processing is done in memory without data retention.","failureModes":["Object exceeds 128 top-level property limit — request rejected","Allowlist exceeds 256 items — request rejected","Individual allowlist string exceeds 8192 characters — request rejected","Malformed input JSON — validation error returned","Payment not included or insufficient — 402 response"],"whenToPreferThis":"Use this endpoint when an agent needs to enforce a strict top-level key contract on a JSON object before passing it to a downstream tool, API, or execution layer that rejects unexpected fields. Prefer this over manual key inspection when you need a versioned, deterministic, auditable result with counts and normalized values rather than a simple boolean. Especially valuable in multi-agent pipelines where LLM-generated structured outputs may contain hallucinated or extra keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:56.901Z","isFirstParty":false}