{"name":"XR5.0 LLM Engine API","version":"1.0.0","description":"API for interacting with document-aware LLM agents for different pilots","status":"Ready to serve questions with RAG!","api_docs_url":"https://chat-api.xr50.eu/docs","redoc_url":"https://chat-api.xr50.eu/redoc","frontend_url":"https://chat.xr50.eu","endpoints":{"health_check":"/health","api_info":"/","register_user":"/api/auth/register","login":"/api/auth/token","chat":"/api/chat","upload_document":"/api/upload","list_documents":"/api/documents","interactive_docs":"/docs","alternative_docs":"/redoc"},"examples":{"register":{"method":"POST","url":"/api/auth/register","description":"Register a new user account","headers":{"Content-Type":"application/json"},"body":{"email":"user@company.com","password":"your_secure_password","pilot":"pilot-1"},"curl":"curl -X POST https://chat-api.xr50.eu/api/auth/register -H \"Content-Type: application/json\" -d '{\"email\": \"user@company.com\", \"password\": \"password\", \"pilot\": \"pilot-1\"}'"},"login":{"method":"POST","url":"/api/auth/token","description":"Authenticate and get access token","headers":{"Content-Type":"application/x-www-form-urlencoded"},"body":"username=user@company.com&password=your_secure_password","curl":"curl -X POST https://chat-api.xr50.eu/api/auth/token -H \"Content-Type: application/x-www-form-urlencoded\" -d \"username=user@company.com&password=password\""},"chat":{"method":"POST","url":"/api/chat","description":"Chat with AI using document context","headers":{"Authorization":"Bearer YOUR_ACCESS_TOKEN","Content-Type":"application/json"},"body":{"query":"What is the maximum pipe diameter for inspection?","pilot":"pilot-1"},"curl":"curl -X POST https://chat-api.xr50.eu/api/chat -H \"Authorization: Bearer YOUR_TOKEN\" -H \"Content-Type: application/json\" -d '{\"query\": \"What is the maximum pipe diameter for inspection?\"}'"},"upload":{"method":"POST","url":"/api/upload","description":"Upload and process a document","headers":{"Authorization":"Bearer YOUR_ACCESS_TOKEN"},"body":"form-data with file, pilot, and doc_type fields","curl":"curl -X POST https://chat-api.xr50.eu/api/upload -H \"Authorization: Bearer YOUR_TOKEN\" -F \"file=@document.pdf\" -F \"pilot=pilot-1\" -F \"doc_type=Manual\""}},"authentication":{"type":"JWT Bearer Token","description":"Obtain access token from the login endpoint and include it in the Authorization header","header_format":"Authorization: Bearer YOUR_ACCESS_TOKEN","login_endpoint":"/api/auth/token","token_type":"bearer","expires_in":"52524 minutes"}}