-
Notifications
You must be signed in to change notification settings - Fork 1
API Reference
Sugers edited this page Jun 24, 2026
·
1 revision
POST /api/auth/login
Content-Type: application/json
{"username": "admin", "password": "Admin@2026"}
Response: {"access_token": "...", "refresh_token": "..."}All subsequent requests require:
Authorization: Bearer <access_token>POST /api/conversations/{id}/messages
Content-Type: application/json
Authorization: Bearer <token>
{"content": "Hello", "file_ids": []}
Response: SSE stream (text/event-stream)GET /api/admin/agents # List all agents
POST /api/admin/agents # Create agent
PATCH /api/admin/agents/{id} # Update agent
DELETE /api/admin/agents/{id} # Delete agentGET /api/admin/models # List all models
POST /api/admin/models/{id}/test # Test model connectivity
PATCH /api/admin/models/{id} # Update modelSee the full API documentation at docs/en/API.md in the repository.