{"uid":"cap_CS1KruKRBZRPJr8DTlj9o","slug":"brainiac-contract-compare-509bd55a","name":"BRAINIAC Contract Compare","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/contract-compare?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":{"side":"response","issues":[],"status":"compared","changes":[{"code":"required_added","path":"/total","after":"total","before":"","detail":"This property is newly required.","effect":"breaking"},{"code":"type_changed","path":"/total","after":"integer","before":"number","detail":"The type allows fewer values.","effect":"breaking"}],"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."],"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_RHHs2QfiiH8GIpVdZKUL1","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":"Compares two JSON schemas or payloads to detect breaking and non-breaking changes, type mismatches, and required-field shifts","exampleAgentPrompt":"Compare these two JSON schemas and tell me which changes are breaking — the old schema has 'total' as a number, the new one makes it a required integer. Treat it as the response side.","exampleUseCases":[{"title":"API version upgrade compatibility check","prompt":"I'm upgrading my payments API from v2 to v3. Here's the old response schema and the new one — can you compare them and list all breaking changes so I know what clients will break?"},{"title":"New required field impact assessment","prompt":"My team just made the 'email' field required in our user registration request schema. Compare the before and after schemas and tell me if that's a breaking change for existing callers."},{"title":"Type change detection before deployment","prompt":"Before I deploy, can you diff my old and new order payload schemas? I changed the 'amount' field from string to number and I need to know if that's breaking on the response side."}],"resultDescription":"Returns a structured JSON object with a 'changes' array where each entry includes a code (e.g. 'required_added', 'type_changed'), the field path, before/after values, a human-readable detail, and an 'effect' label ('breaking' or 'non-breaking'). Also includes metadata flags: codeExecuted, externalCall, valuesInvented, schemaCompliance, and a limitations list explaining what the engine covers.","failureModes":["Malformed or invalid JSON in schema input returns a parse error","Schemas exceeding the 200,000 character limit are rejected","Unsupported JSON Schema keywords (beyond type, properties, required, additionalProperties, items, enum, const, length, range, email/date/date-time formats) are reported but not applied","Field mapping suggestions are only generated when path or field name matches — ambiguous renames may not be detected","Breaking/non-breaking labels are only returned when 'side' is explicitly set to 'request' or 'response'","File uploads exceeding 12MB base64 are rejected"],"whenToPreferThis":"Choose this endpoint when you need a structured, machine-readable diff of two JSON schemas with explicit breaking-change classification — especially in CI/CD pipelines, pre-deployment checks, or agent workflows that need to gate on API compatibility. It is preferable to manual diffing or generic JSON diff tools because it understands JSON Schema semantics and labels effects. It operates fully offline (no external calls, no code execution), making it safe and deterministic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:37:01.156Z","isFirstParty":false,"canonicalSlug":"brainiac-contract-compare-509bd55a"}