Skip to main content
GET
List learnings for an organization
To install and sign in to the CLI, see Call from the CLI.
A CSV response is a single page of up to limit rows, with no cursor, so use JSON when you expect more rows than limit. See List and export organization Learnings.

Authorizations

x-coderabbitai-api-key
string
header
required

See Authentication for the key types and where to create a key.

Query Parameters

org_name
string

GitHub organization login for a workspace API key, matched case-insensitively within that workspace. Supply either org_name or org_id, never both; omit for an organization-bound key.

Pattern: ^[A-Za-z0-9][A-Za-z0-9-]{0,38}$
org_id
string

Workspace-scoped API tokens only. Supply this git-provider organization ID or org_name, never both, to scope learnings to one organization. When both selectors are omitted, aggregates every organization in the workspace. This org_id parameter is ignored for organization and self-hosted keys.

repository_ids
string

Comma-separated provider repository IDs (max 10).

Example:

"1027529638,987654321"

user_ids
string

Comma-separated provider user IDs (max 10).

Example:

"87397876,12345678"

Case-insensitive substring search over learning text.

file_paths
string

Comma-separated exact file paths (max 10).

Example:

"src/api.ts,src/auth.ts"

stat_filter
enum<string>
default:total

Filter by recent usage, zero usage, or creation in the last seven days.

Available options:
total,
active,
never_used,
created_this_week
organization_ids
string

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

Example:

"184456712,103539130"

limit
integer
default:1000

Maximum number of records to return.

Required range: 1 <= x <= 1000
cursor
string

Pagination cursor returned as next_cursor on the previous page.

format
enum<string>
default:json

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

Available options:
json,
csv

Response

Successfully retrieved learnings.

data
object[]
required
next_cursor
string | null
required