Get session diff
Retrieve the raw unified diff for an authorized Inspect session. The endpoint is session-scoped and does not accept arbitrary diff file IDs. Pending or running sessions return the local working-tree diff when one is available; otherwise the stored authoritative session diff is returned.
Retrieve the raw unified diff for an authorized Inspect session. The endpoint is session-scoped and does not accept arbitrary diff file IDs. Pending or running sessions return the local working-tree diff when one is available; otherwise the stored authoritative session diff is returned.
bearerAuth sessions:readAuthorizationBearer <token>API key authentication. Use your API key as the bearer token.
Scope: sessions:read
session_id*stringThe unique identifier of the session
repository?stringRepository ID whose diff should be returned. Must be one of the session's repositories. Defaults to the first one.
Raw unified diff for the session
response?stringtext/plaincurl -X GET 'https://app.inspect.com/api/v2/sessions/h2k9x4m7q1pd/diff'"string"