GET /api/threads
List all threads for the authenticated user. Response:POST /api/threads
Create a new thread.GET /api/threads/:id
Get thread details.PATCH /api/threads/:id
Update thread metadata.DELETE /api/threads/:id
Delete a thread and its session data.GET /api/threads/:id/read
Read thread history — returns all turns, messages, and elements.POST /api/threads/:id/messages
Send a message to the thread (equivalent toturn/start over WebSocket).
GET /api/threads/:id/events
SSE endpoint for thread events (alternative to WebSocket).POST /api/threads/:id/stop
Stop the current turn (equivalent toturn/interrupt over WebSocket).