{"uid":"cap_84_-guD-7jwHYsKAGcynl","slug":"brainiac-payload-transform-api-c915df22","name":"BRAINIAC Payload Transform API","description":"Pay-per-call APIs for software agents. No account. Pay the listed USDC amount on Base with x402, then receive the result.","url":"https://www.brainiac.software/api/v1/api-integration/payload-transform?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"file":{"type":"object","required":["mediaType","fileBase64"],"properties":{"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["application/json","text/plain"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000},"side":{"enum":["request","response"],"type":"string"},"after":{"$ref":"#/$defs/__schema0"},"before":{"$ref":"#/$defs/__schema0"},"schema":{"$ref":"#/$defs/__schema0"},"source":{"$ref":"#/$defs/__schema0"},"target":{"$ref":"#/$defs/__schema0"},"example":{"$ref":"#/$defs/__schema0"},"payload":{"$ref":"#/$defs/__schema0"},"examples":{"type":"array","items":{"$ref":"#/$defs/__schema0"},"maxItems":20},"toVersion":{"type":"string","maxLength":40,"minLength":1},"operations":{"type":"array","items":{"oneOf":[{"type":"object","required":["op","from","to"],"properties":{"op":{"type":"string","const":"rename"},"to":{"type":"string","maxLength":200,"minLength":1},"from":{"type":"string","maxLength":200,"minLength":1}},"additionalProperties":false},{"type":"object","required":["op","from","to"],"properties":{"op":{"type":"string","const":"copy"},"to":{"type":"string","maxLength":200,"minLength":1},"from":{"type":"string","maxLength":200,"minLength":1}},"additionalProperties":false},{"type":"object","required":["op","paths"],"properties":{"op":{"type":"string","const":"pick"},"paths":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":40,"minItems":1}},"additionalProperties":false},{"type":"object","required":["op","paths"],"properties":{"op":{"type":"string","const":"omit"},"paths":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":40,"minItems":1}},"additionalProperties":false},{"type":"object","required":["op","path","type"],"properties":{"op":{"type":"string","const":"cast"},"path":{"type":"string","maxLength":200,"minLength":1},"type":{"enum":["string","number","integer","boolean"],"type":"string"}},"additionalProperties":false},{"type":"object","required":["op","path","value"],"properties":{"op":{"type":"string","const":"default"},"path":{"type":"string","maxLength":200,"minLength":1},"value":{"$ref":"#/$defs/__schema0"}},"additionalProperties":false}]},"maxItems":40},"fromVersion":{"type":"string","maxLength":40,"minLength":1}}},"responseSchema":{"type":"json","example":{"issues":[],"result":{"id":"ord_1","email":"Ada@example.com","status":"open"},"status":"transformed","changes":[{"path":"/id","rule":"rename","original":"","normalized":"\"ord_1\""},{"path":"/status","rule":"default","original":"","normalized":"\"open\""}],"checkedAt":"2026-11-03T15:00:00.000Z","limitations":["No external API is called and no user-supplied code is executed.","Validation covers type, properties, required, additionalProperties, items, enum, const, length, range, and the formats email, date, and date-time. Other JSON Schema keywords are reported and not applied.","A generated schema uses only values present in the supplied examples. additionalProperties stays true.","A field mapping is proposed only when the path matches or the field name matches one field on each side.","Breaking and non-breaking labels are returned only when side is request or response.","Transforms are rename, copy, pick, omit, cast, and default. A default is written only when the path is absent."],"changedCount":2,"codeExecuted":false,"externalCall":false,"valuesInvented":false,"schemaCompliance":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vXRaYbIGcFlWFLX54e3S0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Transforms, validates, and migrates JSON payloads by applying field rename, copy, pick, omit, cast, and default operations, with schema compliance checking and change tracking.","exampleAgentPrompt":"Take this JSON payload {\"order_id\":\"ord_1\",\"user_email\":\"Ada@example.com\"} and rename order_id to id, then validate it against my target schema — tell me what changed and whether it's compliant.","exampleUseCases":[{"title":"Migrate API request to new version","prompt":"I need to transform this API request payload to match the v2 schema — rename customerId to customer_id, omit the legacy_ref field, and cast the amount field to a number. Here's the payload: {\"customerId\":\"abc\",\"amount\":\"9.99\",\"legacy_ref\":\"x\"}"},{"title":"Pick and clean fields from API response","prompt":"Strip this API response down to only the fields id, status, and email, and set status to 'pending' if it's missing. The payload is: {\"id\":\"u_42\",\"status\":null,\"email\":\"bob@example.com\",\"internal_debug\":true,\"raw_data\":{}}"},{"title":"Validate payload against schema before sending","prompt":"Check whether this JSON request body is valid against my schema and tell me what issues exist and what would need to change to make it compliant — here's the payload and my schema."}],"resultDescription":"Returns a transformed JSON result object with the applied changes, a list of change records (each with path, rule, original and normalized values), a count of changed fields, any validation issues, schema compliance status, and noted limitations about what the transform engine does and does not support. Meta-fields confirm no external calls or code execution occurred.","failureModes":["Invalid base64 encoding for file input","Payload or JSON string exceeds size limits (200KB for JSON string, ~12MB for file)","Unsupported mediaType for file upload","More than 20 items in examples array or more than 40 paths in pick/omit","Malformed operation definition (missing required op fields)","Ambiguous field mapping when source and target schema have multiple matching fields","JSON Schema keywords outside supported set (type, properties, required, additionalProperties, items, enum, const, length, range, email/date/date-time formats) are reported but not applied","Payment failure via x402 if insufficient USDC balance on Base"],"whenToPreferThis":"Choose this endpoint when you need to programmatically transform, rename, reshape, or validate a JSON payload without executing user-supplied code or calling external APIs — especially for API integration tasks like field mapping between schemas, version migrations, or payload cleanup. Ideal for agents handling API glue logic, data normalization, or schema compliance checks in a sandboxed, auditable way. Prefer over custom code when you need a traceable change log and schema compliance report.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:37:13.423Z","isFirstParty":false,"canonicalSlug":"brainiac-payload-transform-api-c915df22"}