Skip to main content
GET
List pull requests and review data
An organization admin can create a Review data (read only) key in Settings > API Keys. The key reads review data for the organization. The organization needs API access and advanced insights. To look up known pull or merge requests, repeat the URL parameter. Each matched request appears once, including reviewed requests with zero findings. Keep unmatched URLs in the source dataset when calculating coverage.
Finding counts describe the latest stored review for each PR and reflect later status changes for those findings. To measure coverage of the current revision, request expand=review and compare review.commit_sha with the current head SHA on the code host. For incremental syncs, pass an inclusive RFC 3339 updated_after timestamp, follow next_cursor with the same filters and upsert by id. Save the time the sync started after processing its last page so changes during pagination are picked up on the next sync.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

url
string[]

Match a PR or MR web URL. Repeat up to 100 times. Overrides collection filters.

repository
string[]

Full repository path. Repeat to select multiple repositories.

state
enum<string>
Available options:
open,
merged,
closed,
declined
merged_after
string<date-time>

Inclusive lower bound on merge time.

merged_before
string<date-time>

Exclusive upper bound on merge time.

updated_after
string<date-time>

Inclusive lower bound on changes to the resource.

expand
enum<string>[]

Related data to include. Repeat for both expansions.

Available options:
review,
functional_validation
limit
integer<int32>

Page size, default 50.

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

Continue with the opaque next_cursor from the previous page and the same filters.

Response

Pull request page

data
object[]
required
has_more
boolean
required
next_cursor
string | null