{"openapi":"3.1.0","info":{"title":"Supervaizer API","description":"API version: v1  Controller version: 0.17.1\n\nAPI for controlling and managing Supervaize agents. \n\nMore information at [https://doc.supervaize.com](https://doc.supervaize.com)\n\n## Authentication\n\nSome endpoints require API key authentication. Protected endpoints expect the API key in the X-API-Key header.\n\n[Swagger](/docs)\n[Redoc](/redoc)\n[OpenAPI](/openapi.json)\n","termsOfService":"https://supervaize.com/terms/","contact":{"name":"Support Team","url":"https://supervaize.com/dev_contact/","email":"integration_support@supervaize.com"},"license":{"name":"Mozilla Public License 2.0","url":"https://mozilla.org/MPL/2.0/"},"version":"v1"},"paths":{"/api/supervaizer/contract":{"get":{"tags":["Supervision"],"summary":"Get Controller Contract","description":"Return the controller contract Studio should use for route resolution.","operationId":"get_controller_contract_api_supervaizer_contract_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Controller Contract Api Supervaizer Contract Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/jobs/{job_id}":{"get":{"tags":["Supervision"],"summary":"Get Job Status","description":"Get the status of a job by its ID","operationId":"get_job_status_api_supervaizer_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/jobs":{"get":{"tags":["Supervision"],"summary":"Get All Jobs","description":"Get all jobs across all agents with pagination and optional status filtering","operationId":"get_all_jobs_api_supervaizer_jobs_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of jobs to skip","default":0,"title":"Skip"},"description":"Number of jobs to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Number of jobs to return","default":100,"title":"Limit"},"description":"Number of jobs to return"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EntityStatus"},{"type":"null"}],"description":"Filter jobs by status","title":"Status"},"description":"Filter jobs by status"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/JobResponse"}},"title":"Response Get All Jobs Api Supervaizer Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/jobs/{job_id}/cases/{case_id}/update":{"post":{"tags":["Supervision"],"summary":"Update case with answer to question","description":"Provide an answer to a question that was requested by a case step","operationId":"update_case_with_answer_api_supervaizer_jobs__job_id__cases__case_id__update_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response 200 Update Case With Answer Api Supervaizer Jobs  Job Id  Cases  Case Id  Update Post"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents":{"get":{"tags":["Supervision"],"summary":"Get All Agents","description":"Get all registered agents with pagination","operationId":"get_all_agents_api_supervaizer_agents_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of jobs to skip","default":0,"title":"Skip"},"description":"Number of jobs to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Number of jobs to return","default":100,"title":"Limit"},"description":"Number of jobs to return"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentResponse"},"title":"Response Get All Agents Api Supervaizer Agents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agent/{agent_id}":{"get":{"tags":["Supervision"],"summary":"Get Agent Details","description":"Get details of a specific agent by ID","operationId":"get_agent_details_api_supervaizer_agent__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/utils/public_key":{"get":{"tags":["Supervision"],"summary":"Get server's public key","description":"Returns the server's public key in PEM format","operationId":"get_public_key_api_supervaizer_utils_public_key_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"string","title":"Response Get Public Key Api Supervaizer Utils Public Key Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/utils/encrypt":{"post":{"tags":["Supervision"],"summary":"Encrypt a string","description":"Encrypts a string using the server's public key. Example: {'key':'value'}","operationId":"encrypt_string_api_supervaizer_utils_encrypt_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"string","title":"Text"}}}},"responses":{"200":{"description":"The encrypted string","content":{"application/json":{"schema":{"type":"string","title":"Response Encrypt String Api Supervaizer Utils Encrypt Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/hello-world-ai-agent/":{"get":{"tags":["Supervision","Supervision","Supervision"],"summary":"Get information about the agent Hello World AI Agent","description":"Detailed information about the agent, returned as a JSON object with Agent class fields","operationId":"agent_info_api_supervaizer_agents_hello_world_ai_agent__get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/hello-world-ai-agent/supervaize_instructions.html":{"get":{"tags":["Supervision","Supervision","Supervision"],"summary":"Get supervaize instructions page for agent Hello World AI Agent","description":"HTML page displaying agent registration information and instructions","operationId":"supervaize_instructions_api_supervaizer_agents_hello_world_ai_agent_supervaize_instructions_html_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/hello-world-ai-agent/validate-agent-parameters":{"post":{"tags":["Supervision","Supervision"],"summary":"Validate agent parameters for agent: Hello World AI Agent","description":"Validate agent configuration parameters (secrets, API keys, etc.) before starting a job","operationId":"validate_agent_parameters_api_supervaizer_agents_hello_world_ai_agent_validate_agent_parameters_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Body Params"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 200 Validate Agent Parameters Api Supervaizer Agents Hello World Ai Agent Validate Agent Parameters Post"}}}},"400":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 400 Validate Agent Parameters Api Supervaizer Agents Hello World Ai Agent Validate Agent Parameters Post"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/hello-world-ai-agent/validate-method-fields":{"post":{"tags":["Supervision","Supervision"],"summary":"Validate method fields for agent: Hello World AI Agent","description":"Validate job input fields against the method's field definitions before starting a job","operationId":"validate_method_fields_api_supervaizer_agents_hello_world_ai_agent_validate_method_fields_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Body Params"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 200 Validate Method Fields Api Supervaizer Agents Hello World Ai Agent Validate Method Fields Post"}}}},"400":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 400 Validate Method Fields Api Supervaizer Agents Hello World Ai Agent Validate Method Fields Post"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/hello-world-ai-agent/start/dynamic_choices":{"post":{"tags":["Supervision","Supervision"],"summary":"Get dynamic choices for agent: Hello World AI Agent start method","description":"Returns dynamic choice values for fields that use dynamic_choices. Accepts workspace and mission context (including workspace slug) for contextualized choices.","operationId":"get_dynamic_choices_api_supervaizer_agents_hello_world_ai_agent_start_dynamic_choices_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Body Params"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 200 Get Dynamic Choices Api Supervaizer Agents Hello World Ai Agent Start Dynamic Choices Post"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/hello-world-ai-agent/jobs":{"post":{"tags":["Supervision","Supervision"],"summary":"Start a job with agent: Hello World AI Agent","description":"None","operationId":"start_job_api_supervaizer_agents_hello_world_ai_agent_jobs_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Body Params"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 400 Start Job Api Supervaizer Agents Hello World Ai Agent Jobs Post"}}},"description":"Bad Request"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Supervision","Supervision"],"summary":"Get all jobs for agent: Hello World AI Agent","description":"Get all jobs for this agent with pagination and optional status filtering","operationId":"get_agent_jobs_api_supervaizer_agents_hello_world_ai_agent_jobs_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of jobs to skip","default":0,"title":"Skip"},"description":"Number of jobs to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Number of jobs to return","default":100,"title":"Limit"},"description":"Number of jobs to return"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EntityStatus"},{"type":"null"}],"description":"Filter jobs by status","title":"Status"},"description":"Filter jobs by status"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobResponse"},"title":"Response 200 Get Agent Jobs Api Supervaizer Agents Hello World Ai Agent Jobs Get"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/hello-world-ai-agent/jobs/{job_id}":{"get":{"tags":["Supervision","Supervision"],"summary":"Get job status for agent: Hello World AI Agent","description":"Get the status and details of a specific job","operationId":"get_job_status_api_supervaizer_agents_hello_world_ai_agent_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/hello-world-ai-agent/stop":{"post":{"tags":["Supervision","Supervision"],"summary":"Stop the agent: Hello World AI Agent","description":"Stop the agent","operationId":"stop_agent_api_supervaizer_agents_hello_world_ai_agent_stop_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Params"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}},"description":"Accepted"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/hello-world-ai-agent/status":{"post":{"tags":["Supervision","Supervision"],"summary":"Get the status of the agent: Hello World AI Agent","description":"Get the status of the agent","operationId":"status_agent_api_supervaizer_agents_hello_world_ai_agent_status_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentMethodParams"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}},"description":"Accepted"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/hello-world-ai-agent/parameters":{"post":{"tags":["Supervision","Supervision"],"summary":"Server updates agent: Hello World AI Agent","description":"Server updates agent onboarding status and/or encrypted parameters","operationId":"server_update_agent_api_supervaizer_agents_hello_world_ai_agent_parameters_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_server_update_agent_api_supervaizer_agents_hello_world_ai_agent_parameters_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/human-in-the-loop-agent/":{"get":{"tags":["Supervision","Supervision","Supervision"],"summary":"Get information about the agent Human-in-the-Loop Agent","description":"Detailed information about the agent, returned as a JSON object with Agent class fields","operationId":"agent_info_api_supervaizer_agents_human_in_the_loop_agent__get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/human-in-the-loop-agent/supervaize_instructions.html":{"get":{"tags":["Supervision","Supervision","Supervision"],"summary":"Get supervaize instructions page for agent Human-in-the-Loop Agent","description":"HTML page displaying agent registration information and instructions","operationId":"supervaize_instructions_api_supervaizer_agents_human_in_the_loop_agent_supervaize_instructions_html_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/human-in-the-loop-agent/validate-agent-parameters":{"post":{"tags":["Supervision","Supervision"],"summary":"Validate agent parameters for agent: Human-in-the-Loop Agent","description":"Validate agent configuration parameters (secrets, API keys, etc.) before starting a job","operationId":"validate_agent_parameters_api_supervaizer_agents_human_in_the_loop_agent_validate_agent_parameters_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Body Params"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 200 Validate Agent Parameters Api Supervaizer Agents Human In The Loop Agent Validate Agent Parameters Post"}}}},"400":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 400 Validate Agent Parameters Api Supervaizer Agents Human In The Loop Agent Validate Agent Parameters Post"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/human-in-the-loop-agent/validate-method-fields":{"post":{"tags":["Supervision","Supervision"],"summary":"Validate method fields for agent: Human-in-the-Loop Agent","description":"Validate job input fields against the method's field definitions before starting a job","operationId":"validate_method_fields_api_supervaizer_agents_human_in_the_loop_agent_validate_method_fields_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Body Params"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 200 Validate Method Fields Api Supervaizer Agents Human In The Loop Agent Validate Method Fields Post"}}}},"400":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 400 Validate Method Fields Api Supervaizer Agents Human In The Loop Agent Validate Method Fields Post"}}},"description":"Bad Request"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/human-in-the-loop-agent/start/dynamic_choices":{"post":{"tags":["Supervision","Supervision"],"summary":"Get dynamic choices for agent: Human-in-the-Loop Agent start method","description":"Returns dynamic choice values for fields that use dynamic_choices. Accepts workspace and mission context (including workspace slug) for contextualized choices.","operationId":"get_dynamic_choices_api_supervaizer_agents_human_in_the_loop_agent_start_dynamic_choices_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Body Params"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 200 Get Dynamic Choices Api Supervaizer Agents Human In The Loop Agent Start Dynamic Choices Post"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/human-in-the-loop-agent/jobs":{"post":{"tags":["Supervision","Supervision"],"summary":"Start a job with agent: Human-in-the-Loop Agent","description":"None","operationId":"start_job_api_supervaizer_agents_human_in_the_loop_agent_jobs_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"title":"Body Params"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response 400 Start Job Api Supervaizer Agents Human In The Loop Agent Jobs Post"}}},"description":"Bad Request"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Supervision","Supervision"],"summary":"Get all jobs for agent: Human-in-the-Loop Agent","description":"Get all jobs for this agent with pagination and optional status filtering","operationId":"get_agent_jobs_api_supervaizer_agents_human_in_the_loop_agent_jobs_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of jobs to skip","default":0,"title":"Skip"},"description":"Number of jobs to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Number of jobs to return","default":100,"title":"Limit"},"description":"Number of jobs to return"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/EntityStatus"},{"type":"null"}],"description":"Filter jobs by status","title":"Status"},"description":"Filter jobs by status"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobResponse"},"title":"Response 200 Get Agent Jobs Api Supervaizer Agents Human In The Loop Agent Jobs Get"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/human-in-the-loop-agent/jobs/{job_id}":{"get":{"tags":["Supervision","Supervision"],"summary":"Get job status for agent: Human-in-the-Loop Agent","description":"Get the status and details of a specific job","operationId":"get_job_status_api_supervaizer_agents_human_in_the_loop_agent_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/human-in-the-loop-agent/stop":{"post":{"tags":["Supervision","Supervision"],"summary":"Stop the agent: Human-in-the-Loop Agent","description":"Stop the agent","operationId":"stop_agent_api_supervaizer_agents_human_in_the_loop_agent_stop_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Params"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}},"description":"Accepted"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/human-in-the-loop-agent/status":{"post":{"tags":["Supervision","Supervision"],"summary":"Get the status of the agent: Human-in-the-Loop Agent","description":"Get the status of the agent","operationId":"status_agent_api_supervaizer_agents_human_in_the_loop_agent_status_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentMethodParams"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}},"description":"Accepted"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/supervaizer/agents/human-in-the-loop-agent/parameters":{"post":{"tags":["Supervision","Supervision"],"summary":"Server updates agent: Human-in-the-Loop Agent","description":"Server updates agent onboarding status and/or encrypted parameters","operationId":"server_update_agent_api_supervaizer_agents_human_in_the_loop_agent_parameters_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_server_update_agent_api_supervaizer_agents_human_in_the_loop_agent_parameters_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Internal Server Error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/hello-world-ai-agent/data/contacts/":{"get":{"tags":["Data Resources"],"summary":"List Contacts","operationId":"hello-world-ai-agent_contacts_list","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Hello-World-Ai-Agent Contacts List"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Data Resources"],"summary":"Create Contacts","operationId":"hello-world-ai-agent_contacts_create","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/hello-world-ai-agent/data/contacts/{item_id}":{"get":{"tags":["Data Resources"],"summary":"Get Contacts","operationId":"hello-world-ai-agent_contacts_get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hello-World-Ai-Agent Contacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Data Resources"],"summary":"Update Contacts","operationId":"hello-world-ai-agent_contacts_update","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hello-World-Ai-Agent Contacts Update"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Data Resources"],"summary":"Delete Contacts","operationId":"hello-world-ai-agent_contacts_delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/hello-world-ai-agent/data/contacts/import/":{"post":{"tags":["Data Resources"],"summary":"Import Contacts (bulk)","operationId":"hello-world-ai-agent_contacts_import","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Records"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hello-World-Ai-Agent Contacts Import"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"tags":["Public"],"summary":"Home Page","operationId":"home_page__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/.well-known/agents.json":{"get":{"tags":["Public","Protocol A2A"],"summary":"A2A Agents Discovery","description":"Returns a list of all agents according to A2A protocol specification","operationId":"get_a2a_agents__well_known_agents_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get A2A Agents  Well Known Agents Json Get"}}}}}}},"/.well-known/health":{"get":{"tags":["Public","Protocol A2A"],"summary":"A2A Health Status","description":"Returns health information about the server and agents","operationId":"get_health__well_known_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Health  Well Known Health Get"}}}}}}},"/.well-known/agents/v1.0/hello-world-ai-agent_agent.json":{"get":{"tags":["Public","Protocol A2A"],"summary":"A2A Agent Card for Hello World AI Agent (v1)","description":"Returns agent card for Hello World AI Agent according to A2A protocol specification","operationId":"get_agent_card__well_known_agents_v1_0_hello_world_ai_agent_agent_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Agent Card  Well Known Agents V1 0 Hello World Ai Agent Agent Json Get"}}}}}}},"/.well-known/agents/hello-world-ai-agent_agent.json":{"get":{"tags":["Public","Protocol A2A"],"summary":"A2A Agent Card for Hello World AI Agent (Legacy)","description":"Legacy endpoint for Hello World AI Agent agent card","operationId":"get_agent_card_legacy__well_known_agents_hello_world_ai_agent_agent_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Agent Card Legacy  Well Known Agents Hello World Ai Agent Agent Json Get"}}}}}}},"/.well-known/agents/v1.0/human-in-the-loop-agent_agent.json":{"get":{"tags":["Public","Protocol A2A"],"summary":"A2A Agent Card for Human-in-the-Loop Agent (v1)","description":"Returns agent card for Human-in-the-Loop Agent according to A2A protocol specification","operationId":"get_agent_card__well_known_agents_v1_0_human_in_the_loop_agent_agent_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Agent Card  Well Known Agents V1 0 Human In The Loop Agent Agent Json Get"}}}}}}},"/.well-known/agents/human-in-the-loop-agent_agent.json":{"get":{"tags":["Public","Protocol A2A"],"summary":"A2A Agent Card for Human-in-the-Loop Agent (Legacy)","description":"Legacy endpoint for Human-in-the-Loop Agent agent card","operationId":"get_agent_card_legacy__well_known_agents_human_in_the_loop_agent_agent_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Agent Card Legacy  Well Known Agents Human In The Loop Agent Agent Json Get"}}}}}}},"/manage/":{"get":{"tags":["admin"],"summary":"Admin Dashboard","description":"Admin dashboard page.","operationId":"admin_dashboard_manage__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/manage/jobs":{"get":{"tags":["admin"],"summary":"Admin Jobs Page","description":"Jobs management page.","operationId":"admin_jobs_page_manage_jobs_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/manage/cases":{"get":{"tags":["admin"],"summary":"Admin Cases Page","description":"Cases management page.","operationId":"admin_cases_page_manage_cases_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/manage/server":{"get":{"tags":["admin"],"summary":"Admin Server Page","description":"Server status and configuration page.","operationId":"admin_server_page_manage_server_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/manage/agents":{"get":{"tags":["admin"],"summary":"Admin Agents Page","description":"Agents management page.","operationId":"admin_agents_page_manage_agents_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/manage/job-start-test":{"get":{"tags":["admin"],"summary":"Admin Job Start Test Page","description":"Job start form test page.","operationId":"admin_job_start_test_page_manage_job_start_test_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/manage/static/{file_path}":{"get":{"tags":["admin"],"summary":"Serve Static","description":"Serve static files from the admin static directory.","operationId":"serve_static_manage_static__file_path__get","parameters":[{"name":"file_path","in":"path","required":true,"schema":{"type":"string","title":"File Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/console":{"get":{"tags":["admin"],"summary":"Admin Console Page","description":"Interactive console page — access enforced by Tailscale at router level.","operationId":"admin_console_page_manage_console_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/manage/api/stats":{"get":{"tags":["admin"],"summary":"Get Stats","description":"Get system statistics.","operationId":"get_stats_manage_api_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminStats"}}}}}}},"/manage/api/server/status":{"get":{"tags":["admin"],"summary":"Get Server Status Api","description":"Get current server status for HTMX refresh.","operationId":"get_server_status_api_manage_api_server_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/manage/api/server/register":{"post":{"tags":["admin"],"summary":"Register Server With Supervisor","description":"Trigger SERVER_REGISTER to the supervaizer supervisor (no frontend API key; backend sends to SUPERVAIZE_API_URL).","operationId":"register_server_with_supervisor_manage_api_server_register_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/manage/api/agents":{"get":{"tags":["admin"],"summary":"Get Agents Api","description":"Get agents with filtering for HTMX refresh.","operationId":"get_agents_api_manage_api_agents_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"agent_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"-created_at","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/api/agents/{agent_slug}":{"get":{"tags":["admin"],"summary":"Get Agent Details","description":"Get detailed agent information.","operationId":"get_agent_details_manage_api_agents__agent_slug__get","parameters":[{"name":"agent_slug","in":"path","required":true,"schema":{"type":"string","title":"Agent Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/api/jobs":{"get":{"tags":["admin"],"summary":"Get Jobs Api","description":"Get jobs with filtering and pagination.","operationId":"get_jobs_api_manage_api_jobs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"agent_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"-created_at","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"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"}}}}}}},"/manage/api/jobs/{job_id}":{"get":{"tags":["admin"],"summary":"Get Job Details","description":"Get detailed job information.","operationId":"get_job_details_manage_api_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Job","description":"Delete a job and its related cases.","operationId":"delete_job_manage_api_jobs__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Delete Job Manage Api Jobs  Job Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/api/cases":{"get":{"tags":["admin"],"summary":"Get Cases Api","description":"Get cases with filtering and pagination.","operationId":"get_cases_api_manage_api_cases_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"-created_at","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"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"}}}}}}},"/manage/api/cases/{case_id}":{"get":{"tags":["admin"],"summary":"Get Case Details","description":"Get detailed case information.","operationId":"get_case_details_manage_api_cases__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Case","description":"Delete a case.","operationId":"delete_case_manage_api_cases__case_id__delete","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Delete Case Manage Api Cases  Case Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/api/jobs/{job_id}/status":{"post":{"tags":["admin"],"summary":"Update Job Status","description":"Update job status.","operationId":"update_job_status_manage_api_jobs__job_id__status_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Status Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Update Job Status Manage Api Jobs  Job Id  Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/api/cases/{case_id}/status":{"post":{"tags":["admin"],"summary":"Update Case Status","description":"Update case status.","operationId":"update_case_status_manage_api_cases__case_id__status_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Status Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Update Case Status Manage Api Cases  Case Id  Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/api/recent-activity":{"get":{"tags":["admin"],"summary":"Get Recent Activity","description":"Get recent entity activity.","operationId":"get_recent_activity_manage_api_recent_activity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/manage/log-stream":{"get":{"tags":["admin"],"summary":"Log Stream","description":"Stream log messages via Server-Sent Events.","operationId":"log_stream_manage_log_stream_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/manage/test-log":{"get":{"tags":["admin"],"summary":"Test Log","description":"Test endpoint to generate a log message.","operationId":"test_log_manage_test_log_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Test Log Manage Test Log Get"}}}}}}},"/manage/test-loguru":{"get":{"tags":["admin"],"summary":"Test Loguru","description":"Test endpoint to generate loguru messages.","operationId":"test_loguru_manage_test_loguru_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Test Loguru Manage Test Loguru Get"}}}}}}},"/manage/debug-queue":{"get":{"tags":["admin"],"summary":"Debug Queue","description":"Debug endpoint to check log queue status.","operationId":"debug_queue_manage_debug_queue_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Debug Queue Manage Debug Queue Get"}}}}}}},"/manage/api/console/execute":{"post":{"tags":["admin"],"summary":"Execute Console Command","description":"Execute a console command — access enforced by Tailscale at router level.","operationId":"execute_console_command_manage_api_console_execute_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Command Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Execute Console Command Manage Api Console Execute Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench":{"get":{"tags":["admin","workbench"],"summary":"Workbench Page","description":"Render the main workbench page.","operationId":"workbench_page_manage_agents__slug__workbench_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench/start":{"post":{"tags":["admin","workbench"],"summary":"Workbench Start Job","description":"Start a job from the workbench — no Studio communication.","operationId":"workbench_start_job_manage_agents__slug__workbench_start_post","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"}}}}}}},"/manage/agents/{slug}/workbench/jobs/{job_id}":{"get":{"tags":["admin","workbench"],"summary":"Workbench Job Monitor","description":"HTMX partial — returns execution monitor HTML for polling.","operationId":"workbench_job_monitor_manage_agents__slug__workbench_jobs__job_id__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench/jobs/{job_id}/stop":{"post":{"tags":["admin","workbench"],"summary":"Workbench Stop Job","description":"Stop a running job.","operationId":"workbench_stop_job_manage_agents__slug__workbench_jobs__job_id__stop_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench/jobs/{job_id}/poll":{"post":{"tags":["admin","workbench"],"summary":"Workbench Poll Job","description":"Trigger manual poll for external updates on a job.","operationId":"workbench_poll_job_manage_agents__slug__workbench_jobs__job_id__poll_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench/jobs/{job_id}/status":{"get":{"tags":["admin","workbench"],"summary":"Workbench Job Status","description":"Get job status via agent's job_status method.","operationId":"workbench_job_status_manage_agents__slug__workbench_jobs__job_id__status_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench/jobs/{job_id}/cases/{case_id}/answer":{"post":{"tags":["admin","workbench"],"summary":"Workbench Answer Hitl","description":"Submit HITL answer — two-step dispatch (receive + invoke human_answer).","operationId":"workbench_answer_hitl_manage_agents__slug__workbench_jobs__job_id__cases__case_id__answer_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench/jobs/{job_id}/steps/{case_id}/{step_index}/execute":{"post":{"tags":["admin","workbench"],"summary":"Workbench Execute Step","description":"Execute a scheduled step immediately.","operationId":"workbench_execute_step_manage_agents__slug__workbench_jobs__job_id__steps__case_id___step_index__execute_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"step_index","in":"path","required":true,"schema":{"type":"integer","title":"Step Index"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench/jobs/{job_id}/steps/{case_id}/{step_index}/cancel":{"post":{"tags":["admin","workbench"],"summary":"Workbench Cancel Step","description":"Cancel a pending scheduled step.","operationId":"workbench_cancel_step_manage_agents__slug__workbench_jobs__job_id__steps__case_id___step_index__cancel_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"step_index","in":"path","required":true,"schema":{"type":"integer","title":"Step Index"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench/jobs/{job_id}/steps/{case_id}/{step_index}/schedule":{"patch":{"tags":["admin","workbench"],"summary":"Workbench Reschedule Step","description":"Reschedule a pending scheduled step.","operationId":"workbench_reschedule_step_manage_agents__slug__workbench_jobs__job_id__steps__case_id___step_index__schedule_patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"step_index","in":"path","required":true,"schema":{"type":"integer","title":"Step Index"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench/console":{"get":{"tags":["admin","workbench"],"summary":"Workbench Console","description":"HTMX partial — returns recent console log entries.","operationId":"workbench_console_manage_agents__slug__workbench_console_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/agents/{slug}/workbench/jobs":{"get":{"tags":["admin","workbench"],"summary":"Workbench Jobs List","description":"HTMX partial — returns job history list.","operationId":"workbench_jobs_list_manage_agents__slug__workbench_jobs_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/context":{"get":{"summary":"Api Context","description":"Return context for the home page (version, base URLs, show_admin).","operationId":"api_context_api_context_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Api Context Api Context Get"}}}}}}}},"components":{"schemas":{"AdminStats":{"properties":{"jobs":{"additionalProperties":{"type":"integer"},"type":"object","title":"Jobs"},"cases":{"additionalProperties":{"type":"integer"},"type":"object","title":"Cases"},"collections":{"type":"integer","title":"Collections"}},"type":"object","required":["jobs","cases","collections"],"title":"AdminStats","description":"Statistics for admin dashboard."},"AgentMethod":{"properties":{"name":{"type":"string","title":"Name","description":"The name of the method"},"method":{"type":"string","title":"Method","description":"The name of the method in the project's codebase that will be called with the provided parameters"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Params","description":"A simple key-value dictionary of parameters what will be passed to the AgentMethod.method as kwargs"},"fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentMethodField"},"type":"array"},{"type":"null"}],"title":"Fields","description":"A list of field specifications for generating forms/UI, following the django.forms.fields definition"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional description of what the method does"},"is_async":{"type":"boolean","title":"Is Async","description":"Whether the method is asynchronous","default":false},"nodes":{"anyOf":[{"$ref":"#/components/schemas/CaseNodes"},{"type":"null"}],"description":"The definition of the Case Nodes (=steps) for this method"}},"type":"object","required":["name","method"],"title":"AgentMethod"},"AgentMethodField":{"properties":{"name":{"type":"string","title":"Name","description":"The name of the field - displayed in the UI"},"type":{"title":"Type","description":"Python type of the field for pydantic validation - note , ChoiceField and MultipleChoiceField are a list[str]"},"field_type":{"anyOf":[{"$ref":"#/components/schemas/FieldTypeEnum"},{"type":"string"}],"title":"Field Type","description":"Field type for persistence","default":"CharField"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the field - displayed in the UI"},"choices":{"anyOf":[{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Choices","description":"For choice fields, list of [value, label] pairs"},"default":{"title":"Default","description":"Default value for the field - displayed in the UI"},"widget":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Widget","description":"UI widget to use (e.g. RadioSelect, TextInput) - as a django widget name"},"required":{"type":"boolean","title":"Required","description":"Whether field is required for form submission","default":false},"dynamic_choices":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dynamic Choices","description":"Key name for dynamic choices resolved at runtime via Agent.dynamic_choices_callback. Mutually exclusive with 'choices'."}},"type":"object","required":["name","type"],"title":"AgentMethodField","description":"Represents a field specification for generating forms/UI in the Supervaize platform.\n\nFields are used to define user input parameters that will be collected through\nthe UI and passed as kwargs to the AgentMethod.method. They follow Django forms\nfield definitions for consistency.\n\n\n- [Django Widgets](https://docs.djangoproject.com/en/5.2/ref/forms/widgets/)\n\n\n** field_type  - available field types ** [Django Field classes](https://docs.djangoproject.com/en/5.2/ref/forms/fields/#built-in-field-classes)\n\n    - `CharField` - Text input\n    - `IntegerField` - Number input\n    - `BooleanField` - Checkbox\n    - `ChoiceField` - Dropdown with options\n    - `MultipleChoiceField` - Multi-select\n    - `JSONField` - JSON data input","examples":[{"choices":[["B","Blue"],["R","Red"],["G","Green"]],"field_type":"MultipleChoiceField","name":"color","required":true,"type":"list[str]","widget":"RadioSelect"},{"field_type":"IntegerField","name":"age","required":false,"type":"int","widget":"NumberInput"}]},"AgentMethodParams":{"properties":{"params":{"additionalProperties":true,"type":"object","title":"Params","description":"A simple key-value dictionary of parameters what will be passed to the AgentMethod.method as kwargs"}},"type":"object","title":"AgentMethodParams","description":"Method parameters for agent operations."},"AgentMethods":{"properties":{"job_start":{"$ref":"#/components/schemas/AgentMethod"},"job_stop":{"anyOf":[{"$ref":"#/components/schemas/AgentMethod"},{"type":"null"}]},"job_status":{"anyOf":[{"$ref":"#/components/schemas/AgentMethod"},{"type":"null"}]},"job_poll":{"anyOf":[{"$ref":"#/components/schemas/AgentMethod"},{"type":"null"}]},"human_answer":{"anyOf":[{"$ref":"#/components/schemas/AgentMethod"},{"type":"null"}]},"chat":{"anyOf":[{"$ref":"#/components/schemas/AgentMethod"},{"type":"null"}]},"custom":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/AgentMethod"},"type":"object"},{"type":"null"}],"title":"Custom"}},"type":"object","required":["job_start"],"title":"AgentMethods"},"AgentResponse":{"properties":{"name":{"type":"string","title":"Name"},"id":{"type":"string","title":"Id"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"developer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Developer"},"maintainer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maintainer"},"editor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Editor"},"version":{"type":"string","title":"Version"},"api_path":{"type":"string","title":"Api Path"},"description":{"type":"string","title":"Description"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"methods":{"anyOf":[{"$ref":"#/components/schemas/AgentMethods"},{"type":"null"}]},"parameters_setup":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Parameters Setup"},"server_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Agent Id"},"server_agent_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Agent Status"},"server_agent_onboarding_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Agent Onboarding Status"},"server_encrypted_parameters":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Encrypted Parameters"}},"type":"object","required":["name","id","version","api_path","description"],"title":"AgentResponse","description":"Response model for agent endpoints - values provided by Agent.registration_info"},"Body_server_update_agent_api_supervaizer_agents_hello_world_ai_agent_parameters_post":{"properties":{"onboarding_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onboarding Status"},"parameters_encrypted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parameters Encrypted"}},"type":"object","title":"Body_server_update_agent_api_supervaizer_agents_hello_world_ai_agent_parameters_post"},"Body_server_update_agent_api_supervaizer_agents_human_in_the_loop_agent_parameters_post":{"properties":{"onboarding_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onboarding Status"},"parameters_encrypted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parameters Encrypted"}},"type":"object","title":"Body_server_update_agent_api_supervaizer_agents_human_in_the_loop_agent_parameters_post"},"CaseNode":{"properties":{"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/CaseNodeType"},"factory":{"title":"Factory"},"description":{"type":"string","title":"Description","default":""},"can_be_confirmed":{"type":"boolean","title":"Can Be Confirmed","default":false}},"type":"object","required":["name","type"],"title":"CaseNode"},"CaseNodeType":{"type":"string","enum":["chat","trigger","notification","status_update","intermediary_delivery","human_in_the_loop","deliverable","validation","delivery","error","warning","info"],"title":"CaseNodeType","description":"CaseNodeType is an enum that represents the type of a case note."},"CaseNodes":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/CaseNode"},"type":"array","title":"Nodes","default":[]}},"type":"object","title":"CaseNodes"},"CaseUpdateRequest":{"properties":{"answer":{"additionalProperties":true,"type":"object","title":"Answer"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["answer"],"title":"CaseUpdateRequest","description":"Request model for updating a case with answer to a question."},"EntityStatus":{"type":"string","enum":["stopped","in_progress","cancelling","awaiting","completed","failed","cancelled"],"title":"EntityStatus","description":"Base status enum for workflow entities."},"ErrorResponse":{"properties":{"error":{"type":"string","title":"Error"},"error_type":{"$ref":"#/components/schemas/ErrorType"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","default":"2026-09-11T16:13:32.121594"},"status_code":{"type":"integer","title":"Status Code"}},"type":"object","required":["error","error_type","status_code"],"title":"ErrorResponse","description":"Standard error response model"},"ErrorType":{"type":"string","enum":["job_not_found","job_already_exists","agent_not_found","invalid_request","internal_error","invalid_parameters"],"title":"ErrorType","description":"Enumeration of possible error types"},"FieldTypeEnum":{"type":"string","enum":["CharField","IntegerField","BooleanField","ChoiceField","MultipleChoiceField","DateField","DateTimeField","FloatField","EmailField"],"title":"FieldTypeEnum"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Job":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"agent_name":{"type":"string","title":"Agent Name"},"status":{"$ref":"#/components/schemas/EntityStatus"},"job_context":{"$ref":"#/components/schemas/JobContext"},"payload":{"anyOf":[{},{"type":"null"}],"title":"Payload"},"result":{"anyOf":[{},{"type":"null"}],"title":"Result"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"responses":{"items":{"$ref":"#/components/schemas/JobResponse"},"type":"array","title":"Responses","default":[]},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"agent_parameters":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Agent Parameters"},"case_ids":{"items":{"type":"string"},"type":"array","title":"Case Ids","default":[]},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Agent-provided domain metadata (e.g. campaign context)"}},"type":"object","required":["id","name","agent_name","status","job_context"],"title":"Job","description":"Jobs are typically created by the platform and are not created by the agent.\n\nArgs:\n    id (str): Unique identifier for the job - provided by the platform\n    agent_name (str): Name (slug) of the agent running the job\n    status (EntityStatus): Current status of the job\n    job_context (JobContext): Context information for the job\n    payload (Any, optional): Job payload data. Defaults to None\n    result (Any, optional): Job result data. Defaults to None\n    error (str, optional): Error message if job failed. Defaults to None\n    responses (list[JobResponse], optional): List of job responses. Defaults to empty list\n    finished_at (datetime, optional): When job completed. Defaults to None\n    created_at (datetime, optional): When job was created. Defaults to None"},"JobContext":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"job_id":{"type":"string","title":"Job Id"},"started_by":{"type":"string","title":"Started By"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"mission_id":{"type":"string","title":"Mission Id"},"mission_name":{"type":"string","title":"Mission Name"},"mission_context":{"title":"Mission Context"},"job_instructions":{"anyOf":[{"$ref":"#/components/schemas/JobInstructions"},{"type":"null"}]}},"type":"object","required":["workspace_id","job_id","started_by","started_at","mission_id","mission_name"],"title":"JobContext"},"JobInstructions":{"properties":{"max_cases":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Cases"},"max_duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Duration"},"max_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Cost"},"stop_on_warning":{"type":"boolean","title":"Stop On Warning","default":false},"stop_on_error":{"type":"boolean","title":"Stop On Error","default":true},"job_start_time":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Job Start Time"}},"type":"object","title":"JobInstructions"},"JobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"$ref":"#/components/schemas/EntityStatus"},"message":{"type":"string","title":"Message"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"error_traceback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Traceback"}},"type":"object","required":["job_id","status","message"],"title":"JobResponse"},"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"}}}}