{"uid":"cap_yPoMPpoXBswMBOuU67sO5","slug":"delx-commerce-omit-fields-from-object-026a9e55","name":"Delx Commerce — Omit Fields from Object","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/omit-fields?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"keys":{"type":"array","description":"Input field: keys."},"object":{"type":"object","description":"Input field: object."}}},"responseSchema":{"type":"json","example":{"size":2,"object":{"a":1,"b":2},"schema":"delx/util-omit-fields/v1"}},"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_7cvkr5Efp7F9WQrf-Rozn","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":"Removes specified keys from a JSON object, returning a filtered copy with only the remaining fields","exampleAgentPrompt":"Strip the fields 'password', 'ssn', and 'token' from this JSON object before I send it to the logging service: {\"user\":\"alice\",\"password\":\"secret\",\"ssn\":\"123-45-6789\",\"token\":\"abc123\",\"role\":\"admin\"}.","exampleUseCases":[{"title":"Sanitize API response before logging","prompt":"Remove the fields 'authorization', 'x-api-key', and 'cookie' from this JSON object so I can safely log it without exposing secrets: {\"authorization\":\"Bearer xyz\",\"x-api-key\":\"key123\",\"cookie\":\"session=abc\",\"content-type\":\"application/json\",\"body\":\"hello\"}."},{"title":"Slim down payload for downstream service","prompt":"Drop the 'metadata', 'debug', and 'internalId' keys from this object before I forward it to the external partner API: {\"metadata\":{\"source\":\"crm\"},\"debug\":true,\"internalId\":\"X-99\",\"name\":\"Acme Corp\",\"amount\":500}."},{"title":"Remove PII before storing record","prompt":"Take this user record and omit the 'email', 'phone', and 'dateOfBirth' fields so I can store an anonymized version: {\"email\":\"bob@example.com\",\"phone\":\"555-1234\",\"dateOfBirth\":\"1985-03-12\",\"userId\":\"u42\",\"plan\":\"pro\"}."}],"resultDescription":"Returns a JSON object with the specified keys removed, along with the count of remaining fields and a schema identifier ('delx/util-omit-fields/v1'). The response confirms how many fields remain after the omission.","failureModes":["Keys array is empty or null — may return the original object unchanged","Object is null or malformed JSON — likely returns an error or empty result","Specified keys do not exist in the object — silently ignored, full object returned","Payment failure via x402 — 402 response with payment requirements before result is returned","Network timeout — no result delivered, agent must retry"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use utility to programmatically strip specific fields from a JSON object without standing up your own filtering logic. It is ideal for agents that handle dynamic or untrusted payloads and need a verifiable, stateless transformation with no signup friction. Prefer it over bespoke code when operating in agent pipelines that already use x402/USDC micropayments on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:55.427Z","isFirstParty":false,"canonicalSlug":"delx-commerce-omit-fields-from-object-026a9e55"}