Skip to main content
GET
List all comments in a pull-request review thread
To install and sign in to the CLI, see Call from the CLI.

Authorizations

x-coderabbitai-api-key
string
header
required

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

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

Organization for a workspace key: the Git-provider organization ID (scope.provider_organization_id) or the CodeRabbit organization ID (scope.id, or id from list organizations). Supply either org_id or org_name, never both. Omit for organization keys and MCP connections.

Minimum string length: 1
org_name
string

GitHub organization login, such as coderabbitai, not its display name. Matched case-insensitively within the authenticated workspace. Supply either org_name or org_id, never both; omit for organization keys and MCP connections.

Pattern: ^[A-Za-z0-9][A-Za-z0-9-]{0,38}$
expected_head_sha
string
Pattern: ^[a-f0-9]{40}$
limit
integer
default:50
Required range: 1 <= x <= 100
cursor
string

Continue this thread with the same caller and limit. 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_cursor
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