BreakpointAI REST API v1. All endpoints require an API key.
Include your API key in every request using one of these methods:
# Header (recommended) Authorization: Bearer bp_your_key_here # Alternative header X-API-Key: bp_your_key_here # Query parameter ?api_key=bp_your_key_here
/api/v1/keysCreate a new API key. No authentication required.
curl -X POST https://breakpointai.avipilcer.com/api/v1/keys \
-H "Content-Type: application/json" \
-d '{"tier": "free"}'
# Response:
{
"apiKey": "bp_abc123...",
"tier": "free",
"message": "Save this key securely.",
"usage": { "analysisLimit": 5, "period": "month" }
}/api/v1/analyze/diffSubmit a unified diff for semantic regression analysis.
| Field | Type | Required | Description |
|---|---|---|---|
| diff | string | Yes | Unified diff (git diff output) |
| filename | string | No | Source filename for language detection |
| context | string | No | Surrounding code for enhanced analysis |
curl -X POST https://breakpointai.avipilcer.com/api/v1/analyze/diff \
-H "Authorization: Bearer bp_your_key" \
-H "Content-Type: application/json" \
-d '{
"diff": "--- a/auth.ts\n+++ b/auth.ts\n@@ -1,5 +1,3 @@...",
"filename": "auth.ts"
}'
# Response:
{
"analysisId": "bp_abc123",
"summary": {
"totalIssues": 3,
"critical": 1,
"high": 1,
"medium": 1,
"low": 0,
"regressionScore": 48,
"verdict": "warn"
},
"issues": [...],
"functionsChanged": [...],
"generatedTests": [...]
}/api/v1/analyze/generate-testsGenerate test cases for changed functions in a diff.
curl -X POST https://breakpointai.avipilcer.com/api/v1/analyze/generate-tests \
-H "Authorization: Bearer bp_your_key" \
-H "Content-Type: application/json" \
-d '{"diff": "...", "filename": "auth.ts"}'/api/v1/reportsList your recent analysis reports.
/api/v1/usageCheck your current API usage and limits.
/api/v1/webhooks/githubConfigure as a GitHub webhook to automatically analyze PRs. Set content type to application/json and trigger on pull_request events.
| Plan | Analyses/month | Price |
|---|---|---|
| Free | 5 | $0 |
| Starter | 50 | $99/mo |
| Pro | 500 | $299/mo |
Questions? Email avi@ultradeep.tech