{ "openapi": "3.1.0", "info": { "title": "xagent", "description": "The Agent Operating System", "version": "0.1.0" }, "paths": { "/health": { "get": { "summary": "Health Check", "description": "Health check endpoint for container probes.", "operationId": "health_check_health_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": { "type": "string" }, "type": "object", "title": "Response Health Check Health Get" } } } } } } }, "/ready": { "get": { "summary": "Readiness Check", "description": "Readiness check that reflects startup file storage sync status.", "operationId": "readiness_check_ready_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/auth/setup-status": { "get": { "tags": [ "Authentication" ], "summary": "Setup Status", "operationId": "setup_status_api_auth_setup_status_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetupStatusResponse" } } } } } } }, "/api/auth/setup-admin": { "post": { "tags": [ "Authentication" ], "summary": "Setup Admin", "operationId": "setup_admin_api_auth_setup_admin_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/register-switch": { "get": { "tags": [ "Authentication" ], "summary": "Get Register Switch", "operationId": "get_register_switch_api_auth_register_switch_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterSwitchResponse" } } } } }, "security": [ { "HTTPBearer": [] } ] }, "patch": { "tags": [ "Authentication" ], "summary": "Update Register Switch", "operationId": "update_register_switch_api_auth_register_switch_patch", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterSwitchRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterSwitchResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/api/auth/login": { "post": { "tags": [ "Authentication" ], "summary": "Login", "description": "User login endpoint", "operationId": "login_api_auth_login_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": true, "type": "object", "title": "Response Login Api Auth Login Post" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/register": { "post": { "tags": [ "Authentication" ], "summary": "Register", "description": "User registration endpoint with default configuration inheritance", "operationId": "register_api_auth_register_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/forgot-password": { "post": { "tags": [ "Authentication" ], "summary": "Forgot Password", "operationId": "forgot_password_api_auth_forgot_password_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/reset-password": { "post": { "tags": [ "Authentication" ], "summary": "Reset Password", "operationId": "reset_password_api_auth_reset_password_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/change-password": { "post": { "tags": [ "Authentication" ], "summary": "Change Password", "description": "Change user password endpoint", "operationId": "change_password_api_auth_change_password_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangePasswordRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangePasswordResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/api/auth/me": { "get": { "tags": [ "Authentication" ], "summary": "Get Current User Profile", "operationId": "get_current_user_profile_api_auth_me_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserProfileResponse" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/api/auth/email": { "patch": { "tags": [ "Authentication" ], "summary": "Update Current User Email", "operationId": "update_current_user_email_api_auth_email_patch", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateEmailRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateEmailResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/api/auth/refresh": { "post": { "tags": [ "Authentication" ], "summary": "Refresh Token", "description": "Refresh JWT access token using refresh token", "operationId": "refresh_token_api_auth_refresh_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshTokenResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/check": { "get": { "tags": [ "Authentication" ], "summary": "Check Auth", "description": "Check authentication status endpoint", "operationId": "check_auth_api_auth_check_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": true, "type": "object", "title": "Response Check Auth Api Auth Check Get" } } } } } } }, "/api/auth/verify": { "get": { "tags": [ "Authentication" ], "summary": "Verify Current Token", "description": "Verify current token validity", "operationId": "verify_current_token_api_auth_verify_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": true, "type": "object", "title": "Response Verify Current Token Api Auth Verify Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/api/auth/{provider}/login": { "get": { "tags": [ "Authentication" ], "summary": "Oauth Login", "description": "Unified entry point for OAuth login", "operationId": "oauth_login_api_auth__provider__login_get", "parameters": [ { "name": "provider", "in": "path", "required": true, "schema": { "type": "string", "title": "Provider" } }, { "name": "token", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Token" } }, { "name": "app_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "App Id" } }, { "name": "redirect", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Redirect" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "title": "Response Oauth Login Api Auth Provider Login Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/{provider}/callback": { "get": { "tags": [ "Authentication" ], "summary": "Oauth Callback", "description": "Unified entry point for OAuth callback", "operationId": "oauth_callback_api_auth__provider__callback_get", "parameters": [ { "name": "provider", "in": "path", "required": true, "schema": { "type": "string", "title": "Provider" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "title": "Response Oauth Callback Api Auth Provider Callback Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/auth/oidc/google/status": { "get": { "tags": [ "Authentication", "Authentication" ], "summary": "Google Oidc Status", "operationId": "google_oidc_status_api_auth_oidc_google_status_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": true, "type": "object", "title": "Response Google Oidc Status Api Auth Oidc Google Status Get" } } } } } } }, "/api/auth/oidc/google/login": { "get": { "tags": [ "Authentication", "Authentication" ], "summary": "Google Oidc Login", "operationId": "google_oidc_login_api_auth_oidc_google_login_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/auth/oidc/google/callback": { "get": { "tags": [ "Authentication", "Authentication" ], "summary": "Google Oidc Callback", "operationId": "google_oidc_callback_api_auth_oidc_google_callback_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/auth/oidc/google/exchange": { "post": { "tags": [ "Authentication", "Authentication" ], "summary": "Google Oidc Exchange", "operationId": "google_oidc_exchange_api_auth_oidc_google_exchange_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OidcExchangeRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": true, "type": "object", "title": "Response Google Oidc Exchange Api Auth Oidc Google Exchange Post" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/chat/task/create": { "post": { "tags": [ "chat" ], "summary": "Create Task", "description": "Create new chat task", "operationId": "create_task_api_chat_task_create_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskCreateRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TaskCreateResponse" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/api/chat/tasks": { "get": { "tags": [ "chat" ], "summary": "Get Tasks", "description": "Get tasks list with pagination", "operationId": "get_tasks_api_chat_tasks_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "default": 1, "title": "Page" } }, { "name": "per_page", "in": "query", "required": false, "schema": { "type": "integer", "default": 10, "title": "Per Page" } }, { "name": "search", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Search" } }, { "name": "agent_type", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Agent Type" } }, { "name": "exclude_agent_type", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Exclude Agent Type" } }, { "name": "execution_mode", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Execution Mode" } }, { "name": "exclude_execution_mode", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Exclude Execution Mode" } }, { "name": "include_hidden", "in": "query", "required": false, "schema": { "type": "boolean", "default": false, "title": "Include Hidden" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response Get Tasks Api Chat Tasks Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/chat/task/{task_id}": { "get": { "tags": [ "chat" ], "summary": "Get Task", "description": "Get task details", "operationId": "get_task_api_chat_task__task_id__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response Get Task Api Chat Task Task Id Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "put": { "tags": [ "chat" ], "summary": "Update Task", "description": "Update task details.", "operationId": "update_task_api_chat_task__task_id__put", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response Update Task Api Chat Task Task Id Put" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "tags": [ "chat" ], "summary": "Delete Task", "description": "Delete a task and all related data", "operationId": "delete_task_api_chat_task__task_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } }, { "name": "request", "in": "query", "required": false, "schema": { "title": "Request" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response Delete Task Api Chat Task Task Id Delete" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/chat/task/{task_id}/status": { "get": { "tags": [ "chat" ], "summary": "Get Task Status", "description": "Get task status", "operationId": "get_task_status_api_chat_task__task_id__status_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response Get Task Status Api Chat Task Task Id Status Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/chat/workspace/{task_id}/files": { "get": { "tags": [ "chat" ], "summary": "Get Task Workspace Files", "description": "Get all workspace files for a task", "operationId": "get_task_workspace_files_api_chat_workspace__task_id__files_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } }, { "name": "request", "in": "query", "required": false, "schema": { "title": "Request" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response Get Task Workspace Files Api Chat Workspace Task Id Files Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/chat/workspace/{task_id}/output": { "get": { "tags": [ "chat" ], "summary": "Get Task Output Files", "description": "Get output files for a task", "operationId": "get_task_output_files_api_chat_workspace__task_id__output_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } }, { "name": "request", "in": "query", "required": false, "schema": { "title": "Request" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response Get Task Output Files Api Chat Workspace Task Id Output Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/cloud/accounts": { "get": { "tags": [ "Cloud Storage" ], "summary": "List Connected Accounts", "description": "List connected cloud accounts", "operationId": "list_connected_accounts_api_cloud_accounts_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "provider", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Provider" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "title": "Response List Connected Accounts Api Cloud Accounts Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/cloud/accounts/{account_id}": { "delete": { "tags": [ "Cloud Storage" ], "summary": "Delete Connected Account", "description": "Delete a connected cloud account", "operationId": "delete_connected_account_api_cloud_accounts__account_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "account_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Account Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response Delete Connected Account Api Cloud Accounts Account Id Delete" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/cloud/google-drive/drives": { "get": { "tags": [ "Cloud Storage" ], "summary": "List Google Drives", "description": "List Google Drives (My Drive + Shared Drives)", "operationId": "list_google_drives_api_cloud_google_drive_drives_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "account_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Account Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "title": "Response List Google Drives Api Cloud Google Drive Drives Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/cloud/google-drive/files": { "get": { "tags": [ "Cloud Storage" ], "summary": "List Google Drive Files", "description": "List files in Google Drive folder", "operationId": "list_google_drive_files_api_cloud_google_drive_files_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "folder_id", "in": "query", "required": false, "schema": { "type": "string", "default": "root", "title": "Folder Id" } }, { "name": "account_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Account Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "additionalProperties": true }, "title": "Response List Google Drive Files Api Cloud Google Drive Files Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/files/upload": { "post": { "tags": [ "files" ], "summary": "Upload File", "operationId": "upload_file_api_files_upload_post", "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/Body_upload_file_api_files_upload_post" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": true, "type": "object", "title": "Response Upload File Api Files Upload Post" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/api/files/list": { "get": { "tags": [ "files" ], "summary": "List Files", "operationId": "list_files_api_files_list_get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "page", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 1, "description": "Page number", "default": 1, "title": "Page" }, "description": "Page number" }, { "name": "size", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100, "minimum": 1, "description": "Page size", "default": 20, "title": "Size" }, "description": "Page size" }, { "name": "search", "in": "query", "required": false, "schema": { "type": "string", "description": "Search filename or path", "default": "", "title": "Search" }, "description": "Search filename or path" }, { "name": "task_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "Filter by task ID", "title": "Task Id" }, "description": "Filter by task ID" }, { "name": "uploads_only", "in": "query", "required": false, "schema": { "type": "boolean", "description": "Only include user uploads", "default": false, "title": "Uploads Only" }, "description": "Only include user uploads" } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response List Files Api Files List Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/files/tasks": { "get": { "tags": [ "files" ], "summary": "List File Tasks", "operationId": "list_file_tasks_api_files_tasks_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "additionalProperties": true, "type": "object", "title": "Response List File Tasks Api Files Tasks Get" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/api/files/task/{task_id}": { "get": { "tags": [ "files" ], "summary": "List Task Files", "description": "Get all files for a specific task.\n\nMore efficient than /api/files/list as it filters at database level.\nOnly returns files that are already registered in the database.", "operationId": "list_task_files_api_files_task__task_id__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "task_id", "in": "path", "required": true, "schema": { "type": "integer", "title": "Task Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "type": "object", "additionalProperties": true, "title": "Response List Task Files Api Files Task Task Id Get" } } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/files/download/{file_id}": { "get": { "tags": [ "files" ], "summary": "Download File", "operationId": "download_file_api_files_download__file_id__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "file_id", "in": "path", "required": true, "schema": { "type": "string", "title": "File Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/files/preview/{file_id}": { "get": { "tags": [ "files" ], "summary": "Preview File", "operationId": "preview_file_api_files_preview__file_id__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "file_id", "in": "path", "required": true, "schema": { "type": "string", "title": "File Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/api/files/preview-pdf/{file_id}": { "get": { "tags": [ "files" ], "summary": "Preview Pptx As Pdf", "description": "Return a PDF rendering of a .pptx for high-fidelity in-browser preview.\n\nThe frontend hits this endpoint first; if it succeeds it shows the PDF\nin an ``