{"uid":"cap_fRhSZWl80xI6chcsxrEs-","slug":"brainiac-response-normalize-api-696024a8","name":"BRAINIAC Response Normalize API","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/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":{},"before":{},"schema":{},"source":{},"target":{},"example":{},"payload":{},"examples":{"type":"array","items":{},"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":{}},"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_XoVOwhayrzjCLIT96GQGL","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, and validates JSON API request/response payloads by applying structural operations like rename, cast, pick, omit, and schema compliance checks.","exampleAgentPrompt":"Take this JSON response from our payment API and normalize it — rename the field 'usr_id' to 'userId', omit 'internal_debug', cast 'amount' to a number, and validate it against this schema: {\"type\":\"object\",\"required\":[\"userId\",\"amount\"]}. Return the cleaned result and list what changed.","exampleUseCases":[{"title":"API version migration cleanup","prompt":"I'm upgrading from v1 to v2 of our orders API and the response field names have changed — can you normalize this JSON payload by renaming 'order_id' to 'orderId', 'cust_name' to 'customerName', and omitting the deprecated 'legacy_ref' field?"},{"title":"Schema compliance check before forwarding","prompt":"Before I forward this vendor API response to our system, can you validate it against this JSON schema and tell me which fields are missing or the wrong type? Here's the payload and the schema I need it to conform to."},{"title":"Sanitize and standardize inbound webhook","prompt":"We receive webhook payloads from three different providers in slightly different formats. Can you normalize this one — trim whitespace from string fields, sort the keys alphabetically, and pick only the fields: 'event', 'timestamp', 'userId', and 'amount'?"}],"resultDescription":"Returns a normalized JSON object (result), a list of changes applied (path, rule, original, normalized values), issue list, schema compliance flag, change count, and metadata flags confirming no external calls or invented values were made.","failureModes":["Invalid base64 encoding in file input returns a parsing error","JSON payload exceeding 200,000 character limit is rejected","Unsupported operation type in operations array causes validation failure","Schema keyword not supported (only type, properties, required, additionalProperties, items, enum, const, length, range, email/date/date-time formats) — unsupported keywords are reported but not applied","Field mapping proposed only when path or field name matches one field on each side — ambiguous mappings may be omitted","Payment not received or insufficient USDC balance returns 402 response"],"whenToPreferThis":"Choose this endpoint when you need to programmatically normalize, reshape, or validate a JSON payload without executing user code or making external calls. It is especially useful for API integration pipelines where field names, types, or structures differ between providers. Prefer it over generic LLM transformation when you need deterministic, auditable change logs and schema compliance guarantees.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T18:39:41.564Z","isFirstParty":false,"canonicalSlug":"brainiac-response-normalize-api-696024a8"}