v1
latestSwagger 2.02026-07-175445133.1 KBsessions
Get session by workspace
Returns session information for a specific workspace. Accepts workspace ID (UUID) or path. Use ?full=true for complete session data including messages. Supports conditional requests via If-None-Match header for efficient polling.
get/v1/sessions/workspace/{workspace}
Path parameters
workspacestring required
Workspace ID (UUID) or directory path
Query parameters
fullboolean
Include full session data with messages and user prompts
Headers
If-None-Matchstring
ETag from previous request
Response
Basic session info when full=false
Example response
{
"claude_session_uuid": "abc123-def456-ghi789",
"ended_at": "2024-01-15T18:30:00Z",
"resumed_at": "2024-01-15T16:00:00Z",
"started_at": "2024-01-15T14:30:00Z",
"title": "Updating README.md"
}