{ "components": { "schemas": { "ChatRequest": { "properties": { "message": { "title": "Message", "type": "string" }, "session_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Session Id" } }, "required": [ "message" ], "title": "ChatRequest", "type": "object" }, "ChatResponse": { "properties": { "errors": { "default": [], "items": { "type": "string" }, "title": "Errors", "type": "array" }, "message": { "title": "Message", "type": "string" }, "metadata": { "additionalProperties": true, "default": {}, "title": "Metadata", "type": "object" }, "processing_time_ms": { "title": "Processing Time Ms", "type": "number" }, "session_id": { "title": "Session Id", "type": "string" }, "success": { "title": "Success", "type": "boolean" }, "timestamp": { "title": "Timestamp", "type": "string" }, "tools_used": { "default": [], "items": { "type": "string" }, "title": "Tools Used", "type": "array" }, "user_id": { "title": "User Id", "type": "string" } }, "required": [ "success", "message", "session_id", "user_id", "timestamp", "processing_time_ms" ], "title": "ChatResponse", "type": "object" }, "ConversationalSignupRequest": { "description": "Request schema for conversational signup with Redis session management.\n\nClient sends 3 fields:\n1. message: User's input (required)\n2. session_id: Tracking ID (null for START, required for all other steps)\n3. current_step: Current step (null for START, required for all other steps)\n\nAll validated data is stored server-side in Redis.\nThis prevents password exposure and ensures data integrity.\n\nFlow:\n- First request: {\"message\": \"\", \"session_id\": null, \"current_step\": \"start\"}\n- Server returns: session_id in response (e.g., \"abc-123\")\n- Subsequent requests: {\"message\": \"user input\", \"session_id\": \"abc-123\", \"current_step\": \"email\"}", "examples": [ { "current_step": "start", "description": "Step 1: START - Initialize signup (session_id is null)", "message": "" }, { "current_step": "email", "description": "Step 2: EMAIL - Provide email (session_id from server response)", "message": "john@example.com", "session_id": "abc-123-uuid-from-server" }, { "current_step": "username", "description": "Step 3: USERNAME - Provide username (same session_id)", "message": "johndoe", "session_id": "abc-123-uuid-from-server" }, { "current_step": "password", "description": "Step 4: PASSWORD - Provide password (same session_id)", "message": "SecurePass123", "session_id": "abc-123-uuid-from-server" }, { "current_step": "firstname", "description": "Step 5: FIRSTNAME - Provide first name (same session_id)", "message": "John", "session_id": "abc-123-uuid-from-server" }, { "current_step": "lastname", "description": "Step 6: LASTNAME - Provide last name (same session_id)", "message": "Doe", "session_id": "abc-123-uuid-from-server" } ], "properties": { "current_step": { "anyOf": [ { "$ref": "#/components/schemas/SignupStep" }, { "type": "null" } ], "description": "Current step (MUST match next_step from previous response, null only for START)", "examples": [ "email" ] }, "message": { "description": "User's message/input for current step", "examples": [ "john@example.com" ], "title": "Message", "type": "string" }, "session_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Session ID from server response (null only for START step)", "examples": [ "abc-123" ], "title": "Session Id" } }, "required": [ "message" ], "title": "ConversationalSignupRequest", "type": "object" }, "ConversationalSignupResponse": { "description": "Response schema for conversational signup.", "properties": { "access_token": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "JWT access token if signup complete", "title": "Access Token" }, "fields_remaining": { "description": "Number of fields still needed", "title": "Fields Remaining", "type": "integer" }, "is_valid": { "default": true, "description": "Whether current input is valid", "title": "Is Valid", "type": "boolean" }, "message": { "description": "Bot's response message to user", "title": "Message", "type": "string" }, "next_step": { "$ref": "#/components/schemas/SignupStep", "description": "Next step in the signup process" }, "progress_percentage": { "description": "Signup completion percentage (0-100)", "title": "Progress Percentage", "type": "integer" }, "refresh_token": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "JWT refresh token if signup complete", "title": "Refresh Token" }, "session_id": { "description": "Session ID for tracking conversation", "title": "Session Id", "type": "string" }, "success": { "description": "Whether the current step was successful", "title": "Success", "type": "boolean" }, "token_type": { "default": "bearer", "description": "Token type", "title": "Token Type", "type": "string" }, "user_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Created user ID if signup complete", "title": "User Id" }, "validation_error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Validation error message if any", "title": "Validation Error" } }, "required": [ "success", "message", "next_step", "session_id", "progress_percentage", "fields_remaining" ], "title": "ConversationalSignupResponse", "type": "object" }, "CreateSessionRequest": { "properties": { "title": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Title" } }, "title": "CreateSessionRequest", "type": "object" }, "CreateSessionResponse": { "properties": { "created_at": { "title": "Created At", "type": "string" }, "errors": { "default": [], "items": { "type": "string" }, "title": "Errors", "type": "array" }, "session_id": { "title": "Session Id", "type": "string" }, "success": { "title": "Success", "type": "boolean" }, "title": { "title": "Title", "type": "string" } }, "required": [ "success", "session_id", "title", "created_at" ], "title": "CreateSessionResponse", "type": "object" }, "DataSourceType": { "description": "Supported data sources types for ingestion.", "enum": [ "s3", "confluence", "file", "sharepoint", "database", "url", "web", "jira" ], "title": "DataSourceType", "type": "string" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "title": "Detail", "type": "array" } }, "title": "HTTPValidationError", "type": "object" }, "LoginRequest": { "description": "Request schema for user login.", "properties": { "identifier": { "description": "Email or username", "title": "Identifier", "type": "string" }, "password": { "description": "User password", "title": "Password", "type": "string" } }, "required": [ "identifier", "password" ], "title": "LoginRequest", "type": "object" }, "LoginResponse": { "description": "Response schema for user login.", "properties": { "access_token": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "JWT access token if successful", "title": "Access Token" }, "message": { "description": "Response message", "title": "Message", "type": "string" }, "refresh_token": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "JWT refresh token if successful", "title": "Refresh Token" }, "success": { "description": "Whether login was successful", "title": "Success", "type": "boolean" }, "token_type": { "default": "bearer", "description": "Token type", "title": "Token Type", "type": "string" }, "user": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "description": "User information if successful", "title": "User" } }, "required": [ "success", "message" ], "title": "LoginResponse", "type": "object" }, "RefreshTokenRequest": { "description": "Request schema for token refresh.", "properties": { "refresh_token": { "description": "Valid refresh token", "title": "Refresh Token", "type": "string" } }, "required": [ "refresh_token" ], "title": "RefreshTokenRequest", "type": "object" }, "RefreshTokenResponse": { "description": "Response schema for token refresh.", "properties": { "access_token": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "New JWT access token if successful", "title": "Access Token" }, "message": { "description": "Response message", "title": "Message", "type": "string" }, "success": { "description": "Whether refresh was successful", "title": "Success", "type": "boolean" }, "token_type": { "default": "bearer", "description": "Token type", "title": "Token Type", "type": "string" } }, "required": [ "success", "message" ], "title": "RefreshTokenResponse", "type": "object" }, "SessionHistoryResponse": { "properties": { "count": { "title": "Count", "type": "integer" }, "errors": { "default": [], "items": { "type": "string" }, "title": "Errors", "type": "array" }, "messages": { "items": { "$ref": "#/components/schemas/SessionMessage" }, "title": "Messages", "type": "array" }, "session_id": { "title": "Session Id", "type": "string" }, "success": { "title": "Success", "type": "boolean" } }, "required": [ "success", "session_id", "messages", "count" ], "title": "SessionHistoryResponse", "type": "object" }, "SessionListItem": { "properties": { "created_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Created At" }, "last_message_at": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Last Message At" }, "message_count": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Message Count" }, "session_id": { "title": "Session Id", "type": "string" }, "title": { "title": "Title", "type": "string" } }, "required": [ "session_id", "title" ], "title": "SessionListItem", "type": "object" }, "SessionListResponse": { "properties": { "errors": { "default": [], "items": { "type": "string" }, "title": "Errors", "type": "array" }, "has_more": { "title": "Has More", "type": "boolean" }, "limit": { "title": "Limit", "type": "integer" }, "page": { "title": "Page", "type": "integer" }, "sessions": { "items": { "$ref": "#/components/schemas/SessionListItem" }, "title": "Sessions", "type": "array" }, "success": { "title": "Success", "type": "boolean" }, "total": { "title": "Total", "type": "integer" } }, "required": [ "success", "sessions", "total", "page", "limit", "has_more" ], "title": "SessionListResponse", "type": "object" }, "SessionMessage": { "properties": { "content": { "title": "Content", "type": "string" }, "id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Id" }, "role": { "title": "Role", "type": "string" }, "timestamp": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Timestamp" } }, "required": [ "role", "content" ], "title": "SessionMessage", "type": "object" }, "SignupRequest": { "description": "Request schema for user signup.", "properties": { "email": { "description": "User's email address", "format": "email", "title": "Email", "type": "string" }, "firstname": { "description": "User's first name", "maxLength": 50, "minLength": 1, "title": "Firstname", "type": "string" }, "lastname": { "description": "User's last name", "maxLength": 50, "minLength": 1, "title": "Lastname", "type": "string" }, "password": { "description": "User password", "maxLength": 72, "minLength": 8, "title": "Password", "type": "string" }, "username": { "description": "Unique username", "maxLength": 30, "minLength": 3, "title": "Username", "type": "string" } }, "required": [ "email", "username", "password", "firstname", "lastname" ], "title": "SignupRequest", "type": "object" }, "SignupResponse": { "description": "Response schema for user signup.", "properties": { "access_token": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "JWT access token if successful", "title": "Access Token" }, "message": { "description": "Response message", "title": "Message", "type": "string" }, "refresh_token": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "JWT refresh token if successful", "title": "Refresh Token" }, "success": { "description": "Whether signup was successful", "title": "Success", "type": "boolean" }, "token_type": { "default": "bearer", "description": "Token type", "title": "Token Type", "type": "string" }, "user_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "description": "Created user ID if successful", "title": "User Id" } }, "required": [ "success", "message" ], "title": "SignupResponse", "type": "object" }, "SignupStep": { "description": "Enumeration of signup conversation steps.", "enum": [ "start", "email", "username", "password", "firstname", "lastname", "complete" ], "title": "SignupStep", "type": "string" }, "UpdateSessionTitleRequest": { "properties": { "title": { "title": "Title", "type": "string" } }, "required": [ "title" ], "title": "UpdateSessionTitleRequest", "type": "object" }, "UpdateSessionTitleResponse": { "properties": { "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message" }, "session_id": { "title": "Session Id", "type": "string" }, "success": { "title": "Success", "type": "boolean" }, "title": { "title": "Title", "type": "string" } }, "required": [ "success", "session_id", "title" ], "title": "UpdateSessionTitleResponse", "type": "object" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "title": "Location", "type": "array" }, "msg": { "title": "Message", "type": "string" }, "type": { "title": "Error Type", "type": "string" } }, "required": [ "loc", "msg", "type" ], "title": "ValidationError", "type": "object" } }, "securitySchemes": { "JWT": { "description": "JWT authentication using Bearer token", "scheme": "bearer", "type": "http" } } }, "info": { "description": "AI-powered agent hub with multi-provider LLM support", "title": "AgentHub API", "version": "1.0.0" }, "openapi": "3.1.0", "paths": { "/": { "get": { "operationId": "root__get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Root" } }, "/api/v1/auth/login": { "post": { "description": "Authenticate a user and return JWT tokens.\n\nUsers can log in with either their email or username along with their password.\n\nArgs:\n request: Login request containing identifier (email/username) and password\n \nReturns:\n LoginResponse with success status, message, tokens, and user info if successful", "operationId": "login_api_v1_auth_login_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Login", "tags": [ "authentication" ] } }, "/api/v1/auth/refresh": { "post": { "description": "Refresh an access token using a valid refresh token.\n\nThis endpoint allows clients to obtain a new access token without re-authenticating.\nThe refresh token must be valid and not expired.\n\nArgs:\n request: Refresh token request containing the refresh token\n \nReturns:\n RefreshTokenResponse with new access token if successful", "operationId": "refresh_token_api_v1_auth_refresh_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Refresh Token", "tags": [ "authentication" ] } }, "/api/v1/auth/signup": { "post": { "description": "Register a new user account.\n\nThis endpoint uses the LangGraph signup workflow to validate and create a new user.\nValidation includes:\n- Email format and uniqueness\n- Username format (3-30 chars) and uniqueness\n- Password strength (8-72 chars, complexity requirements)\n- Name length (1-50 chars)\n\nArgs:\n request: Signup request containing user details\n \nReturns:\n SignupResponse with success status, message, and tokens if successful", "operationId": "signup_api_v1_auth_signup_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignupRequest" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignupResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Signup", "tags": [ "authentication" ] } }, "/api/v1/auth/signup/conversation": { "post": { "description": "Conversational signup endpoint - handles step-by-step user registration via chatbot interface.\n\nThis endpoint provides a conversational flow for user signup where:\n1. User sends a message (e.g., their email)\n2. Backend validates and responds with next question\n3. Process continues until all required fields are collected\n4. Account is created automatically when complete\n\n**IMPORTANT FOR SWAGGER TESTING:**\n- Each request MUST include `current_step` matching the `next_step` from previous response\n- Use the `session_id` from the first response in all subsequent requests\n\n**Complete Flow Example:**\n\n**Request 1 (Start):**\n```json\n{\n \"message\": \"\",\n \"current_step\": \"start\"\n}\n```\nResponse: `next_step: \"email\"`, `session_id: \"abc-123\"`\n\n**Request 2 (Email):**\n```json\n{\n \"message\": \"john@example.com\",\n \"current_step\": \"email\",\n \"session_id\": \"abc-123\"\n}\n```\nResponse: `next_step: \"username\"`\n\n**Request 3 (Username):**\n```json\n{\n \"message\": \"johndoe\",\n \"current_step\": \"username\",\n \"session_id\": \"abc-123\",\n \"email\": \"john@example.com\"\n}\n```\nResponse: `next_step: \"password\"`\n\n**Request 4 (Password):**\n```json\n{\n \"message\": \"Password123\",\n \"current_step\": \"password\",\n \"session_id\": \"abc-123\",\n \"email\": \"john@example.com\",\n \"username\": \"johndoe\"\n}\n```\nResponse: `next_step: \"firstname\"`\n\n**Request 5 (First Name):**\n```json\n{\n \"message\": \"John\",\n \"current_step\": \"firstname\",\n \"session_id\": \"abc-123\",\n \"email\": \"john@example.com\",\n \"username\": \"johndoe\",\n \"password\": \"Password123\"\n}\n```\nResponse: `next_step: \"lastname\"`\n\n**Request 6 (Last Name - Final):**\n```json\n{\n \"message\": \"Doe\",\n \"current_step\": \"lastname\",\n \"session_id\": \"abc-123\",\n \"email\": \"john@example.com\",\n \"username\": \"johndoe\",\n \"password\": \"Password123\",\n \"firstname\": \"John\"\n}\n```\nResponse: `next_step: \"complete\"`, includes `access_token` and `refresh_token`\n\nArgs:\n request: Conversational signup request with user input and conversation state\n \nReturns:\n ConversationalSignupResponse with bot message, validation feedback, and tokens if complete", "operationId": "conversational_signup_api_v1_auth_signup_conversation_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConversationalSignupRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConversationalSignupResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Conversational Signup", "tags": [ "conversational-auth" ] } }, "/api/v1/auth/signup/conversation/start": { "get": { "description": "Start a new conversational signup flow.\n\nThis is a convenience endpoint for initiating the signup conversation.\nIt returns the initial greeting message and a new session ID.\n\nReturns:\n ConversationalSignupResponse with welcome message and session ID", "operationId": "start_conversational_signup_api_v1_auth_signup_conversation_start_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConversationalSignupResponse" } } }, "description": "Successful Response" } }, "summary": "Start Conversational Signup", "tags": [ "conversational-auth" ] } }, "/api/v1/chat/health": { "get": { "description": "Check the health status of the chat service.\n\nReturns service health information including agent status and available tools.\n\nRaises:\n ServiceUnavailableError: If service is unhealthy\n InternalError: If health check fails", "operationId": "health_check_api_v1_chat_health_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Health Check", "tags": [ "chat" ] } }, "/api/v1/chat/message": { "post": { "description": "Send a message to the AI agent.\n\nRequires authentication via JWT Bearer token.\n\n- **message**: The user's message/question\n- **session_id**: Optional session ID. If not provided, creates a new session\n\nReturns the agent's response with metadata.", "operationId": "send_message_api_v1_chat_message_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChatResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "JWT": [] } ], "summary": "Send Message", "tags": [ "chat" ] } }, "/api/v1/chat/sessions": { "get": { "description": "List all chat sessions for a user.\n\nRequires authentication via JWT Bearer token.\n\n- **page**: Page number (0-based, default: 0)\n- **limit**: Number of sessions per page (default: 10)\n\nReturns paginated list of user's sessions.", "operationId": "list_user_sessions_api_v1_chat_sessions_get", "parameters": [ { "description": "Page number (0-based)", "in": "query", "name": "page", "required": false, "schema": { "default": 0, "description": "Page number (0-based)", "title": "Page", "type": "integer" } }, { "description": "Number of sessions per page", "in": "query", "name": "limit", "required": false, "schema": { "default": 10, "description": "Number of sessions per page", "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionListResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "JWT": [] } ], "summary": "List User Sessions", "tags": [ "chat" ] }, "post": { "description": "Create a new chat session.\n\nRequires authentication via JWT Bearer token.\n\n- **title**: Optional title for the session\n\nReturns the new session details.", "operationId": "create_session_api_v1_chat_sessions_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSessionRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSessionResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "JWT": [] } ], "summary": "Create Session", "tags": [ "chat" ] } }, "/api/v1/chat/sessions/{session_id}/messages": { "get": { "description": "Get the message history for a specific session.\n\nRequires authentication via JWT Bearer token.\n\n- **session_id**: ID of the session\n- **limit**: Maximum number of messages to return (default: 50)\n\nReturns the session's message history.", "operationId": "get_session_history_api_v1_chat_sessions__session_id__messages_get", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "string" } }, { "description": "Maximum number of messages to return", "in": "query", "name": "limit", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": 50, "description": "Maximum number of messages to return", "title": "Limit" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionHistoryResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "JWT": [] } ], "summary": "Get Session History", "tags": [ "chat" ] } }, "/api/v1/chat/sessions/{session_id}/title": { "put": { "description": "Update the title of a chat session.\n\nRequires authentication via JWT Bearer token.\n\n- **session_id**: ID of the session to update\n- **title**: New title for the session\n\nReturns the updated session details.", "operationId": "update_session_title_api_v1_chat_sessions__session_id__title_put", "parameters": [ { "in": "path", "name": "session_id", "required": true, "schema": { "title": "Session Id", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateSessionTitleRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateSessionTitleResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "JWT": [] } ], "summary": "Update Session Title", "tags": [ "chat" ] } }, "/api/v1/data/load/{data_source}": { "post": { "operationId": "load_data_api_v1_data_load__data_source__post", "parameters": [ { "in": "path", "name": "data_source", "required": true, "schema": { "$ref": "#/components/schemas/DataSourceType" } } ], "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Load Data", "tags": [ "ingest" ] } }, "/api/v1/health/test-celery": { "get": { "description": "Test endpoint to verify Celery is working.", "operationId": "test_celery_api_v1_health_test_celery_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Test Celery", "tags": [ "health" ] } }, "/api/v1/resilience/circuit-breakers": { "get": { "description": "Get statistics for all circuit breakers.\n\nReturns:\n Dictionary of circuit breaker names to their statistics", "operationId": "get_all_circuit_breakers_api_v1_resilience_circuit_breakers_get", "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": { "additionalProperties": true, "type": "object" }, "title": "Response Get All Circuit Breakers Api V1 Resilience Circuit Breakers Get", "type": "object" } } }, "description": "Successful Response" } }, "summary": "Get All Circuit Breakers", "tags": [ "resilience", "resilience" ] } }, "/api/v1/resilience/circuit-breakers/{circuit_name}": { "get": { "description": "Get statistics for a specific circuit breaker.\n\nArgs:\n circuit_name: Name of the circuit breaker\n \nReturns:\n Circuit breaker statistics", "operationId": "get_circuit_breaker_api_v1_resilience_circuit_breakers__circuit_name__get", "parameters": [ { "in": "path", "name": "circuit_name", "required": true, "schema": { "title": "Circuit Name", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response Get Circuit Breaker Api V1 Resilience Circuit Breakers Circuit Name Get", "type": "object" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Get Circuit Breaker", "tags": [ "resilience", "resilience" ] } }, "/api/v1/resilience/health": { "get": { "description": "Get overall resilience health status.\n\nChecks all circuit breakers and reports:\n- Total circuits\n- Circuits by state (closed, open, half_open)\n- Any circuits that are open (indicating problems)\n\nReturns:\n Health status summary", "operationId": "get_resilience_health_api_v1_resilience_health_get", "responses": { "200": { "content": { "application/json": { "schema": { "additionalProperties": true, "title": "Response Get Resilience Health Api V1 Resilience Health Get", "type": "object" } } }, "description": "Successful Response" } }, "summary": "Get Resilience Health", "tags": [ "resilience", "resilience" ] } }, "/api/v1/resilience/summary": { "get": { "description": "Get a summary of all circuit breakers with key metrics.\n\nReturns:\n List of circuit breaker summaries", "operationId": "get_resilience_summary_api_v1_resilience_summary_get", "responses": { "200": { "content": { "application/json": { "schema": { "items": { "additionalProperties": true, "type": "object" }, "title": "Response Get Resilience Summary Api V1 Resilience Summary Get", "type": "array" } } }, "description": "Successful Response" } }, "summary": "Get Resilience Summary", "tags": [ "resilience", "resilience" ] } }, "/health": { "get": { "operationId": "health_check_health_get", "responses": { "200": { "content": { "application/json": { "schema": {} } }, "description": "Successful Response" } }, "summary": "Health Check" } } } }