Skip to main content
GET
List an accessible repository's pull requests
See pagination and access rules for usage guidance.

What’s next

Read a pull request

Inspect the checks, review observations, and threads for a listed pull request.

List repositories

Find another accessible repository to browse.

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*$

Query Parameters

author
string
default:me

me means the linked GitHub account; all means any author; otherwise supply a GitHub login.

Pattern: ^[A-Za-z0-9][A-Za-z0-9-]{0,38}(?:\[bot\])?$
state
enum<string>
default:open
Available options:
open,
closed,
merged,
all
head_branch
string

Exact source branch name. Combine with head_owner to distinguish forks; all matches remain visible.

Required string length: 1 - 255
Pattern: ^[^\s"\\]+$
head_owner
string

Owner login of the source repository, including a fork.

Pattern: ^[A-Za-z0-9][A-Za-z0-9-]{0,38}(?:\[bot\])?$
org_id
string

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

Minimum string length: 1
page_size
integer

Provider records scanned per page; defaults to 20. A short or empty page can have a continuation.

Required range: 1 <= x <= 100
page_token
string

Use next_page_token with the same principal, repository and filters. Expires after ten minutes.

Required string length: 1 - 4096

Response

OK

data
object[]
required
next_page_token
required
fetched_at
string
required
coverage
object
required
applied_filters
object
required