Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Skip to main content
🐰 New: Triage — a self-updating cross-repository queue that prioritizes pull requests by value and risk, so you always know what to review next. Now in beta! Explore Triage →
CodeRabbit API
Authenticate with the CodeRabbit API and find endpoints for organizations, repositories, metrics, learnings, users, roles, audit logs, and AI Deep Scan findings.
The CodeRabbit API provides programmatic access to review data, AI Deep Scan findings, and administrative operations. Use it to discover organizations and repositories, retrieve metrics and learnings, manage users and roles, or export audit logs and security findings.
The data and operations available to a request depend on the key’s scope:
Base URL and authentication
Send API requests tohttps://api.coderabbit.ai. Authenticate with the x-coderabbitai-api-key header:
curl "https://api.coderabbit.ai/v1/users" \
-H "x-coderabbitai-api-key: $CODERABBIT_API_KEY"
- Organization-scoped API keys are bound to one CodeRabbit organization.
- Workspace API tokens let Enterprise SSO workspace admins call supported endpoints across organizations in a workspace.
- Self-hosted instance API keys operate within a self-hosted CodeRabbit instance.
Explore the API
Workspace API tokens
Create a workspace-scoped token and review its endpoint-specific request requirements.
Organizations and repositories
Discover active organizations and the repositories available within each organization.
Metrics and learnings
Retrieve pull request metrics and CodeRabbit learnings for reporting or analysis.
AI Deep Scan findings
Retrieve and export AI Deep Scan code findings for external security workflows.
Users and seats
List users, manage seats, and configure seat assignment.
Roles
List, create, update, and assign roles.
Audit logs
Export administrative activity for security and compliance workflows.
What’s next
Create a workspace API token
Set up one token for supported APIs across an Enterprise SSO workspace.
Open the API reference
Review endpoint parameters, request bodies, and response schemas.
Was this page helpful?
