NEURAL API REFERENCE
Interact with GitRabbit programmatically using our REST and GraphQL APIs.
GitRabbit provides a comprehensive API surface to query review histories, update custom rules, check codebase health metrics, and trigger audits programmatically. All requests require a Bearer token in the Authorization header.
Key_Capabilities
API Authentication
Access the API securely using personal developer tokens or organization tokens.
Rate Limiting & Safety
Generous rate limits of 10,000 requests/hour per organization with secure CORS rules.
Webhooks Integration
Listen for real-time review completions, security notifications, or team changes.
Setup_Sequence
Generate API Token
Go to the Settings page in the GitRabbit web console and generate a new Developer Token.
Authorize Request
Include the API token as a Bearer token in the 'Authorization' header of your HTTP request.
Query Endpoint
Make a request to any of our API endpoints (e.g. '/v1/reviews').
Code_Example
// Request
GET https://api.gitrabbit.com/v1/reviews/health-score?repo=frontend-app
Headers:
Authorization: Bearer gr_dev_token_xyz
// Response
{
"status": "success",
"data": {
"repository": "frontend-app",
"score": "A-",
"issues_count": {
"critical": 0,
"high": 2,
"medium": 15,
"low": 42
},
"scanned_at": "2026-08-04T10:00:00Z"
}
}Pro_Tips
- ✦Keep your API tokens safe and rotate them regularly in settings.
- ✦Check our OpenAPI specification (swagger.json) in the dashboard for the complete endpoint schema definitions.