Skip to content

IntegrationsProduct Development

CodeRabbit API integration

Put CodeRabbit in your product or your AI agent. Truto handles the sign-in and the token refresh, and keeps the connection working after launch.

Elaichi

From the team behind Truto

Control plane for MCP servers

Put your team’s own apps to work in their AI. Connect an app once, and everyone’s AI can use it.

Works in

  • Each person’s AI gets exactly their access. Nothing more.
  • Share an app with your team, not a password.
  • Every call is checked and logged.

No credit card required · 1,150+ apps

01Proxy API

Call the CodeRabbit API directly. Every endpoint, through Truto.

Truto’s Proxy API is a 1-to-1 mapping of the CodeRabbit API. You call us, we call CodeRabbit, and pass the response back in the same cycle. Truto handles authentication and token refresh.

On every plan, including Free.

How the Proxy API works

Proxy APICodeRabbit

GEThttps://api.truto.one/proxy/users?integrated_account_id=…

  • GET/proxy/learnings
  • GET/proxy/roles
  • GET/proxy/organizations

CodeRabbit’s own response, passed back

02MCP server

CodeRabbit tools for any AI agent. Any MCP client, or the agent you build.

Whatever your agent runs on, it gets CodeRabbit tools for each customer’s account: through an MCP server, or straight from the tools API.

On every plan, including Free.

What an agent can doin CodeRabbit
  • UsersList
  • ReportCreate
  • Audit logsList
  • LearningsList, Update, Delete
  • Review commentsList
  • Review metricsList
  • Role permission optionsList
  • RolesList, Get one, Create, Update, Delete
  • Mcp metricsList
  • Security code findingsList
  • OrganizationsList
  • Organization repositoriesList
  • Seat assignment modeCreate
  • SeatsBulk assign, Bulk change roles
Show tool names21 tools, for developers
  • list_all_code_rabbit_usersList all users in the CodeRabbit organization, including seat and role assignments for each user. Returns: user_id, cr_user_id, username, email, seat_assigned, role, role_name, role_type, workspace_role, accounts.
  • code_rabbit_seats_bulk_assignBulk assign or unassign CodeRabbit seats for up to 500 users. Organization or self-hosted API keys send action (assign|unassign) with user_ids (provider user IDs); workspace API keys send members (by email or cr_user_id). Returns status (success|partial_success|failure) with per-user results.
  • code_rabbit_seats_bulk_change_rolesBulk change CodeRabbit roles for up to 500 users. Returns status (success|partial_success|failure) with per-user results. Required: role, user_ids.
  • create_a_code_rabbit_reportGenerate a report with CodeRabbit by invoking the report.generate operation. Returns the generated report payload with fields as defined by CodeRabbit's report.generate API; the JSON request body follows the same reference.
  • list_all_code_rabbit_audit_logsList CodeRabbit audit log entries. Returns: id, created_at, updated_at. Max 100 per page.
  • delete_a_code_rabbit_learning_by_idDelete a CodeRabbit learning by id; deletion is idempotent and also succeeds when the learning is already absent. Returns an empty 204 response on success. Required: id. Enterprise plan only.
  • list_all_code_rabbit_learningsList CodeRabbit learnings for an organization, filterable by repository, author, file path, and usage stats. Returns: id, learning, organization_id, organization_name, repository_id, repository_name, author_id, author_username, file, source_url, pull_request, created_at, updated_at, usage_count, last_used_at. Enterprise plan only.
  • update_a_code_rabbit_learning_by_idReplace the text of a CodeRabbit learning and refresh its search embedding. Enterprise plan and learning:write permission required. Returns the updated learning. Required: id, learning.
  • list_all_code_rabbit_review_commentsList CodeRabbit review comment metrics for merged pull requests, one record per pull request with the CodeRabbit comments posted on it. Returns: pr_url, organization_id, repository_id, author_id, merged_at, coderabbit_comments. Required: start_date, end_date.
  • list_all_code_rabbit_review_metricsList CodeRabbit PR review metrics for your organization over a date range. Returns per-pull-request records with pr_url, status, merged_at, review_iterations, estimated_review_minutes, and coderabbit_comments (posted vs accepted counts by severity and category). Required: start_date, end_date.
  • list_all_code_rabbit_role_permission_optionsList the valid resource_id and access_type values for creating or updating Enterprise custom roles in CodeRabbit. Returns: resource_ids, access_types. Required: org_id when authenticating with a workspace-scoped API token.
  • create_a_code_rabbit_roleCreate a custom role in CodeRabbit. Returns the created role including its id, name, role_type, and permissions. Required: name.
  • delete_a_code_rabbit_role_by_idDelete a custom role in CodeRabbit by id. Only Enterprise custom roles that are not assigned to any organization members can be deleted; system roles cannot. Returns an empty 204 response on success. Required: id.
  • get_single_code_rabbit_role_by_idGet details of a built-in or Enterprise custom role in CodeRabbit by id. Returns: id, name, resource_ids, access_types. Required: id.
  • list_all_code_rabbit_rolesList built-in and Enterprise custom roles for the authenticated CodeRabbit organization. Returns: id, name, role_type, permissions, user_count.
  • update_a_code_rabbit_role_by_idUpdate a custom role in CodeRabbit by id. Returns the updated role including its id, name, role_type, and permissions. Required: id.
  • list_all_code_rabbit_mcp_metricsList MCP server usage for merged, reviewed CodeRabbit pull requests in a UTC date window, one record per pull request with the MCP servers and tools used nested under servers. Join to review metrics on pr_url. Counts are best-effort telemetry and access depends on an organization feature flag. Required: start_date, end_date.
  • list_all_code_rabbit_security_code_findingsList CodeRabbit Deep Scan code findings for the repositories in scope, from each repository's latest completed scan unless scan_id is given. Defaults to open findings; filter with state, repo_id, org_id. Includes saved reachability evidence (call stacks) and explanations.
  • list_all_code_rabbit_organizationsList active CodeRabbit organizations. Organization API keys return their bound organization; workspace API keys return every active organization in the workspace. Use the returned id with the organization repositories tool. Enterprise plan only.
  • list_all_code_rabbit_organization_repositoriesList the repositories CodeRabbit records as active for an organization. organization_id is the CodeRabbit organization UUID returned by the list organizations tool. Enterprise plan only. Required: organization_id.
  • create_a_code_rabbit_seat_assignment_modeSet the organization's CodeRabbit seat assignment mode (automatic or manual). Only fully self-hosted organizations on the Enterprise plan can use this. Returns: mode. Required: mode.

