Skip to main content
GET
List pull request analytics
Use a personal Analytics API key that starts with cak_. The organization must be on Pro. Members API keys that start with cbk_ cannot authenticate this endpoint. See the Analytics API guide for key setup, date windows, pagination, and how to interpret the metrics.

Authorizations

Authorization
string
header
required

Personal Analytics API key from Settings > Integrations > cubic API. Starts with cak_. Requires Pro. A cbk_ Members API key does not work here.

Query Parameters

org
string
required

GitHub organization or owner whose pull request analytics you want to fetch. Surrounding whitespace is trimmed before validation.

Required string length: 1 - 255
repo
string

Filter to one repository under the selected owner. Surrounding whitespace is trimmed before validation; blank values are ignored.

Maximum string length: 255
startDate
string

Start of the review date window. Accepts ISO 8601 timestamps or UTC date-only values such as 2026-04-01. Surrounding whitespace is trimmed before validation; blank values are ignored. If neither date bound is set, cubic uses the last 30 days, 7 days, or 24 hours based on the installation's available history.

Maximum string length: 255
endDate
string

End of the review date window. A UTC date-only value includes the full day through 23:59:59.999Z. Surrounding whitespace is trimmed before validation; blank values are ignored.

Maximum string length: 255
perPage
integer
default:100

Number of results per page, from 1 to 100. Values outside this range return 400.

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

Copy nextCursor unchanged from the preceding response. Keep the same organization, filters, and date window across pages. Surrounding whitespace is trimmed before validation; blank values are ignored.

Maximum string length: 255

Response

A page of pull request analytics. nextCursor is null on the last page. Recent updates may take a short time to appear due to read-replica lag.

data
object[]
required

Merged pull requests with at least one completed cubic review in the selected date window, ordered by merge time, newest first.

nextCursor
string | null
required

Cursor for the next page, or null on the last page.