{"uid":"cap_N-lRBHJsG0QFc3mqmu-ZL","slug":"brainiac-api-integration-response-normalize-8cf1b6ab","name":"BRAINIAC API Integration Response Normalize","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/response-normalize?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":{"a":1,"b":"x"},"status":"normalized","changes":[{"path":"/","rule":"sort_keys","original":"b,a","normalized":"a,b"},{"path":"/b","rule":"trim","original":"\" x \"","normalized":"\"x\""}],"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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LwbPmQPdtik06_LpPFXuu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes, transforms, validates, and maps API request/response payloads between formats and versions","exampleAgentPrompt":"Normalize this API response JSON for me — sort the keys, trim whitespace from string values, and tell me what changed: {\"b\": \" x \", \"a\": 1}","exampleUseCases":[{"title":"Adapt payload to new API version","prompt":"I'm upgrading from v1 to v2 of our payments API. Take this response JSON and transform it to match the v2 schema — rename 'user_id' to 'userId' and cast 'amount' from string to number."},{"title":"Validate request body against schema","prompt":"Can you check this API request payload against our OpenAPI schema and tell me if there are any issues? The side is 'request' and I want to know about any missing required fields or type mismatches."},{"title":"Strip and reshape API response for downstream service","prompt":"I need to clean up this API response before sending it to our analytics pipeline — please pick only the fields 'id', 'createdAt', and 'status', sort the keys, and trim any string whitespace."}],"resultDescription":"Returns a normalized JSON result object containing: the transformed payload under 'result', a 'status' field ('normalized'), a 'changes' array listing each transformation applied with path, rule, original and normalized values, an 'issues' array for validation problems, counts of changes, timestamps, and boolean flags (codeExecuted, externalCall, valuesInvented, schemaCompliance) confirming no external calls or invented values were used.","failureModes":["Invalid or malformed JSON input returns validation error","Base64-encoded file exceeds 12MB limit — rejected","Unsupported mediaType for file input — only application/json and text/plain accepted","Unrecognized JSON Schema keywords reported but not applied — partial validation coverage","Field mapping proposals only generated when path or field name matches — ambiguous fields may not be mapped","'side' field required for breaking/non-breaking labels — omitting it skips that classification","Payload or file JSON too large (>200,000 chars for json field) — rejected"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically clean, reshape, validate, or migrate a JSON API payload without executing any user code or making external calls. It is especially useful when bridging two API versions, enforcing schema compliance, or preparing a payload for a downstream service that expects a specific field structure. It is not suitable for transformations requiring custom logic, external data lookups, or formats other than JSON/plain text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:37:07.147Z","isFirstParty":false,"canonicalSlug":"brainiac-api-integration-response-normalize-8cf1b6ab"}