---
title: "List learnings for an organization"
method: GET
path: "/v1/learnings"
tags: ["Learnings"]
---

# List learnings for an organization

`GET /v1/learnings`

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.

## Query parameters

- `org_id` string
- `repository_ids` string
- `user_ids` string
- `organization_ids` string
- `limit` integer
- `cursor` string
- `format` 'json' | 'csv'

## Headers

- `x-coderabbitai-api-key` string, required

## Response `200`

Successfully retrieved learnings.

- object
  - `data` object[], required
    - `id` string, required — Unique identifier for the learning.
    - `learning` string, required
    - `organization_id` string, nullable — Git provider organization ID.
    - `organization_name` string, nullable
    - `repository_id` string, nullable — Git provider repository ID.
    - `repository_name` string, required
    - `author_id` string, nullable — Git provider user ID of the learning author.
    - `author_username` string, required
    - `file` string, nullable
    - `source_url` string, nullable — URL of the PR comment where the learning was captured.
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `usage_count` integer, required
    - `last_used_at` string, date-time, nullable
  - `next_cursor` string, nullable, required

## Other responses

- `400` — Bad request — invalid parameters or cursor.
- `401` — Unauthorized — invalid or inactive API key.
- `403` — Forbidden — Enterprise plan required or agentic key not allowed.
- `404` — Not found — self-hosted instance has no organizations matching the supplied `organization_ids`. Returned only for self-hosted callers when scope resolution narrows to an empty set.
- `413` — Response exceeds 16 MB. Add filters or reduce `limit`.
- `429` — Rate limit exceeded.
- `500` — Internal server error.

---

[API](https://skmtc.net/coderabbit/apis/coderabbit-api-spec.md) · [All operations](https://skmtc.net/coderabbit/apis/coderabbit-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coderabbit/coderabbit-api-spec/versions/401789d85d01/schema)
