Base URL
Available Endpoints
Create Session
POST /sessions - Start a new chat session
Send Message
POST /sessions//messages/stream - Send message with streaming response
List Sessions
GET /sessions - Get all chat sessions
Get Details
GET /sessions/ - Get session with full message history
Update Title
PUT /sessions//title - Change session title
Pin Session
PUT /sessions//pin - Toggle pin status
Update Knowledge Bases
PUT /sessions//knowledge-bases - Change queried knowledge bases
Delete Session
DELETE /sessions/ - Remove session and messages
Authentication
Currently, the API does not require authentication. In production deployments, implement authentication and authorization to ensure users can only access their own sessions.Response Format
All endpoints (except streaming) return responses in this format:Common Error Codes
| Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid input |
| 404 | Not Found - Session does not exist |
| 500 | Internal Server Error |
