Skip to main content
GET
/
api
/
workspaces
/
{id}
/
sessions
List Sessions
curl --request GET \
  --url http://localhost:8080/api/workspaces/{id}/sessions \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "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,
      "report": "<string>"
    }
  ],
  "total": 123,
  "has_more": false
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Query Parameters

task_id
string | null
status
string | null
limit
integer | null
Required range: x >= 1
offset
integer
default:0
Required range: x >= 0

Response

Successful Response

items
SessionResponse · object[]
required
total
integer
required
has_more
boolean
default:false
required