AMCP serverno code

For any MCP client

One URL per connected CodeRabbit account. Paste it into Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or a custom agent.

Server URLhttps://api.truto.one/mcp/<token>

BTools APIfor developers

For the agent you build

One call returns every CodeRabbit tool for an account, with its description and JSON schema, ready for any LLM framework.

GEThttps://api.truto.one/integrated-account/<id>/tools

Tools come as JSON schema, so they plug into any agent framework.

  • Always up to date

    Tools are generated from curated documentation, not hand-coded. As the integration changes, the tools stay current.

  • You set the limits

    Scope each MCP server to read-only, write-only, specific methods or tagged tool groups. Expose only what the agent needs.

  • One customer each

    Each MCP server is scoped to one connected account with its own credentials. Nothing leaks across tenants.

  • Tools you can edit

    Tool descriptions and schemas are editable in your Truto account. A change updates at once, with no deploy.

  • Sign-in handled

    Tool calls run through Truto’s proxy layer, with OAuth refresh, rate-limit handling and normalized errors.

  • Access can expire

    Create time-limited servers for contractors or automated workflows. Optionally require a Truto API token as well.

How MCP servers work

03Unified API

Call CodeRabbit the same way as your other apps. One mapping to go.

A unified API gives every app in a category the same call and the same data shape. CodeRabbit is not in one yet. Build your own model, or ask us.

CodeRabbiton Truto
  1. Sign-in and tokensTruto handles themReady
  2. Proxy APIWorks today, on FreeReady
  3. Unified APIOne mapping to goTo do

Then: one call for every app

  • Path 1 Self-serve

    Build your own model

    • Mapping editor, with version history
    • Live for every connected account
    • No deploy

    Start free

  • Path 2 We do it

    Ask Truto

    • Tell us the CodeRabbit data you need
    • We add the mapping

    Talk to us

  • Price Add-on

    $499 a month, in Pro

    • 30-day trial on Free
    • Every unified API and your own unified models: Pro add-on

    See pricing

04Sync and webhooks

Sync CodeRabbit data on a schedule. Sent to your webhook.

A sync job reads CodeRabbit records on a schedule and sends each page to your webhook or your datastore. Signed webhooks tell you when an account connects or needs to sign in again.

On every plan, including Free.

05Custom actions

Add any CodeRabbit endpoint. With the Truto CLI.

Need a CodeRabbit endpoint or method that is not here yet? Add it with the Truto CLI and your coding agent, or call any CodeRabbit path through the Custom API.

On every plan, including Free. Truto CLI

For your own AI tools

Use CodeRabbit in ChatGPT, Claude or Cursor with Elaichi.

Truto puts CodeRabbit in the product you build. To use CodeRabbit yourself, in the AI your team already has, we recommend Elaichi.

For your product

Ship CodeRabbit tools in your product

Give the AI in your product access to each customer’s own CodeRabbit account, with one MCP server per connected account.

Start free with CodeRabbit

Rather talk it through? Book a demo

Elaichi

For your own team

Use CodeRabbit in your own AI

Connect your company’s CodeRabbit once, then ask in the AI you already use, with exactly your own access.

Works in

CodeRabbit on Elaichi

From the team behind Truto · 14-day free trial

Use cases

