API Reference
🚧 This page is a work in progress. English documentation is being translated.
YuanBot provides RESTful API and WebSocket endpoints.
Base URL: http://localhost:8000
Endpoints Overview
| Category | Prefix | Description |
|---|---|---|
| Auth | /api/auth | Login, logout, token refresh |
| Chat | /api/chat | Send message & get AI reply |
| Persona | /api/persona | Persona management |
| Providers | /api/providers | AI provider management |
| Memory | /api/memory | Memory queries |
| TTS | /api/tts | Text-to-speech |
| Health | /healthz | Liveness probe |
For detailed API documentation, please refer to the Chinese documentation.
English translation coming soon. 🌸
