List Reviews
Reviews
List Reviews
List all PR reviews with optional filtering and search
GET
List Reviews
Overview
Retrieve a paginated list of PR reviews processed by Nectr AI. This endpoint deduplicates reviews by PR number and repository, returning the most recent event with the highest priority status for each unique PR.Authentication
Requires a valid JWT token in theAuthorization header:
Query Parameters
integer
default:"20"
Maximum number of reviews to return (1-100)
string
Filter by event status or PR status. Valid values:
- Event status:
pending,processing,completed,failed - PR status:
open,merged,closed
string
Search reviews by PR title, repository name, or PR number
Response
Returns an array of review objects, deduplicated by unique PR.array
Array of review objects
integer
Event ID
string
Type of event (e.g., “pull_request”)
string
Event source (e.g., “github”)
string
Processing status:
pending, processing, completed, or failedstring
Live PR status from GitHub:
open, merged, or closeddatetime
Timestamp when the event was created
datetime
Timestamp when the event was processed (null if pending)
string
Pull request title
integer
Pull request number
string
Repository full name (owner/repo)
string
Source branch name
string
GitHub username of the PR author
string
Direct URL to the pull request on GitHub
string
AI-generated review summary (available when status is completed)
integer
Number of files analyzed by the AI reviewer
Example Request
Example Response
Filtering Examples
Filter by Event Status
Get all reviews that are currently being processed:Filter by PR Status
Get all reviews for merged PRs:Search Reviews
Search for reviews containing “authentication” in title or repo name:Notes
- Reviews are deduplicated by unique PR (repo + PR number). If multiple events exist for the same PR, the endpoint returns the event with the highest priority status
- Status priority (highest to lowest):
completed>failed>processing>pending - The
pr_statusfield is fetched live from GitHub API for accuracy - If GitHub API fetch fails,
pr_statusfalls back to the last known state from the webhook payload - The
searchparameter matches against PR title, repo name, and PR number (case-insensitive)