{"uid":"cap_1_SlWEh5G9Wq8RcxfqNKQ","slug":"one-engine-record-defaults-transformer-t2-e8abd708","name":"ONE Engine Record Defaults Transformer (t2)","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/records/defaults/t2?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["records"],"properties":{"keys":{"type":"array"},"rename":{"type":"object"},"records":{"type":"array","description":"Up to 500 JSON objects"},"defaults":{"type":"object"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0007","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.0007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5m9Vq6q5PWKyFantDpR-K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies default field values to an array of JSON records, filling in missing fields with specified defaults.","exampleAgentPrompt":"Take these 50 JSON user records and fill in any missing fields using these defaults: {country: 'US', currency: 'USD', active: true} — return the full normalized list.","exampleUseCases":[{"title":"Normalize incomplete product catalog","prompt":"I have a list of 200 product records from different suppliers and many are missing fields like 'currency', 'inStock', and 'region'. Apply these defaults — currency: 'USD', inStock: true, region: 'NA' — to any record that's missing them."},{"title":"Standardize user profile dataset","prompt":"Here are 300 user profile objects exported from our database. A lot of them are missing 'language' and 'timezone'. Fill those in with defaults of language: 'en' and timezone: 'UTC' for any record where those fields are absent."},{"title":"Backfill event log missing metadata","prompt":"I've got a batch of event log entries as JSON and about half are missing the 'source' and 'severity' fields. Set the default source to 'unknown' and default severity to 'info' for any records that don't already have those values."}],"resultDescription":"Returns an array of JSON objects where each record has been merged with the provided defaults object — any field present in defaults but absent in the original record is filled in. Records that already have a field set retain their original value. Optionally, only specified keys are returned and fields may be renamed according to the rename map.","failureModes":["Missing required 'records' field returns a validation error","Records array exceeding 500 items may be rejected or truncated","Malformed JSON in records array causes a parse error","Payment failure via x402 results in a 402 response before processing","Rename map with conflicting keys may produce undefined behavior","Empty records array returns an empty result set"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call solution to apply default values to a batch of JSON records without spinning up your own transformation logic. It is ideal for agents that need to normalize heterogeneous datasets on the fly, filling missing fields before downstream processing, at very low cost ($0.0007 USDC per call) using x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:16.076Z","isFirstParty":false,"canonicalSlug":"one-engine-record-defaults-transformer-t2-e8abd708"}