Welcome to the BankRegX API documentation. Below are the available endpoints and how to use them.
POST /api/ask
Description: Submit a compliance-related query to the AI chatbot and receive a response.
{ "query": "What are the Basel III regulations?", "userId": "user_12345" }
{ "answer": "Basel III is a set of international banking regulations aimed at improving financial stability." }
POST /api/feedback
Description: Send feedback on AI responses (whether they were useful or not).
{ "userId": "user_12345", "aiResponse": "Basel III is a set of banking regulations...", "feedback": "useful" }
{ "message": "Feedback submitted successfully" }
GET /docs
Description: Returns this API documentation.