{ "openapi": "3.1.0", "info": { "title": "Agent API", "version": "1.0.0" }, "paths": { "/health": { "get": { "summary": "Health", "operationId": "health_health_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/ready": { "get": { "summary": "Ready", "operationId": "ready_ready_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/api/v1/messages:process": { "post": { "tags": [ "messages" ], "summary": "Process Message", "operationId": "process_message_api_v1_messages_process_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProcessMessageRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } } }, "components": { "schemas": { "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "ProcessMessageRequest": { "properties": { "external_user_id": { "type": "integer", "title": "External User Id", "description": "Telegram user id" }, "text": { "type": "string", "maxLength": 4000, "minLength": 1, "title": "Text" } }, "type": "object", "required": [ "external_user_id", "text" ], "title": "ProcessMessageRequest" }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" } } } }