{"uid":"cap_eCAbSwdVzO1QYw6cly1TV","slug":"tradepilotusa-json-pointer-redact-77228ae6","name":"TradepilotUSA JSON Pointer Redact","description":"Remove explicitly named RFC 6901-style JSON object paths; replace targeted array elements with null to preserve indices. Handles escaped slashes/tilde, reports missing paths, and rejects duplicate keys or lossy numbers. Does not automatically detect sensitive information.","url":"https://www.tradepilotusa.com/api/agent-commerce/v1/services/json_pointer_redact/execute?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json":{"type":"string","maxLength":48000},"pointers":{"type":"array","items":{"type":"string","pattern":"^/","maxLength":500},"maxItems":50,"minItems":1}}},"responseSchema":{"type":"json","example":{"result":{"json":"{\n  \"name\": \"Example\",\n  \"contact\": {}\n}","scope":"Only explicitly supplied paths; no automatic sensitive-data detection","array_policy":"Targeted array elements become null to preserve indices","removed_count":1,"missing_pointers":[]},"utility":"json_pointer_redact","provenance":{"execution":"deterministic_local","model_used":false,"network_request_performed":false},"request_id":"example_json_pointer_redact"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VFpyNVilqj2XrbJTbd0bw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Redacts specific fields from a JSON string using RFC 6901 JSON Pointer paths, replacing targeted values with null while preserving structure","exampleAgentPrompt":"Redact the fields at '/customer/email' and '/payment/card_number' from this JSON string: '{\"customer\":{\"name\":\"Jane Doe\",\"email\":\"jane@example.com\"},\"payment\":{\"card_number\":\"4111111111111111\",\"amount\":99.99}}'","exampleUseCases":[{"title":"Remove PII before audit logging","prompt":"I need to log this API response for debugging but it contains user data — can you redact '/user/ssn' and '/user/email' from this JSON before we store it: '{\"user\":{\"id\":42,\"name\":\"Alice\",\"email\":\"alice@corp.com\",\"ssn\":\"123-45-6789\"},\"order\":{\"id\":999,\"total\":150}}'?"},{"title":"Sanitize webhook payload for third party","prompt":"We're forwarding this order webhook to a partner but need to strip out the internal cost fields first — please redact '/order/cost_price' and '/order/margin' from this JSON: '{\"order\":{\"id\":\"ORD-881\",\"product\":\"Widget\",\"cost_price\":12.50,\"margin\":0.35,\"sale_price\":29.99}}'"},{"title":"Mask credentials in config before sharing","prompt":"Can you remove the secret values at '/db/password' and '/api/secret_key' from this config JSON so I can safely share it with the team: '{\"db\":{\"host\":\"prod.db.internal\",\"password\":\"s3cr3t!\"},\"api\":{\"secret_key\":\"abc123xyz\",\"base_url\":\"https://api.example.com\"}}'?"}],"resultDescription":"Returns the original JSON string with targeted fields replaced by null (array elements become null to preserve indices), along with a count of removed fields and a list of any supplied pointers that were not found in the document. Also includes provenance metadata confirming the operation was performed deterministically without any model or network involvement.","failureModes":["Invalid JSON input returns an error — the json field must be parseable","JSON Pointer paths must start with '/' or an error is returned","Exceeding 50 pointers in a single call results in validation failure","JSON string exceeding 48000 characters is rejected","Pointer paths not present in the document are listed in missing_pointers rather than causing an error"],"whenToPreferThis":"Choose this endpoint when you need deterministic, structure-preserving field-level redaction of a JSON document using precise RFC 6901 pointer paths, and you want no model inference or network side-effects involved. Prefer it over regex or manual scrubbing when exact pointer-based targeting is needed, array index preservation matters, and you need an audit count of what was removed. Not appropriate for automatic PII detection (it only redacts explicitly specified paths).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:42:03.935Z","isFirstParty":false,"canonicalSlug":"tradepilotusa-json-pointer-redact-77228ae6"}