{"openapi":"3.1.0","info":{"title":"EvolvixOS Platform API","description":"Self-Hosted entity system, backend functions, workflows, and AI builder. 435+ models, auto-routing, entities, agents, functions, workflows.","version":"10.0.0"},"paths":{"/api/awesome/templates":{"get":{"tags":["awesome-llm-apps"],"summary":"List Templates","description":"List all 50+ agent templates from awesome-llm-apps.","operationId":"list_templates_api_awesome_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/awesome/templates/{category}":{"get":{"tags":["awesome-llm-apps"],"summary":"Get Templates By Category","description":"Get templates by category (starter, advanced, teams, rag, mcp, voice, skills).","operationId":"get_templates_by_category_api_awesome_templates__category__get","parameters":[{"name":"category","in":"path","required":true,"schema":{"type":"string","title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/teams":{"get":{"tags":["awesome-llm-apps"],"summary":"List Teams","operationId":"list_teams_api_awesome_teams_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["awesome-llm-apps"],"summary":"Create Team","operationId":"create_team_api_awesome_teams_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/teams/execute":{"post":{"tags":["awesome-llm-apps"],"summary":"Execute Team","operationId":"execute_team_api_awesome_teams_execute_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamExecuteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/teams/executions":{"get":{"tags":["awesome-llm-apps"],"summary":"List Team Executions","operationId":"list_team_executions_api_awesome_teams_executions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/awesome/teams/executions/{exec_id}":{"get":{"tags":["awesome-llm-apps"],"summary":"Get Team Execution","operationId":"get_team_execution_api_awesome_teams_executions__exec_id__get","parameters":[{"name":"exec_id","in":"path","required":true,"schema":{"type":"string","title":"Exec Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/teams/from-template/{template_name}":{"post":{"tags":["awesome-llm-apps"],"summary":"Create Team From Template","operationId":"create_team_from_template_api_awesome_teams_from_template__template_name__post","parameters":[{"name":"template_name","in":"path","required":true,"schema":{"type":"string","title":"Template Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/rag/collections":{"get":{"tags":["awesome-llm-apps"],"summary":"Rag List Collections","operationId":"rag_list_collections_api_awesome_rag_collections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["awesome-llm-apps"],"summary":"Rag Create Collection","operationId":"rag_create_collection_api_awesome_rag_collections_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RAGCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/rag/add":{"post":{"tags":["awesome-llm-apps"],"summary":"Rag Add Documents","operationId":"rag_add_documents_api_awesome_rag_add_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RAGAddRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/rag/query":{"post":{"tags":["awesome-llm-apps"],"summary":"Rag Query","operationId":"rag_query_api_awesome_rag_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RAGQueryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/rag/collections/{name}":{"delete":{"tags":["awesome-llm-apps"],"summary":"Rag Delete Collection","operationId":"rag_delete_collection_api_awesome_rag_collections__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/skills":{"get":{"tags":["awesome-llm-apps"],"summary":"List Skills","operationId":"list_skills_api_awesome_skills_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/awesome/skills/{name}":{"get":{"tags":["awesome-llm-apps"],"summary":"Get Skill","operationId":"get_skill_api_awesome_skills__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/skills/run":{"post":{"tags":["awesome-llm-apps"],"summary":"Run Skill","operationId":"run_skill_api_awesome_skills_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillRunRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/mcp/agents":{"get":{"tags":["awesome-llm-apps"],"summary":"Mcp List Agents","operationId":"mcp_list_agents_api_awesome_mcp_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/awesome/mcp/route":{"post":{"tags":["awesome-llm-apps"],"summary":"Mcp Route","operationId":"mcp_route_api_awesome_mcp_route_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MCPRouterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/stats":{"get":{"tags":["awesome-llm-apps"],"summary":"Awesome Stats","description":"Get integration stats for the dashboard.","operationId":"awesome_stats_api_awesome_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/awesome/autonomous/start":{"post":{"tags":["awesome-llm-apps"],"summary":"Start Autonomous Task","description":"Start a new autonomous task with plan->execute->verify->reflect loop.","operationId":"start_autonomous_task_api_awesome_autonomous_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutonomousStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/awesome/autonomous/tasks":{"get":{"tags":["awesome-llm-apps"],"summary":"List Autonomous Tasks","description":"List all autonomous tasks.","operationId":"list_autonomous_tasks_api_awesome_autonomous_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/awesome/autonomous/tasks/{task_id}":{"get":{"tags":["awesome-llm-apps"],"summary":"Get Autonomous Task","description":"Get details of a specific autonomous task.","operationId":"get_autonomous_task_api_awesome_autonomous_tasks__task_id__get","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/status":{"get":{"summary":"Platform Status","description":"Full platform status — models, providers, services, uptime.","operationId":"platform_status_api_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/health":{"get":{"summary":"Api Health","operationId":"api_health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/functions/{name}":{"delete":{"summary":"Delete Function","description":"Delete a deployed function — requires auth.","operationId":"delete_function_api_functions__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entities":{"get":{"summary":"List Entities","description":"List all entity schemas — optionally scoped to an app. Requires auth.","operationId":"list_entities_api_entities_get","parameters":[{"name":"app_id","in":"query","required":false,"schema":{"type":"integer","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Entity With Version","operationId":"create_entity_with_version_api_entities_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Entity Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entities/{name}":{"get":{"summary":"Get Entity","description":"Get entity schema — requires auth.","operationId":"get_entity_api_entities__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Entity","description":"Update entity schema — requires auth.","operationId":"update_entity_api_entities__name__put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Entity","description":"Delete entity and all its records — requires auth.","operationId":"delete_entity_api_entities__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entities/{name}/relations":{"get":{"summary":"Get Entity Relations","description":"Get all relation fields for an entity.","operationId":"get_entity_relations_api_entities__name__relations_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entities/{name}/records/{record_id}/expanded":{"get":{"summary":"Get Record Expanded","description":"Get a record with all relation fields expanded.","operationId":"get_record_expanded_api_entities__name__records__record_id__expanded_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entities/{name}/records":{"get":{"summary":"List Records","description":"List entity records with pagination, sorting, and optional relation expansion.","operationId":"list_records_api_entities__name__records_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"expand","in":"query","required":false,"schema":{"type":"boolean","description":"Expand relation fields with related data","default":false,"title":"Expand"},"description":"Expand relation fields with related data"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Record","description":"Create a new entity record.","operationId":"create_record_api_entities__name__records_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entities/{name}/records/{record_id}":{"get":{"summary":"Get Record","description":"Get a single entity record.","operationId":"get_record_api_entities__name__records__record_id__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Record","description":"Update an entity record.","operationId":"update_record_api_entities__name__records__record_id__put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Record","description":"Delete an entity record.","operationId":"delete_record_api_entities__name__records__record_id__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/functions":{"get":{"summary":"List Functions","description":"List all deployed functions — requires auth.","operationId":"list_functions_api_functions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Function","description":"Deploy a backend function.","operationId":"create_function_api_functions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/fn/{name}":{"get":{"summary":"Run Function Get","description":"Execute a backend function (GET).","operationId":"run_function_get_api_fn__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Run Function Post","description":"Execute a backend function (POST).","operationId":"run_function_post_api_fn__name__post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows":{"get":{"summary":"List Workflows","description":"List all workflows — requires auth.","operationId":"list_workflows_api_workflows_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Workflow","description":"Create a new workflow.","operationId":"create_workflow_api_workflows_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows/{name}/activate":{"put":{"summary":"Activate Workflow","operationId":"activate_workflow_api_workflows__name__activate_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows/{name}/deactivate":{"put":{"summary":"Deactivate Workflow","operationId":"deactivate_workflow_api_workflows__name__deactivate_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows/{name}":{"delete":{"summary":"Delete Workflow","operationId":"delete_workflow_api_workflows__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows/{name}/execute":{"post":{"summary":"Execute Workflow","description":"Manually execute a workflow.","operationId":"execute_workflow_api_workflows__name__execute_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows/{name}/logs":{"get":{"summary":"Workflow Logs","description":"Get workflow execution logs.","operationId":"workflow_logs_api_workflows__name__logs_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entities/{name}/aggregate":{"post":{"summary":"Aggregate Entity","description":"Run aggregation pipeline on entity (group by, count, sum, avg).","operationId":"aggregate_entity_api_entities__name__aggregate_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregationPipeline"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/entities/{name}/filter":{"post":{"summary":"Filter Records","description":"Filter entity records with operators. POST body: {\"filters\": {\"priority\": {\"operator\": \"gte\", \"value\": 3}}, \"limit\": 50, \"skip\": 0, \"sort\": \"-created_date\"}","operationId":"filter_records_api_entities__name__filter_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Filter Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents":{"get":{"summary":"List Agents","description":"List all AI agents — requires auth. User-isolated.","operationId":"list_agents_api_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Agent","description":"Create a new AI agent with custom system prompt.","operationId":"create_agent_api_agents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{name}":{"get":{"summary":"Get Agent","description":"Get agent details — requires auth, masks secrets.","operationId":"get_agent_api_agents__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Agent","description":"Update agent — requires auth + ownership.","operationId":"update_agent_api_agents__name__put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Agent","description":"Delete agent — requires auth + ownership.","operationId":"delete_agent_api_agents__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{name}/invoke":{"post":{"summary":"Invoke Agent","description":"Invoke an agent — send a message and get a response.","operationId":"invoke_agent_api_agents__name__invoke_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInvoke"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{name}/clear-memory":{"post":{"summary":"Clear Agent Memory","description":"Clear agent conversation memory.","operationId":"clear_agent_memory_api_agents__name__clear_memory_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{name}/long-memory":{"get":{"summary":"List Long Memory","description":"List long-term memories for an agent — requires auth + ownership.","operationId":"list_long_memory_api_agents__name__long_memory_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","title":"Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Long Memory","description":"Save a long-term memory for an agent — requires auth + ownership.","operationId":"create_long_memory_api_agents__name__long_memory_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongMemoryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{name}/long-memory/{mem_id}":{"put":{"summary":"Update Long Memory","description":"Update a long-term memory — requires auth + ownership.","operationId":"update_long_memory_api_agents__name__long_memory__mem_id__put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"mem_id","in":"path","required":true,"schema":{"type":"integer","title":"Mem Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongMemoryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Long Memory","description":"Delete a long-term memory — requires auth + ownership.","operationId":"delete_long_memory_api_agents__name__long_memory__mem_id__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"mem_id","in":"path","required":true,"schema":{"type":"integer","title":"Mem Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agents/{name}/chat":{"post":{"summary":"External Agent Chat","description":"External API endpoint for agents — authenticates via agent API key.\nAllows other platforms to call EvolvixOS agents programmatically.\n\nAuthentication: Bearer <agent_api_key> in Authorization header.","operationId":"external_agent_chat_api_v1_agents__name__chat_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agents/{name}/memory":{"get":{"summary":"External Agent Memory","description":"External API — retrieve agent long-term memories via API key.","operationId":"external_agent_memory_api_v1_agents__name__memory_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","title":"Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"External Agent Save Memory","description":"Save a long-term memory via external API — uses agent API key.","operationId":"external_agent_save_memory_api_v1_agents__name__memory_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LongMemoryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agents/{name}/info":{"get":{"summary":"External Agent Info","description":"External API — get agent info (model, tools, memory_enabled) via API key.","operationId":"external_agent_info_api_v1_agents__name__info_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/upload":{"post":{"summary":"Upload File","description":"Upload a file (public or private) with Self-Hosted CDN + signed URL support.","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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/{file_id}/signed-url":{"post":{"summary":"Create Signed Url Endpoint","description":"Create a time-limited signed URL for a private file.","operationId":"create_signed_url_endpoint_api_files__file_id__signed_url_post","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"expires_in","in":"query","required":false,"schema":{"type":"integer","default":300,"title":"Expires In"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/{file_id}":{"get":{"summary":"Get File","description":"Download a file. Private files require a signed URL token.","operationId":"get_file_api_files__file_id__get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/files/{file_id}/signed":{"get":{"summary":"Get File Signed","description":"Download a private file using a signed URL token.","operationId":"get_file_signed_api_files__file_id__signed_get","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vercel/connect":{"post":{"summary":"Api Vercel Connect","description":"Connect a Vercel account using an access token.","operationId":"api_vercel_connect_api_vercel_connect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/vercel/status":{"get":{"summary":"Api Vercel Status","description":"Check if Vercel is connected.","operationId":"api_vercel_status_api_vercel_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/vercel/projects":{"get":{"summary":"Api Vercel Projects","description":"List Vercel projects.","operationId":"api_vercel_projects_api_vercel_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/vercel/deployments":{"get":{"summary":"Api Vercel Deployments","description":"List recent Vercel deployments.","operationId":"api_vercel_deployments_api_vercel_deployments_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/vercel/deploy":{"post":{"summary":"Api Vercel Deploy","description":"Deploy an app to Vercel.","operationId":"api_vercel_deploy_api_vercel_deploy_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/vercel/disconnect":{"delete":{"summary":"Api Vercel Disconnect","description":"Disconnect Vercel.","operationId":"api_vercel_disconnect_api_vercel_disconnect_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/{service}/connect":{"post":{"summary":"Api Connect Integration","operationId":"api_connect_integration_api_integrations__service__connect_post","parameters":[{"name":"service","in":"path","required":true,"schema":{"type":"string","title":"Service"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/{service}/status":{"get":{"summary":"Api Integration Status","operationId":"api_integration_status_api_integrations__service__status_get","parameters":[{"name":"service","in":"path","required":true,"schema":{"type":"string","title":"Service"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/{service}/disconnect":{"delete":{"summary":"Api Disconnect Integration","operationId":"api_disconnect_integration_api_integrations__service__disconnect_delete","parameters":[{"name":"service","in":"path","required":true,"schema":{"type":"string","title":"Service"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/{service}/data":{"get":{"summary":"Api Integration Data","operationId":"api_integration_data_api_integrations__service__data_get","parameters":[{"name":"service","in":"path","required":true,"schema":{"type":"string","title":"Service"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/{service}/action":{"post":{"summary":"Api Integration Action","operationId":"api_integration_action_api_integrations__service__action_post","parameters":[{"name":"service","in":"path","required":true,"schema":{"type":"string","title":"Service"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workflows/execute":{"post":{"summary":"Api Execute Workflow","operationId":"api_execute_workflow_api_workflows_execute_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/projects":{"get":{"summary":"Api List Projects","operationId":"api_list_projects_api_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Api Create Project","operationId":"api_create_project_api_projects_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/plugins":{"get":{"summary":"List Plugins","description":"List all available plugins.","operationId":"list_plugins_api_plugins_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/plugins/{plugin_id}":{"get":{"summary":"Get Plugin Info","description":"Get details of a specific plugin.","operationId":"get_plugin_info_api_plugins__plugin_id__get","parameters":[{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/plugins/{plugin_id}/execute":{"post":{"summary":"Exec Plugin","description":"Execute a plugin — requires auth.","operationId":"exec_plugin_api_plugins__plugin_id__execute_post","parameters":[{"name":"plugin_id","in":"path","required":true,"schema":{"type":"string","title":"Plugin Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Params"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/browser":{"post":{"summary":"Browser Tool","operationId":"browser_tool_api_tools_browser_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserCmd"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/run":{"post":{"summary":"Run Code","operationId":"run_code_api_tools_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeRunReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/grep":{"post":{"summary":"File Grep","operationId":"file_grep_api_tools_grep_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrepReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/files":{"post":{"summary":"File Ops","operationId":"file_ops_api_tools_files_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools/subagent":{"post":{"summary":"Delegate Subagent","operationId":"delegate_subagent_api_tools_subagent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubAgentReq"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat/history":{"get":{"summary":"Get Chat History","description":"Load all chat history for the current user.","operationId":"get_chat_history_api_chat_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"summary":"Clear Chat History","description":"Clear all chat history for the current user.","operationId":"clear_chat_history_api_chat_history_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/playground":{"post":{"summary":"Playground Chat","description":"Model playground — test any model directly without creating an agent.\nNo builder system prompt, no entity creation, just pure model chat.","operationId":"playground_chat_api_playground_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/demo":{"post":{"summary":"Demo Playground","description":"Public demo endpoint — no authentication required.\nRate-limited to 5 requests per IP per 24 hours.\nUses auto-routing only (no model selection to prevent abuse).","operationId":"demo_playground_api_demo_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/playground/stream":{"post":{"summary":"Playground Stream","description":"Stream playground response via Server-Sent Events.","operationId":"playground_stream_api_playground_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/demo/stream":{"post":{"summary":"Demo Stream","description":"Stream demo response via SSE — no auth, rate-limited.","operationId":"demo_stream_api_demo_stream_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/chat":{"post":{"summary":"Chat Build","description":"AI chat builder — talk to the platform to create entities, functions, workflows.\nUses the local Ollama LLM to interpret intent and execute actions.","operationId":"chat_build_api_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessage"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps":{"get":{"summary":"List Apps","operationId":"list_apps_api_apps_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create App","operationId":"create_app_api_apps_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"App Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/{app_id}":{"get":{"summary":"Get App","operationId":"get_app_api_apps__app_id__get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update App","operationId":"update_app_api_apps__app_id__put","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Updates"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete App","operationId":"delete_app_api_apps__app_id__delete","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/{app_id}/publish":{"post":{"summary":"Publish App","operationId":"publish_app_api_apps__app_id__publish_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/slug/{slug}":{"get":{"summary":"Get App By Slug","operationId":"get_app_by_slug_api_apps_slug__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/slug/{slug}/entities":{"get":{"summary":"Get Public Entities","description":"Public endpoint: get entities for a published app. No auth required.","operationId":"get_public_entities_api_apps_slug__slug__entities_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/slug/{slug}/records/{entity_name}":{"get":{"summary":"Get Public Records","description":"Public endpoint: get records for a published app entity. No auth required.","operationId":"get_public_records_api_apps_slug__slug__records__entity_name__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"entity_name","in":"path","required":true,"schema":{"type":"string","title":"Entity Name"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Skip"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/{app_id}/pages":{"get":{"summary":"Get Pages","operationId":"get_pages_api_apps__app_id__pages_get","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Page","operationId":"create_page_api_apps__app_id__pages_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Page Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pages/{page_id}":{"put":{"summary":"Update Page","operationId":"update_page_api_pages__page_id__put","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Updates"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Page","operationId":"delete_page_api_pages__page_id__delete","parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"integer","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/components/palette":{"get":{"summary":"Get Component Palette","operationId":"get_component_palette_api_components_palette_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/templates":{"get":{"summary":"List Templates","description":"List available one-click app templates.","operationId":"list_templates_api_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/templates/{template_id}":{"get":{"summary":"Get Template Detail","description":"Get full template definition.","operationId":"get_template_detail_api_templates__template_id__get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/templates/{template_id}/create":{"post":{"summary":"Create From Template","description":"Create a complete app from a template: app + entities + pages + auto-publish.","operationId":"create_from_template_api_templates__template_id__create_post","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/{app_id}/auth/register":{"post":{"summary":"App Register","description":"Register a new user for a published app.","operationId":"app_register_api_apps__app_id__auth_register_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/{app_id}/auth/login":{"post":{"summary":"App Login","description":"Login to a published app.","operationId":"app_login_api_apps__app_id__auth_login_post","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/apps/{app_id}/auth-toggle":{"put":{"summary":"Toggle App Auth","description":"Toggle requires_auth on an app (platform builder only).","operationId":"toggle_app_auth_api_apps__app_id__auth_toggle_put","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"integer","title":"App Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sdk":{"get":{"summary":"Generate Sdk","operationId":"generate_sdk_api_sdk_get","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"js","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/providers":{"get":{"summary":"List Oauth Providers","operationId":"list_oauth_providers_api_connectors_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/connectors":{"get":{"summary":"List Connectors","operationId":"list_connectors_api_connectors_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Connector","operationId":"create_connector_api_connectors_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Connector Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/{connector_id}/auth-url":{"get":{"summary":"Get Auth Url","operationId":"get_auth_url_api_connectors__connector_id__auth_url_get","parameters":[{"name":"connector_id","in":"path","required":true,"schema":{"type":"integer","title":"Connector Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connectors/{connector_id}":{"delete":{"summary":"Delete Connector","operationId":"delete_connector_api_connectors__connector_id__delete","parameters":[{"name":"connector_id","in":"path","required":true,"schema":{"type":"integer","title":"Connector Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/versions":{"get":{"summary":"Get Versions","operationId":"get_versions_api_versions_get","parameters":[{"name":"entity_type","in":"query","required":false,"schema":{"type":"string","title":"Entity Type"}},{"name":"entity_id","in":"query","required":false,"schema":{"type":"string","title":"Entity Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/overview":{"get":{"summary":"Analytics Overview","description":"Platform-wide analytics overview.","operationId":"analytics_overview_api_analytics_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/activity":{"get":{"summary":"Get Activity","operationId":"get_activity_api_activity_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/token-packs":{"get":{"summary":"List Token Packs","description":"List all available token packs.","operationId":"list_token_packs_api_billing_token_packs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/plans":{"get":{"summary":"List Billing Plans","description":"List all subscription plans.","operationId":"list_billing_plans_api_billing_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/credits":{"get":{"summary":"Get User Credits","description":"Get current user credit balance and usage.","operationId":"get_user_credits_api_billing_credits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/transactions":{"get":{"summary":"Get Credit Transactions","description":"Get user credit transaction history.","operationId":"get_credit_transactions_api_billing_transactions_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/token-packs/purchases":{"get":{"summary":"Get Token Pack Purchases","description":"Get user token pack purchase history.","operationId":"get_token_pack_purchases_api_billing_token_packs_purchases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/token-packs/{pack_id}/purchase":{"post":{"summary":"Purchase Token Pack","description":"Purchase a token pack — adds credits to user account.","operationId":"purchase_token_pack_api_billing_token_packs__pack_id__purchase_post","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"integer","title":"Pack Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/logs":{"get":{"summary":"Get Logs","description":"Get platform activity logs.","operationId":"get_logs_api_logs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models":{"get":{"summary":"List Models","description":"List all available AI models — local Ollama + all OpenRouter engines (420+).","operationId":"list_models_api_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/monitor":{"get":{"summary":"Server Monitor","description":"Get server health and resource stats.","operationId":"server_monitor_api_monitor_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/files":{"get":{"summary":"List Files","description":"List uploaded files.","operationId":"list_files_api_files_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent-tools":{"get":{"summary":"List Agent Tools","description":"List all available tools that can be assigned to agents.","operationId":"list_agent_tools_api_agent_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/agents/{name}/tools":{"get":{"summary":"Get Agent Tools","description":"Get agent tools — requires auth.","operationId":"get_agent_tools_api_agents__name__tools_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Agent Tools","description":"Update an agent's tools configuration.","operationId":"update_agent_tools_api_agents__name__tools_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{},"title":"Tools"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{name}/settings":{"get":{"summary":"Get Agent Settings","description":"Get agent settings — requires auth.","operationId":"get_agent_settings_api_agents__name__settings_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Agent Settings","description":"Update agent settings — model, temperature, memory, tools, system_prompt, etc.","operationId":"update_agent_settings_api_agents__name__settings_put","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Settings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/status":{"get":{"summary":"Rag Status","description":"Get RAG engine status.","operationId":"rag_status_api_rag_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rag/collections":{"get":{"summary":"Rag Collections","description":"List RAG collections.","operationId":"rag_collections_api_rag_collections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/rag/query":{"post":{"summary":"Rag Query","description":"Query the RAG knowledge base.","operationId":"rag_query_api_rag_query_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/rag/ingest":{"post":{"summary":"Rag Ingest","description":"Ingest text into RAG collection.","operationId":"rag_ingest_api_rag_ingest_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/figma-import":{"post":{"summary":"Figma Import","description":"Import a Figma design and return component list.","operationId":"figma_import_api_figma_import_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Req"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/versions/{version_id}/restore":{"post":{"summary":"Restore Version","description":"Restore a specific version of an entity.","operationId":"restore_version_api_versions__version_id__restore_post","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/health":{"get":{"summary":"Context Health","description":"Check OpenViking context database health.","operationId":"context_health_api_context_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/resources":{"get":{"summary":"Context List Resources","description":"List all indexed resources.","operationId":"context_list_resources_api_context_resources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Context Add Resource","description":"Add a resource (repo URL, file, web page) to the context store.","operationId":"context_add_resource_api_context_resources_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/search":{"post":{"summary":"Context Search","description":"Semantic search across all context (code, docs, memories).","operationId":"context_search_api_context_search_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/recall":{"post":{"summary":"Context Recall","description":"Recall context optimized for agent injection.","operationId":"context_recall_api_context_recall_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/grep":{"post":{"summary":"Context Grep","description":"Grep within indexed content.","operationId":"context_grep_api_context_grep_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/content/write":{"post":{"summary":"Context Write Content","description":"Write content to a viking:// URI — explicit knowledge storage.","operationId":"context_write_content_api_context_content_write_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/content/read":{"get":{"summary":"Context Read Content","description":"Read content from a viking:// URI.","operationId":"context_read_content_api_context_content_read_get","parameters":[{"name":"uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Uri"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/content/overview":{"get":{"summary":"Context Content Overview","description":"Get L1 overview (structured summary) of a resource.","operationId":"context_content_overview_api_context_content_overview_get","parameters":[{"name":"uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Uri"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/knowledge":{"post":{"summary":"Context Store Knowledge","description":"Store explicit knowledge at a predictable URI.","operationId":"context_store_knowledge_api_context_knowledge_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/sessions":{"get":{"summary":"Context List Sessions","description":"List all sessions.","operationId":"context_list_sessions_api_context_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Context Create Session","description":"Create a new session for memory tracking.","operationId":"context_create_session_api_context_sessions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/sessions/{session_id}/messages":{"post":{"summary":"Context Add Messages","description":"Add messages to a session (batch).","operationId":"context_add_messages_api_context_sessions__session_id__messages_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/sessions/{session_id}/commit":{"post":{"summary":"Context Commit Session","description":"Commit a session — triggers async memory extraction.","operationId":"context_commit_session_api_context_sessions__session_id__commit_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/sessions/{session_id}/context":{"get":{"summary":"Context Get Session Context","description":"Get memories extracted from a session.","operationId":"context_get_session_context_api_context_sessions__session_id__context_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/sessions/{session_id}/extract":{"post":{"summary":"Context Extract Session","description":"Manually trigger memory extraction.","operationId":"context_extract_session_api_context_sessions__session_id__extract_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/memories/stats":{"get":{"summary":"Context Memory Stats","description":"Get statistics about stored memories.","operationId":"context_memory_stats_api_context_memories_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/fs/ls":{"get":{"summary":"Context List Fs","description":"List context at a viking:// path.","operationId":"context_list_fs_api_context_fs_ls_get","parameters":[{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"viking://","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/fs/tree":{"get":{"summary":"Context Tree Fs","description":"Show tree of context at a path.","operationId":"context_tree_fs_api_context_fs_tree_get","parameters":[{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"viking://","title":"Path"}},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","default":2,"title":"Depth"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/fs/stat":{"get":{"summary":"Context Stat Fs","description":"Get attributes of a context path.","operationId":"context_stat_fs_api_context_fs_stat_get","parameters":[{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/skills":{"get":{"summary":"Context List Skills","description":"List all stored skills.","operationId":"context_list_skills_api_context_skills_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Context Save Skill","description":"Save a reusable skill to the context store.","operationId":"context_save_skill_api_context_skills_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/skills/find":{"post":{"summary":"Context Find Skills","description":"Semantic search for skills.","operationId":"context_find_skills_api_context_skills_find_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/skills/{name}":{"get":{"summary":"Context Get Skill","description":"Get a specific skill by name.","operationId":"context_get_skill_api_context_skills__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context/evolution/outcomes":{"get":{"summary":"Context Evolution Outcomes","description":"Get agent evolution experience outcomes.","operationId":"context_evolution_outcomes_api_context_evolution_outcomes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/context/evolution/trajectories":{"get":{"summary":"Context Evolution Trajectories","description":"Get agent evolution experience trajectories.","operationId":"context_evolution_trajectories_api_context_evolution_trajectories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/orchestrate":{"post":{"summary":"Api Orchestrate","description":"Orchestrate a complex multi-step task with planning and self-correction.","operationId":"api_orchestrate_api_orchestrate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/dev-tools":{"get":{"summary":"Api List Connectors","description":"List all available developer tool connectors and their configuration status.","operationId":"api_list_connectors_api_dev_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/dev-tools/{connector_name}/execute":{"post":{"summary":"Api Execute Connector","description":"Execute an action on a connector.","operationId":"api_execute_connector_api_dev_tools__connector_name__execute_post","parameters":[{"name":"connector_name","in":"path","required":true,"schema":{"type":"string","title":"Connector Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AgentCreate":{"properties":{"name":{"type":"string","title":"Name","description":"Agent name"},"system_prompt":{"type":"string","title":"System Prompt","description":"System prompt — defines agent personality and behavior"},"model":{"type":"string","title":"Model","description":"AI model (auto, openai/gpt-oss-120b, z-ai/glm-5, qwen2.5:7b, etc.)","default":"auto"},"temperature":{"type":"number","title":"Temperature","description":"Temperature 0-1 (lower=precise, higher=creative)","default":0.7},"tools":{"items":{},"type":"array","title":"Tools","description":"Available tools"},"max_tokens":{"type":"integer","title":"Max Tokens","description":"Max response tokens","default":4096},"top_p":{"type":"number","title":"Top P","description":"Top-p nucleus sampling","default":0.9},"memory_enabled":{"type":"boolean","title":"Memory Enabled","description":"Whether agent persists memory across sessions","default":true},"stream":{"type":"boolean","title":"Stream","description":"Stream responses","default":false}},"type":"object","required":["name","system_prompt"],"title":"AgentCreate"},"AgentInvoke":{"properties":{"message":{"type":"string","title":"Message","description":"Message to the agent"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"}},"type":"object","required":["message"],"title":"AgentInvoke"},"AgentUpdate":{"properties":{"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"tools":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tools"},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens"},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P"},"memory_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Memory Enabled"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream"},"automation_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Automation Model"},"cross_app_access":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cross App Access"},"avatar":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar"},"identity_doc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Doc"},"share_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Share Enabled"},"collaborators":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Collaborators"},"channel_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Channel Config"},"allow_update_data":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Update Data"},"allow_delete_data":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Delete Data"},"auto_detect_secrets":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Detect Secrets"},"agent_secrets":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Agent Secrets"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},"type":"object","title":"AgentUpdate"},"AggregationPipeline":{"properties":{"pipeline":{"items":{},"type":"array","title":"Pipeline","description":"MongoDB-style aggregation pipeline"}},"type":"object","required":["pipeline"],"title":"AggregationPipeline"},"AutonomousStartRequest":{"properties":{"goal":{"type":"string","title":"Goal"},"context":{"type":"string","title":"Context","default":""},"max_rounds":{"type":"integer","title":"Max Rounds","default":10}},"type":"object","required":["goal"],"title":"AutonomousStartRequest"},"Body_upload_file_api_files_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_api_files_upload_post"},"BrowserCmd":{"properties":{"action":{"type":"string","title":"Action","default":"navigate"},"url":{"type":"string","title":"Url","default":""}},"type":"object","title":"BrowserCmd"},"ChatMessage":{"properties":{"message":{"type":"string","title":"Message"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["message"],"title":"ChatMessage"},"CodeRunReq":{"properties":{"code":{"type":"string","title":"Code"},"language":{"type":"string","title":"Language","default":"python"}},"type":"object","required":["code"],"title":"CodeRunReq"},"EntityCreate":{"properties":{"name":{"type":"string","title":"Name","description":"PascalCase entity name"},"schema":{"additionalProperties":true,"type":"object","title":"Schema","description":"JSON schema for entity fields"},"app_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"App Id","description":"App ID to scope entity to"}},"type":"object","required":["name","schema"],"title":"EntityCreate"},"EntityUpdate":{"properties":{"schema":{"additionalProperties":true,"type":"object","title":"Schema","description":"Updated JSON schema"}},"type":"object","required":["schema"],"title":"EntityUpdate"},"ExternalChatRequest":{"properties":{"message":{"type":"string","title":"Message","description":"Message to send to the agent"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context","description":"Additional context"},"save_memory":{"type":"boolean","title":"Save Memory","description":"Whether to save this interaction to long-term memory","default":true}},"type":"object","required":["message"],"title":"ExternalChatRequest"},"FileReq":{"properties":{"action":{"type":"string","title":"Action"},"path":{"type":"string","title":"Path"},"content":{"type":"string","title":"Content","default":""}},"type":"object","required":["action","path"],"title":"FileReq"},"FunctionCreate":{"properties":{"name":{"type":"string","title":"Name","description":"Function name (camelCase)"},"code":{"type":"string","title":"Code","description":"Python function code"},"env_vars":{"additionalProperties":true,"type":"object","title":"Env Vars"}},"type":"object","required":["name","code"],"title":"FunctionCreate"},"GrepReq":{"properties":{"pattern":{"type":"string","title":"Pattern"},"path":{"type":"string","title":"Path","default":"/opt/evolvixos"},"include":{"type":"string","title":"Include","default":"*.py"}},"type":"object","required":["pattern"],"title":"GrepReq"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LongMemoryCreate":{"properties":{"content":{"type":"string","title":"Content","description":"The memory content to persist"},"category":{"type":"string","title":"Category","description":"Category for grouping memories","default":"general"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional metadata"},"importance":{"type":"integer","title":"Importance","description":"Importance 1-10","default":5}},"type":"object","required":["content"],"title":"LongMemoryCreate"},"MCPRouterRequest":{"properties":{"query":{"type":"string","title":"Query"}},"type":"object","required":["query"],"title":"MCPRouterRequest"},"PlaygroundRequest":{"properties":{"message":{"type":"string","title":"Message","description":"Message to send to the model"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model ID or 'auto' for smart routing","default":"auto"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt","description":"Optional system prompt"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature","description":"Sampling temperature","default":0.7},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens","description":"Max response tokens","default":1000}},"type":"object","required":["message"],"title":"PlaygroundRequest"},"RAGAddRequest":{"properties":{"collection":{"type":"string","title":"Collection"},"text":{"type":"string","title":"Text","default":""},"url":{"type":"string","title":"Url","default":""},"source":{"type":"string","title":"Source","default":""}},"type":"object","required":["collection"],"title":"RAGAddRequest"},"RAGCreateRequest":{"properties":{"collection":{"type":"string","title":"Collection"}},"type":"object","required":["collection"],"title":"RAGCreateRequest"},"RAGQueryRequest":{"properties":{"collection":{"type":"string","title":"Collection"},"question":{"type":"string","title":"Question"},"model":{"type":"string","title":"Model","default":"auto"}},"type":"object","required":["collection","question"],"title":"RAGQueryRequest"},"RecordCreate":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Record data"}},"type":"object","required":["data"],"title":"RecordCreate"},"RecordUpdate":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Updated record data"}},"type":"object","required":["data"],"title":"RecordUpdate"},"SkillRunRequest":{"properties":{"name":{"type":"string","title":"Name"},"args":{"type":"string","title":"Args","default":""}},"type":"object","required":["name"],"title":"SkillRunRequest"},"SubAgentReq":{"properties":{"task":{"type":"string","title":"Task"},"context":{"type":"string","title":"Context","default":""}},"type":"object","required":["task"],"title":"SubAgentReq"},"TeamCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"members":{"items":{},"type":"array","title":"Members","default":[]}},"type":"object","required":["name"],"title":"TeamCreateRequest"},"TeamExecuteRequest":{"properties":{"team_name":{"type":"string","title":"Team Name"},"task":{"type":"string","title":"Task"},"context":{"type":"string","title":"Context","default":""}},"type":"object","required":["team_name","task"],"title":"TeamExecuteRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorkflowCreate":{"properties":{"name":{"type":"string","title":"Name"},"definition":{"additionalProperties":true,"type":"object","title":"Definition"},"trigger_type":{"type":"string","title":"Trigger Type","description":"scheduled | entity | connector"},"trigger_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Trigger Config"}},"type":"object","required":["name","definition","trigger_type"],"title":"WorkflowCreate"}}},"servers":[{"url":"/platform"}]}