---
title: "Get worktree session summary"
method: GET
path: "/v1/claude/session"
tags: ["claude"]
---

# Get worktree session summary

`GET /v1/claude/session`

Returns Claude Code session metadata for a specific worktree

## Query parameters

- `worktree_path` string, required

## Response `200`

OK

- GithubComVanpeltCatnipInternalModelsClaudeSessionSummary — Claude Code session summary with metrics and timing information
  - `allSessions` GithubComVanpeltCatnipInternalModelsSessionListEntry[] — List of all available sessions for this worktree
    - `endTime` string — When the session ended (if available)
    - `isActive` boolean — Whether this session is currently active
    - `lastModified` string — When the session was last modified
    - `sessionId` string — Unique session identifier
    - `startTime` string — When the session started (if available)
  - `currentSessionId` string — ID of the currently active session
  - `header` string — Header/title of the session from the Claude history
  - `isActive` boolean — Whether this session is currently active
  - `lastCost` number — Metrics (from completed sessions) Cost in USD of the last completed session
  - `lastDuration` integer — Duration in seconds of the last session
  - `lastSessionId` string — ID of the most recent completed session
  - `lastTotalInputTokens` integer — Total input tokens used in the last session
  - `lastTotalOutputTokens` integer — Total output tokens generated in the last session
  - `sessionEndTime` string — When the last session ended (if not active)
  - `sessionStartTime` string — When the current session started
  - `turnCount` integer — Number of conversation turns in the session
  - `worktreePath` string — Path to the worktree directory

---

[API](https://skmtc.net/wandb/apis/catnip-container-api.md) · [All operations](https://skmtc.net/wandb/apis/catnip-container-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandb/catnip-container-api/versions/a075b0fa501a/schema)
