Skip to main content
GET
string
required
Bearer plus a Management API key or user session.
Matches repository, number, and title.
integer
default:"20"
Pull requests per page.
integer
default:"0"
Pull requests to skip.

Endpoints

Pull Requests

Dari reads each session’s pull requests from its tool output: one it opened with gh pr create, ran another gh pr command on, or whose branch it pushed. It also links a session to the pull request on the branch of each commit Dari’s git hook reported for it. Every conversation summary carries them as pull_requests, each with repository, number, url, and title (when known). A conversation’s detail also lists its reported commits, each with repository, sha, branch, url, and reported_at. A pull request summary holds its branch, opened_at, sessions, cost, tokens, steps, models, and people.

Reporting Commits

The git hook reports a commit with the routing key the session’s requests used, to the same router:
cURL
harness is claude_code (the session is Claude Code’s CLAUDE_CODE_SESSION_ID) or codex (its CODEX_THREAD_ID). Each commit needs a GitHub repository, its branch, and its full sha; pull_request and title name the branch’s open pull request when known. A commit the session already has is stored once. Answers 204. A Codex subagent’s commits go to its parent’s session; when no request names the thread yet, the endpoint answers 409 session_pending so the hook asks again, and "final": true stores the commit under the thread itself.