GET /sessions/{session_id}/diff

Return the session's uncommitted changes as a patch.

MethodPath
GET/v1/sessions/{session_id}/diff

One unified-diff section per changed file, captured from the sandbox's working tree when the session ended. The per-file counts ride on the session itself (`git.repos[].files`); this is the text behind them. Empty when the tree was clean. A sandbox token may read only its own session's diff.

Path parameters

session_idstringrequired
curl "https://api.ellipsis.dev/v1/sessions/{session_id}/diff" \
  -H "Authorization: Bearer $ELLIPSIS_API_KEY"

Request

Response

Example response · 200
{
}

On this page

No Headings
Schedule a demo