Developer AI ROI Metrics API

The most feature-packed API for measuring AI's ROI on your codebase.

One authenticated endpoint returns any of 110+ engineering segments — sliced by AI cohort, provider, committer, team, or repo.

12 endpoint families · 110+ measurable segments · 6 aggregation axes
reports — GET /api/v1/reports
$ curl -G https://www.gitclear.com/api/v1/reports \
    -H "Authorization: Bearer $GITCLEAR_TOKEN" \
    --data-urlencode "segment_by=delta_from_llms" \
    --data-urlencode "aggregate_by=ai_cohort" \
    --data-urlencode "days_ago=90"

{
  "segment_em": "delta_from_llms",
  "unit": "Diff Delta",
  "aggregated_by": "ai_cohort",
  "series_segments": {
    "AI-forward": 184203,
    "Balanced":   96110,
    "AI-light":   41288
  }
} 
Deployed by
The metrics atlas

Every category of developer & AI metric, in one API.

Where other tools ship a handful of DORA charts, GitClear exposes the full measurement surface — each segment queryable, filterable, and cross-cut by how much of the work AI actually produced.

110 +
queryable segments
AI ROI & Adoption 30+ segments
Diff Delta from AI AI Usage Cost Prompt Acceptance Rate Tab Acceptance Rate Composite AI Use Active AI Users AI Lines Committed Churn by AI Cohort Engaged Provider Accounts + per-cohort variants
Velocity & Output 14 segments
Diff Delta Diff Delta per Hour Delta per Active Developer Commit Count Estimated Dev Hours Line Operation Counts By Code Domain + 7 more
Code Quality & Tech Debt 9 segments
Churned Line Percent Copy/Paste Line Counts Move (Refactor) Counts Duplicate Block Lines Quality Cornerstones Work on Test Code Documentation Work
DORA & Delivery 8 segments
Change Lead Time (PR) Change Lead Time (Issue) Change Failure Rate MTTR Release Frequency Time to First Deploy
Reliability & Defects 8 segments
Critical Defects Detected Hours to First Repair Hours to Resolved Defect Fixes Merged Releases with Defect Defect-Resolving Releases
Pull Requests & Review 19 segments
PR Cycle Time Hours Awaiting Review Merged w/o Human Review Comments Received Review Hours per Dev PR Minutes Saved Post-Merge Diff Delta + 12 more
Issues & Agile 23 segments
Issue Cycle Time Issue Lead Time Sprint Velocity Story Points Resolved Unplanned Work % Opex Story Point Ratio Bug Work Percent + 16 more
Developer Experience 6 segments
Sentiment Surveys Teammates' Review Minutes Review Burden by Cohort Days Off / Absence Planning Accuracy
Every segment can be sliced by ai_cohort · ai_provider · committer · team · repo · none
The API surface

Twelve endpoint families — read your data, and write back the context that makes it meaningful.

Pull chart data for any segment, then push in releases, defects, AI usage, and time-off so ROI is measured against what actually shipped.

01 POST

AI Usage

Capture lines, suggestions, accepts, and cost from any custom AI provider.

02 GET

API Tokens

Token status, connected LLM tokens, and user provisioning across providers.

03 GET

Code Introspection

Walk the per-line version history of any line — AI-authored flag included.

04 POST

Critical Defects

Record when a defect occurs and when a fix ships, for failure-rate math.

05 GET

Data Audits

Inspect the raw commits, PRs, and issues substantiating every chart.

06 POST

Developers

List committers, log time off, and set per-developer processing status.

07 POST

Imports

Queue new repos and track import progress from pending to complete.

08 POST

Releases

Mark deploys and resolved issues to power Lead Time and MTTR.

09 GET

Reports

The core endpoint: JSON chart data for any of the 110+ segments.

10 GET

Segment Introspection

Discover a segment's schema, units, and aggregation options at runtime.

11 POST

Surveys

Create sentiment surveys and pull structured results for DevEx signals.

12 POST

Teams

Create, list, and manage teams and their repos programmatically.

Why it's the most feature-packed

Depth other analytics APIs don't reach.

Feature count is only half of it. The other half is that every number can be attributed to the code — and to the AI — that produced it.

Attribution

AI cohort segmentation

Group developers into AI-forward, balanced, and AI-light cohorts, then compare churn, velocity, PRs, and story points between them — the direct read on whether AI is paying off.

Signal

Diff Delta, not line counts

A weighted measure of durable code change that filters out churn, copy/paste, and boilerplate — so AI output is scored on the work that lasts, not the lines that get reverted next week.

Provenance

Per-line code archaeology

The Code Introspection endpoint returns any line's full change history — who touched it, whether an LLM authored it, and how it evolved — ready for review tooling and audits.

Runtime schema

Introspectable by design

Query any segment's units, direction, and aggregation options at runtime with Segment Introspection — build dashboards that adapt as GitClear adds metrics, with nothing hard-coded.

Measure what AI is really doing to your codebase.

Generate a token in the API Dashboard and pull your first segment in a single curl.