{"uid":"cap_UYY0wWf1bJTyKONwAKj4w","slug":"agentpay-code-review-20ffe2ad","name":"AgentPay Code Review","description":"Pay-per-call AI services via the 402 Payment Required protocol. No accounts, no API keys — just USDC on Base.","url":"https://agentpay.help/v1/code-review","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string","maxLength":4000,"minLength":10,"description":"Source code to review"},"language":{"type":"string","description":"Language hint, optional"}}},"responseSchema":{"type":"json","example":{"review":{"score":62,"issues":["off-by-one loop bound (i<=items.length)"],"suggestions":["use reduce with a guard for missing price"]},"language":"javascript"}},"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_xzUhWTe-ypbbBwsjq4cyv","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":"Performs an AI-powered code review returning a quality score, detected issues, and improvement suggestions for a submitted code snippet.","exampleAgentPrompt":"Can you review this Python function for me and tell me what score it gets, any bugs or issues, and how I could improve it? Just pay the small per-call fee — no account needed.","exampleUseCases":[{"title":"Pre-commit code quality gate","prompt":"Before I commit this JavaScript function, can you run a quick code review on it and tell me the quality score and any issues I should fix?"},{"title":"AI agent self-reviewing generated code","prompt":"I just generated this SQL query — can you review it for correctness, security issues, and suggest any improvements before I run it in production?"},{"title":"Junior developer learning tool","prompt":"Here's the Python class I wrote — can you review it, give it a score out of 100, and tell me specifically what I'm doing wrong and how to fix it?"}],"resultDescription":"Returns a JSON object containing a numeric quality score (0–100), an array of detected issues in the code, and an array of actionable suggestions for improvement.","failureModes":["Empty or missing code body returns validation error","Unsupported language may produce low-confidence or empty review","Payment failure (402) if USDC balance is insufficient or x402 header is malformed","Very large code submissions may time out or be truncated","Minified or obfuscated code may yield low-quality suggestions"],"whenToPreferThis":"Choose this endpoint when you need a fast, accountless, pay-per-use AI code review without committing to a SaaS subscription — ideal for agents that review code on demand, CI pipelines, or developer tools that need occasional code quality checks at minimal cost ($0.05 USDC per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:34:03.963Z","isFirstParty":false}