Send a diff, get an expert code review in seconds. Find bugs, security issues, and get actionable suggestions — powered by AI.
Try It Free See GitHub IntegrationSign up for free and get 10 reviews per hour instantly. No credit card required.
POST your unified diff to our API. Works with any language, any git platform.
Receive structured JSON: score, issues by severity, security concerns, and suggestions.
Install once, auto-review every pull request. Your team's AI reviewer that never sleeps.
# Review a diff with curl
curl -X POST https://codereview-production-8ad6.up.railway.app/v1/review \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"diff": "--- a/app.py\n+++ b/app.py\n@@ -1,3 +1,4 @@\n+import os\n password = \"hardcoded123\"",
"language": "python"
}'
# Batch review — multiple files in one request
curl -X POST https://codereview-production-8ad6.up.railway.app/v1/review/batch \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"diffs": [
{"file": "auth.py", "diff": "...", "language": "python"},
{"file": "routes.js", "diff": "...", "language": "javascript"}
]
}'
# Response
{
"review": {
"summary": "Critical security issue: hardcoded password found.",
"score": 2,
"issues": [{
"severity": "critical",
"file": "app.py",
"line": "2",
"description": "Hardcoded password in source code",
"suggestion": "Use environment variables: password = os.environ['DB_PASSWORD']"
}],
"security_concerns": ["Hardcoded credentials exposed in source"],
"positive_notes": ["Good that os module is imported for potential env var usage"]
},
"usage": {"input_tokens": 245, "output_tokens": 180},
"model": "claude-haiku-4-5-20251001"
}