The Sessions API allows you to manage chat sessions within worktrees.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/coollabsio/jean/llms.txt
Use this file to discover all available pages before exploring further.
List Sessions
Get all sessions for a specific worktree.The unique identifier of the worktree
Response
Array of session objects
Example Request
cURL
Create Session
Create a new chat session in a worktree.The unique identifier of the worktree
Session name (auto-generated if not provided)
Execution mode:
plan, build, or yolo (default: plan)AI model to use (inherits from project/global settings if not specified)
AI backend:
claude, codex, or opencodeResponse
Returns the newly created session object.Example Request
cURL
Get Session
Retrieve details about a specific session.The unique identifier of the session
Response
Returns a session object with full details including message history.Example Request
cURL
Update Session
Update session properties.The unique identifier of the session
New session name
New execution mode
Example Request
cURL
Archive Session
Archive a session (soft delete).The unique identifier of the session
Example Request
cURL
Delete Session
Permanently delete a session.The unique identifier of the session
Example Request
cURL
WebSocket Events
When connected to the WebSocket, you’ll receive real-time updates about session changes:Session Created
Session Updated
Session Archived
Session Deleted
Next Steps
Chat API
Send messages and receive responses in a session
Worktrees API
Manage worktrees that contain sessions