{"uid":"cap_p3mp4Zv7EGkWLHXb-i6CV","slug":"one-engine-records-defaults-transformer-t1-89886c8b","name":"ONE Engine Records Defaults Transformer (T1)","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/t1?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.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XZVVxYMdhicB2KBTosLdq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","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 a batch of up to 500 JSON records, optionally filtering keys and renaming fields.","exampleAgentPrompt":"I have 200 JSON records where some fields like 'status' and 'priority' are missing — can you apply defaults of status='pending' and priority=1 to all of them, and also rename the 'uid' field to 'id'?","exampleUseCases":[{"title":"Normalize agent-generated task records","prompt":"I have a batch of 150 task records my agent produced, but many are missing 'assignee' and 'due_date' fields — please apply defaults of assignee='unassigned' and due_date='2025-12-31' to all of them."},{"title":"Rename and filter data pipeline fields","prompt":"I have 300 JSON records from our pipeline with inconsistent field names — rename 'usr' to 'user' and 'ts' to 'timestamp', and only keep the keys 'user', 'timestamp', and 'event' in the output."},{"title":"Backfill missing config values in bulk","prompt":"Here are 80 configuration objects where 'region' and 'env' are often missing — fill them in with defaults of region='us-east-1' and env='production' wherever they're absent."}],"resultDescription":"Returns an array of transformed JSON objects with default values merged into records where fields were absent, keys filtered to only those requested, and field names renamed according to the provided map. The response is an object containing the processed records.","failureModes":["Exceeding 500 records limit returns an error","Malformed JSON in the records array causes a 400-level error","Missing required 'records' field returns a validation error","Payment failure via x402 returns a 402 Payment Required response","Invalid rename map (non-object) causes schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-per-call batch transformation of JSON records — specifically for applying defaults, renaming fields, or filtering keys across up to 500 objects in a single call. It is ideal for autonomous agent pipelines on Base where micro-payments via x402 are acceptable and you want a lightweight utility without standing up your own data processing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:15.766Z","isFirstParty":false,"canonicalSlug":"one-engine-records-defaults-transformer-t1-89886c8b"}