Base URL and authentication
Send API requests tohttps://api.coderabbit.ai. Authenticate with the x-coderabbitai-api-key header:
- 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.
Metrics and learnings
Retrieve pull request metrics and CodeRabbit learnings for reporting or analysis.
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.