Skip to main content
The CodeRabbit API provides programmatic access to review data and administrative operations. Use it to retrieve metrics and learnings, manage users and roles, or export audit logs.

Base URL and authentication

Send API requests to https://api.coderabbit.ai. Authenticate with the x-coderabbitai-api-key header:
The data and operations available to a request depend on the key’s scope:
  • 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.
Review each endpoint’s requirements before sending a request. Workspace API tokens have additional organization-scoping rules for some endpoints.

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.