Sessions

Get changes

GET /v1/sessions/{session_id}/diff
Permission
read:sessions
Tokens
API key, CLI user token, Session token (own session only)

Read the changes produced by a session.

Path parameters

session_idstringrequired
{
}

Response

filesarray<SessionGitPatchFile>required

One unified-diff section per changed file, `diff --git` header included, exactly as git emitted it. Join to the per-file counts on `git.repos[].files` by (full_name, path). Empty when the tree was clean or no capture ran.

omitted_pathsarray<string>required

Paths whose hunks were dropped to fit the storage cap, so a viewer can name what is missing instead of showing a silently partial diff.

On this page

No Headings
Schedule a demo