Skip to main content
GET
List all comments in a pull-request review thread
This operation starts with internal qualification and must be enabled for your organization. Existing repository access checks still apply.
Use the thread’s id from a pull-request detail response, not an individual comment ID.

Continue through comments

Pass next_page_token as page_token with the same caller, selected organization, repository, PR, thread, page size and head precondition. Stop when the token is null; a page token for listing threads cannot be used here. Treat the collected pages as a live view, not a frozen snapshot; coverage.limitations describes the remaining limits. A fresh read with a different expected_head_sha reports head_changed: true. If the head changes during a read or between pages, restart without the token. Obtain a fresh token instead of reusing an expired or incompatible one.

CLI and MCP

Replace THREAD_ID with the URL-encoded returned thread ID:
Hosted MCP exposes list_pull_request_review_thread_comments with account:read and pull_requests:read consent. Both transports use the existing organization selection and authentication.

Authorizations

x-coderabbitai-api-key
string
header
required

API key for authentication. You can create an API key from the CodeRabbit dashboard.

Path Parameters

repository_id
string
required
Pattern: ^[1-9]\d*$
pull_request_number
integer
required
Required range: 0 < x <= 2147483647
thread_id
string
required

Opaque review thread ID returned by the pull-request detail; not an individual comment ID.

Minimum string length: 1

Query Parameters

org_id
string

Git-provider organization ID. Required for workspace keys; omit for organization keys.

Minimum string length: 1
expected_head_sha
string
Pattern: ^[a-f0-9]{40}$
page_size
integer
default:50
Required range: 1 <= x <= 100
page_token
string

Continue this thread with the same caller and page size. Expires after ten minutes. Comments remain live, not a historical snapshot.

Required string length: 1 - 4096

Response

OK

thread_id
string
required
data
object[]
required
next_page_token
required
head_sha
string
required
Pattern: ^[a-f0-9]{40}$
fetched_at
string
required
head_changed
boolean
required

Whether the observed head differs from expected_head_sha; not a review-completion signal.

coverage
object
required