Why integrate with CodeRabbit.

  1. Embed AI code review analytics in engineering management platforms

    EMPs can pull CodeRabbit review metrics and comments to show VPs of Engineering exactly how much review time AI saved and how often developers accept AI-suggested fixes. This turns CodeRabbit telemetry into first-class ROI dashboards alongside Jira and Git data.

  2. Sync internal documentation into CodeRabbit Learnings

    Developer portals and knowledge bases can push architectural decisions and coding standards into CodeRabbit's Learnings so the AI reviewer enforces the latest guidelines on every PR. Static documentation becomes active, enforced code gates.

  3. Unify AI security findings in ASPM dashboards

    ASPM and vulnerability management products can ingest CodeRabbit's Deep Scan findings — including reachability evidence — to correlate AI-detected code vulnerabilities with cloud and SAST risks. Security teams get one view across code and infrastructure.

  4. Automate CodeRabbit seat provisioning from IdP/HRIS

    Identity and lifecycle platforms can bulk-assign CodeRabbit seats and apply custom roles the moment an engineer is hired or changes teams. This prevents license overages and ensures RBAC stays aligned with HR source-of-truth.

  5. Surface MCP usage and audit trails in compliance tooling

    GRC and audit platforms can pull CodeRabbit audit logs and MCP metrics to prove which tools the AI reviewer invoked on each merged PR. This gives compliance teams a defensible trail for AI-assisted code changes.

What you can build

Ship these with Truto and CodeRabbit.

  • AI review ROI dashboard

    Visualize estimated review minutes saved, review iterations, and accepted vs. posted AI comments by severity and category per team.

  • Learnings sync engine

    Push updates from your docs or wiki into CodeRabbit Learnings via create, update, and delete operations so AI reviews always reflect current standards.

  • Deep Scan vulnerability importer

    Pull CodeRabbit security code findings with reachability evidence into your ASPM to triage AI-detected vulnerabilities alongside SAST and DAST results.

  • Zero-touch seat lifecycle automation

    Bulk-assign and reassign seats and roles from your IdP or HRIS using provider user IDs or emails, including a configurable seat assignment mode.

  • Custom role provisioning

    Programmatically create and update CodeRabbit roles with granular resource IDs and access types to mirror your customer's RBAC model.

  • Compliance audit log stream

    Continuously ingest CodeRabbit audit logs and MCP metrics into your SIEM or GRC product to track reviewer actions and tool invocations on merged PRs.

Security

Your customers’ CodeRabbit data stays theirs. Truto passes it through.

  • Records pass through

    Customer records are not kept. Truto fetches them when your product asks and passes them on.

  • Truto managed OAuth apps or yours

    Where an app signs in with OAuth, use Truto’s OAuth apps or your own, on every plan. Each customer’s login is kept encrypted (AES-256) while connected.

  • SOC 2 · TYPE IIAUDITEDISO/IEC 27001CERTIFIEDGDPRHIPAACASA · TIER 2TAC SECURITY

    Audited and certified

    SOC 2 Type II, ISO 27001, GDPR and HIPAA. CASA Tier 2, verified by TAC Security. Trust Centre

How it works

From zero to integrated. Start free, no card.

  1. Link your customer’s CodeRabbit account

    Use Truto’s frontend SDK to connect your customer’s CodeRabbit account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

  2. We handle authentication

    Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

  3. Call our API, we call CodeRabbit

    Truto’s Proxy API is a 1-to-1 mapping of the CodeRabbit API. You call us, we call CodeRabbit, and pass the response back in the same cycle.

  4. Unified response format

    Every response follows a single format across all integrations. We translate CodeRabbit’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about CodeRabbit on Truto.

Which CodeRabbit resources can I access through Truto today?

Truto exposes tools for users, seats, roles, review comments, review metrics, security code findings, learnings, MCP metrics, organizations, organization repositories, reports, and audit logs. If you need an endpoint that isn't listed, Truto can add it on request.

How does authentication work for end users connecting their CodeRabbit account?

Truto handles the CodeRabbit API token exchange and secure credential storage for you, so your end users connect their account once and your product calls CodeRabbit through Truto without you managing secrets.

Can I bulk-manage CodeRabbit seats and roles from my product?

Yes. Truto supports bulk seat assignment, bulk role changes, creating and updating custom roles, listing role permission options, and configuring a seat assignment mode — ideal for IdP, HRIS, and lifecycle automation flows.

Can I programmatically update CodeRabbit Learnings to enforce new standards?

Yes. You can list, update, and delete Learnings via Truto. Updating a learning refreshes its embedding in CodeRabbit, so the next PR is reviewed against the new guidance automatically.

What review and security data can I pull for analytics?

You can list review metrics, review comments, MCP metrics, and security code findings — including the reachability evidence and AI-generated context that make CodeRabbit's Deep Scan findings uniquely actionable.

How do I keep data fresh — is there webhook support or do I poll?

The current CodeRabbit tool set is request/response based, so most integrations use scheduled polling of metrics, findings, and audit logs. Truto normalizes pagination and rate-limit handling so you can poll efficiently without writing CodeRabbit-specific logic.

CodeRabbit

Get CodeRabbit integrated into your app

Sign up free, connect a test CodeRabbit account and make your first call today. No card and no sales call.