{"uid":"cap_K7UPcXwwloi27hLDDEWmt","slug":"brainiac-error-propagation-audit-api-d199293d","name":"BRAINIAC Error Propagation Audit 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/code/error-propagation-audit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"object","required":["path","source"],"properties":{"path":{"type":"string","maxLength":260,"minLength":1},"source":{"type":"string","maxLength":100000,"minLength":1},"language":{"enum":["javascript","typescript","python","go","other"],"type":"string"}},"additionalProperties":false},"maxItems":200,"minItems":1}}},"responseSchema":{"type":"json","example":{"summary":{"files":1,"findings":2},"findings":[{"code":"empty_catch","line":4,"path":"svc.ts","evidence":["svc.ts:4 has an empty catch block."],"severity":"high","remediation":"Log, wrap, or rethrow the error; do not swallow it silently."},{"code":"swallowed_promise_rejection","line":5,"path":"svc.ts","evidence":["svc.ts:5 attaches a no-op promise catch."],"severity":"high","remediation":"Propagate or handle the rejection with a real error path."}],"explanations":["Error-propagation findings are textual pattern matches. The code is not compiled, executed, or symbolically interpreted.","Absence of a finding is not proof that error handling is complete."]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_A2lT9J0_upvP-Wz5HHkbY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Statically analyzes source code files to detect error-propagation anti-patterns such as empty catch blocks and swallowed promise rejections","exampleAgentPrompt":"Can you audit these TypeScript files for error-propagation issues — specifically look for empty catch blocks, swallowed promise rejections, or any place where exceptions are being silently ignored, and tell me the severity and how to fix each one?","exampleUseCases":[{"title":"Pre-merge error handling review","prompt":"Before I merge this PR, can you scan these three TypeScript service files for any empty catch blocks or swallowed promise rejections and flag anything high severity?"},{"title":"Onboarding audit of legacy codebase","prompt":"I just inherited this Python backend — can you check these files for places where errors are being silently swallowed or ignored so I know what to fix first?"},{"title":"CI pipeline code quality gate","prompt":"Run an error-propagation audit on these Go source files and tell me if there are any high-severity findings that would block a production release."}],"resultDescription":"Returns a JSON object containing a summary (file count, total findings), an array of findings each with a code (e.g. 'empty_catch'), file path, line number, evidence snippets, severity level, and remediation advice, plus explanatory caveats about the analysis method (textual pattern matching, not execution).","failureModes":["Files array is empty or missing — returns validation error","Individual file source exceeds 100,000 character limit — rejected","More than 200 files submitted — request rejected","Unsupported language enum value — validation error","Network or payment failure via x402 — HTTP 402 or timeout","Pattern matcher may produce false positives or miss complex multi-file error propagation chains"],"whenToPreferThis":"Choose this endpoint when you need a fast, pay-per-call, accountless static audit of error-handling patterns across JavaScript, TypeScript, Python, or Go files. It is ideal for CI pipeline gates, pre-merge reviews, or legacy code triage where you want line-level findings with severity and remediation hints without setting up a full SAST tool. It is not a compiler or symbolic executor, so prefer a full static analysis suite if you need data-flow analysis or cross-file propagation tracking.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-14T18:35:25.069Z","isFirstParty":false,"canonicalSlug":"brainiac-error-propagation-audit-api-d199293d"}