sessions
Get session by workspace
Changed onReturns 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}
Request
- Base URLhttp://localhost:6369
- URLhttp://localhost:6369/v1/sessions/workspace/{workspace}
- Authnone declared
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"
}Changes
- info
added the new optional
headerrequest parameterIf-None-Match - info
added the non-success response with the status
- info
- warning
deleted the
headerrequest parameterIf-None-Match - info
removed the non-success response with the status
- warning