{"openapi":"3.0.3","info":{"title":"AP Search Bot API","version":"V1","description":"Swagger documentation generated from AP Search Bot API document"},"servers":[{"url":"https://ap-one-api-base-url.com"}],"paths":{"/api/chatbot/new_chat/":{"post":{"summary":"Create New Chat Session","parameters":[{"name":"token_id","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid request"},"500":{"description":"Server error"}}}},"/api/chatbot/query_rag/":{"post":{"summary":"Query RAG API","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"user_query":{"type":"string"},"rephrased_query":{"type":"string"},"query_id":{"type":"string","format":"uuid"},"session_id":{"type":"string","format":"uuid"},"targeted_language":{"type":"string"},"token_id":{"type":"string"}}}}}},"responses":{"200":{"description":"AI response"},"400":{"description":"Invalid request"},"500":{"description":"Server error"}}}},"/api/chatbot/query_status/":{"post":{"summary":"Query Status API","responses":{"200":{"description":"Status response"},"400":{"description":"Invalid request"},"500":{"description":"Server error"}}}},"/api/chatbot/translate_text/":{"post":{"summary":"Translate Text API","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"},"source_language":{"type":"string"},"target_language":{"type":"string"}}}}}},"responses":{"200":{"description":"Translation response"}}}},"/api/chatbot/speech_to_text/":{"post":{"summary":"Speech To Text API","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"audio_file":{"type":"string","format":"binary"},"language_code":{"type":"string"}}}}}},"responses":{"200":{"description":"Text response"}}}},"/api/chatbot/news_response/":{"post":{"summary":"News Response API","responses":{"200":{"description":"News response"}}}},"/api/chatbot/get_deepthinking_response/":{"post":{"summary":"Deep Thinking Response API","responses":{"200":{"description":"AI response"}}}},"/api/chatbot_analytics/update_query_count/":{"post":{"summary":"Update Query Count API","responses":{"200":{"description":"Updated successfully"}}}},"/api/chatbot/suggested_queries/":{"get":{"summary":"Suggested Queries API","responses":{"200":{"description":"Suggested queries list"}}}},"/api/chatbot/feedback/":{"post":{"summary":"Feedback API","responses":{"200":{"description":"Feedback submitted"}}}},"/api/chatbot/history/":{"get":{"summary":"Chat History API","parameters":[{"name":"uuid","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Chat history"}}}}}}