Skip to main content
GET
/
api
/
workspaces
/
{id}
/
sessions
/
{session_id}
Get Session
curl --request GET \
  --url http://localhost:8080/api/workspaces/{id}/sessions/{session_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "workspace_id": "<string>",
  "task_id": "<string>",
  "task_run_id": "<string>",
  "session_name": "<string>",
  "status": "<string>",
  "runner_pid": 123,
  "exit_code": 123,
  "error_message": "<string>",
  "line_count": 123,
  "last_activity_at": "<string>",
  "started_at": "<string>",
  "finished_at": "<string>",
  "duration": 123,
  "keep_status": false,
  "worktree_path": "<string>",
  "claude_session_id": "<string>",
  "attempt_number": 123,
  "task_title": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
session_id
string
required

Response

Successful Response

Extended session response with task info and attempt details.

id
string
required
workspace_id
string
required
task_id
string
required
task_run_id
string | null
required
session_name
string
required
status
string
required
runner_pid
integer | null
required
exit_code
integer | null
required
error_message
string | null
required
line_count
integer
required
last_activity_at
string | null
required
started_at
string
required
finished_at
string | null
required
duration
number | null
keep_status
boolean
default:false
worktree_path
string | null
claude_session_id
string | null
attempt_number
integer | null
task_title
string | null