v2

latestOpenAPI 3.0.32026-07-261513102.9 KB
Learnings

List learnings for an organization

Programmatic access to an organization's CodeRabbit learnings. Returns paginated JSON or a CSV download. Enterprise plan only. Mirrors the auth, rate-limit and response-size contract of the Metrics public API.

get/v1/learnings

Query parameters

org_idstring

Workspace-scoped API tokens only. When provided, scopes learnings to that single git-provider organization within the token's workspace; when omitted, aggregates every organization in the workspace. Ignored for organization and self-hosted keys.

repository_idsstring
Example:1027529638,987654321

Comma-separated provider repository IDs (max 10).

user_idsstring
Example:87397876,12345678

Comma-separated provider user IDs (max 10).

organization_idsstring
Example:184456712,103539130

Comma-separated provider organization IDs (max 10). Self-hosted instances only.

limitinteger

Maximum number of records to return.

cursorstring

Pagination cursor returned as next_cursor on the previous page.

format'json' | 'csv'

Response format. json (default) returns paginated JSON; csv returns a CSV download.

Headers

x-coderabbitai-api-keystring required

API key for authentication

Response

Successfully retrieved learnings.

next_cursorstring nullable required