API Reference
Log In
API Reference

Get PR Health for the caller's organization

Rotting/aging open PRs and closed-without-merge counts as an AI-waste signal, per engineer. Open-PR figures reflect the current synced state; closed-without-merge counts and the cost basis are scoped to [startDate, endDate]. Aging and rotting classify by INACTIVITY (days since the PR's last provider-side activity) against the org's thresholds, not by age alone; rows also carry ageDays, lastCommitAtVcs, and reviewDecision. Draft PRs are counted separately and excluded from aging/rotting; known bot authors are excluded from every figure. Dollar estimates are computed client-side as count x avgCostPerMergedPr (an org-average basis, labeled an estimate); at-risk (rotting) and wasted (closed unmerged) stay separate figures. Thresholds come from the team settings endpoint (/v2/api/teams/{id}/settings/pr-health) and are echoed here.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

VCS source: github or gitlab

date
required

Start date (ISO yyyy-MM-dd) of the closed/merged window

date
required

End date (ISO yyyy-MM-dd), inclusive

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*