Skip to main content
GET
Review Timeline

Overview

Retrieve daily review statistics for the specified time period, including total reviews, completed reviews, and failed reviews. Data is deduplicated by unique PR per day to provide accurate daily metrics.

Authentication

Requires a valid JWT token in the Authorization header:

Query Parameters

integer
default:"30"
Number of days to include in the timeline (7-90)

Response

Returns an array of daily statistics, ordered chronologically.
array
Array of daily review statistics
string
Date in ISO format (YYYY-MM-DD)
integer
Total number of unique PRs reviewed on this day
integer
Number of reviews that completed successfully
integer
Number of reviews that failed

Example Request

Example Response

Deduplication Logic

For each day, if multiple events exist for the same PR (repo + PR number), only the event with the highest priority status is counted:
  1. completed (highest priority)
  2. failed
  3. processing
  4. pending (lowest priority)
This ensures accurate daily counts even when a PR triggers multiple webhook events.

Use Cases

Activity Chart

Success Rate Trend

Weekly Aggregation

Detect Anomalies

Compare Periods

Notes

  • All days in the specified range are included, even if no reviews occurred (total = 0)
  • The timeline always starts from (current_date - days + 1) to ensure consistent range
  • Data is ordered chronologically from oldest to newest
  • Failed reviews typically indicate webhook processing errors or AI service failures
  • Reviews in processing or pending state are counted in total but not in completed or failed