CoderHelm Docs
APIReviews

Get a review session

GET
/api/reviewer/session

Returns one review job step by step: the pull request, what asked for the review, its status (live while it runs), when it started and ended, the steps so far, and once it is done the verdict with a link to the review posted on GitHub. The "CoderHelm review" check on a pull request links to the session of its review.

Authorization

api_key view
headerAuthorizationBearer <token>

A team API key, made by an admin under Settings, API keys. Send it as Authorization: Bearer chk_....

Scope: view

Query Parameters

id*string

The session's id: the review job's id, from the PR's "CoderHelm review" check (its Details link) or a PR's status.

Response Body

The session.

application/json
  1. response

One review job, step by step: what CoderHelm's "CoderHelm review" check links to. Each job has its own session, so an older check keeps showing its own review.

activity*array<>

What the reviewer did while it read the pull request, live while it runs: its searches, file views and lookups in groups, the notes it wrote, and the comments it kept. Oldest first.

activity_dropped*integer

Steps left out of activity because the review passed its cap.

Formatint64
Range0 <= value
Example0
attempt*integer

Which try this job is, from 0.

Formatint64
Range0 <= value
Example0
check_run_id?|

The GitHub check run that links here, when GitHub allowed one.

Formatint64
Range0 <= value
Example31337000
findings?|

How many findings the review kept, once there is a verdict.

Formatint64
Range0 <= value
Example2
finished_at*string

When it ended (RFC 3339); empty while it runs.

Example"2026-10-22T14:20:05+00:00"
head_sha*string

The commit reviewed.

Example"9fceb02d0ae598e95dc970b74767f19372d61af8"
id*string

The session's id (the review job's id).

Example"3f2c9a1e-5b7d-4c8e-9a0b-1c2d3e4f5a6b"
in_flight*boolean

True while the review is still running.

Examplefalse
kind*string

review, or question for an answer to a comment.

Example"review"
overview?null|
pr_number*integer

The pull request number.

Formatint64
Range0 <= value
Example318
pr_title*string

The pull request's title.

Example"Rate-limit the login form"
reason*string

Why it ended without a review, when it did. Empty otherwise.

Example""
repo*string

The repository, owner/name.

Example"acme/web"
review_sk?|

The review this session wrote (its sk, for /api/reviewer/review). Null while it runs, when it ended without one, and on older sessions.

Example"REVIEW#acme/web#000318#2026-10-22T14:20:05+00:00"
review_url*string

The review posted on GitHub; empty when nothing new was posted.

Example"https://github.com/acme/web/pull/318#pullrequestreview-2201"
started_at*string

When it started (RFC 3339).

Example"2026-10-22T14:18:00+00:00"
status*string

reviewing, done, skipped, retrying (didn't finish and was sent again; the retry has its own session), failed, or stalled (the job stopped without saying how it ended).

Example"done"
steps*array<>

The steps so far, oldest first.

trigger*string

What asked for it, such as label, push, rerequest or reply.

Example"push"
verdict*string

The verdict, APPROVE or REQUEST_CHANGES; empty until there is one.

Example"REQUEST_CHANGES"
curl -X GET 'https://api.coderhelm.com/api/reviewer/session?id=3f2c9a1e-5b7d-4c8e-9a0b-1c2d3e4f5a6b' \  -H "Authorization: Bearer $CODERHELM_API_KEY"
{  "activity": [    {      "ended_at": "2026-10-22T14:18:12.020+00:00",      "items": [        {          "at": "2026-10-22T14:18:09.412+00:00",          "detail": "",          "failed": false,          "label": "src/orders/sort.ts:10-48"        }      ],      "kind": "view",      "started_at": "2026-10-22T14:18:09.412+00:00",      "text": "",      "title": "View 2 files"    }  ],  "activity_dropped": 0,  "attempt": 0,  "check_run_id": 31337000,  "findings": 2,  "finished_at": "2026-10-22T14:20:05+00:00",  "head_sha": "9fceb02d0ae598e95dc970b74767f19372d61af8",  "id": "3f2c9a1e-5b7d-4c8e-9a0b-1c2d3e4f5a6b",  "in_flight": false,  "kind": "review",  "overview": null,  "pr_number": 318,  "pr_title": "Rate-limit the login form",  "reason": "",  "repo": "acme/web",  "review_sk": "REVIEW#acme/web#000318#2026-10-22T14:20:05+00:00",  "review_url": "https://github.com/acme/web/pull/318#pullrequestreview-2201",  "started_at": "2026-10-22T14:18:00+00:00",  "status": "done",  "steps": [    {      "at": "2026-10-22T14:18:02+00:00",      "detail": "src/auth/login.ts\nsrc/auth/limits.ts",      "text": "Read the change: 4 files changed"    }  ],  "trigger": "push",  "verdict": "REQUEST_CHANGES"}
Edit on GitHub