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.
Path parameters
Workspace ID (UUID) or directory path
Query parameters
Include full session data with messages and user prompts
Headers
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
Changed in 2 of the 50 revisions of this API.13
- ○
added the new optional
headerrequest parameterIf-None-Matchnew-optional-request-parameter
- ○
added the non-success response with the status
304response-non-success-status-added
- ○
- ●
deleted the
headerrequest parameterIf-None-Matchrequest-parameter-removed
- ○
removed the non-success response with the status
304response-non-success-status-removed
- ●