List Sessions
Retrieve a paginated list of Claude Code sessions.Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Number of sessions to return |
offset | number | 0 | Pagination offset |
agent_id | string | - | Filter by agent ID |
client_id | string | - | Filter by client ID |
project | string | - | Filter by project path |
git_branch | string | - | Filter by git branch |
date | string | - | Filter by date (YYYY-MM-DD) |
tz | string | - | Timezone for date filtering |
include_subagents | boolean | false | Include subagent sessions |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
id | number | Database row ID |
session_id | string | Claude Code session identifier |
client_id | string | Agent client ID |
agent_hostname | string | Machine hostname |
project_path | string | Working directory path |
first_prompt | string | First message in the session |
git_branch | string | Active git branch during the session |
message_count | number | Number of conversation messages |
created_at | string | When the session started |
modified_at | string | When the session last had activity |
uploaded_at | string | When the session was uploaded to Turen |
size_bytes | number | Session data size |
is_subagent | boolean | Whether this is a subagent session |
subagent_count | number | Number of subagent sessions spawned |