{"uid":"cap_xlBvqDmM7OQP-5uOUQmK5","slug":"brainiac-api-integration-diagnose-7d42038f","name":"BRAINIAC API Integration Diagnose","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/diagnose?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":{"order":"newer","issues":[{"code":"required_missing","kind":"missing","path":"/total","detail":"This required property is absent. No value was invented.","keyword":"required"}],"result":{"id":"ord_1"},"schema":{"type":"object","required":["orderId","total"],"properties":{"total":{"type":"integer"},"orderId":{"type":"string"}},"additionalProperties":true},"status":"diagnosed","changes":[{"path":"/id","rule":"rename","original":"","normalized":"\"ord_1\""}],"mappings":[{"match":"path","compatible":true,"sourcePath":"/","sourceType":"object","targetPath":"/","targetType":"object"},{"match":"path","compatible":true,"sourcePath":"/total","sourceType":"integer","targetPath":"/total","targetType":"integer"},{"match":"name","compatible":true,"sourcePath":"/orderId","sourceType":"string","targetPath":"/order_id","targetType":"string"}],"checkedAt":"2026-11-03T15:00:00.000Z","compatible":false,"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."],"transformed":true,"codeExecuted":false,"externalCall":false,"valuesCopied":false,"valuesInvented":false,"contractChanges":[{"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"}],"schemaGenerated":true,"schemaCompliance":false,"validationStatus":"invalid"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.12","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.12/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.12","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rF13Phe4r3cYmzZNl73-I","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.12","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates, diagnoses, and transforms JSON API payloads against a schema, detecting compatibility issues, field mappings, and contract changes between versions","exampleAgentPrompt":"Diagnose this API response body against its schema — the response side — and tell me if there are any missing required fields or type mismatches: the payload is {\"id\":\"ord_1\"} and the schema requires both orderId (string) and total (integer).","exampleUseCases":[{"title":"Catch breaking API contract changes","prompt":"I'm upgrading from v1 to v2 of a payments API. Here's the response body from v1 and the new v2 schema — can you check the response side for breaking changes like removed required fields or type changes?"},{"title":"Debug failing API integration","prompt":"My integration keeps rejecting this JSON response from a vendor. Can you validate it against this schema and tell me exactly which fields are missing or have wrong types so I can figure out what's broken?"},{"title":"Transform payload to match new schema","prompt":"I need to rename the field 'id' to 'orderId' and cast 'total' from a string to an integer in this JSON object — can you apply those operations and give me the transformed result?"}],"resultDescription":"Returns a diagnosis object containing: a list of validation issues (with code, kind, path, and detail), field mappings between source and target, applied schema transformations, contract change list with breaking/non-breaking labels, compatibility status, the normalized/transformed result, the inferred or applied schema, and metadata flags (codeExecuted, externalCall, valuesInvented, valuesCopied).","failureModes":["Invalid or malformed JSON input returns a parsing error","Schema references unsupported JSON Schema keywords — these are reported but not enforced","Field mapping proposed only when path or name matches one field on each side — complex mappings may be missed","Generated schema from examples only uses observed values; additionalProperties stays true","Breaking/non-breaking labels only returned when side is request or response — omitting side skips that analysis","Base64-encoded file payload exceeding 12MB limit returns size error","Enum or format constraints beyond (email, date, date-time) are reported but not validated"],"whenToPreferThis":"Use this endpoint when you need to validate, diagnose, or transform a JSON payload against a schema without spinning up external infrastructure or writing custom validation code. It is especially useful for detecting breaking API contract changes between versions, mapping fields across different schemas, or applying structural transforms (rename, copy, pick, omit, cast, default) to a payload. Prefer it over generic JSON validators when you also need field mapping analysis, transform operations, or contract change classification (breaking vs non-breaking).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:37:02.652Z","isFirstParty":false,"canonicalSlug":"brainiac-api-integration-diagnose-7d42038f"}