The RAG Chat API provides endpoints for creating and managing persistent chat sessions that integrate with knowledge bases using Retrieval-Augmented Generation (RAG).Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Snailclimb/interview-guide/llms.txt
Use this file to discover all available pages before exploring further.
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 |
