{"openapi":"3.1.0","info":{"title":"ScaleAI","version":"1.0.0"},"paths":{"/api/v1/agents/templates":{"get":{"tags":["agents"],"summary":"List available agent templates","operationId":"list_agent_templates_api_v1_agents_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTemplateListResponse"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/agents/schema":{"get":{"tags":["agents"],"summary":"Get required fields for a model provider or model","description":"Returns the required and optional configuration fields based on model type and provider using Pydantic schemas. Pass `model` to get the settings that model accepts; without it the provider-wide fields are returned.","operationId":"get_model_fields_api_v1_agents_schema_get","parameters":[{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"llm | tts | stt","title":"Type"},"description":"llm | tts | stt"},{"name":"provider","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Provider UUID","title":"Provider"},"description":"Provider UUID"},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Model UUID; returns that model's settings","title":"Model"},"description":"Model UUID; returns that model's settings"}],"responses":{"200":{"description":"Required and optional configuration fields for the provider","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelSchemaResponse"}}}},"400":{"description":"Invalid model type or provider","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"User is inactive","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Integration or model not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents/templates":{"post":{"tags":["agents"],"summary":"Create agent from template","description":"Create a new agent using a predefined agent template","operationId":"create_agent_from_template_api_v1_workspaces__workspace_id__projects__project_id__agents_templates_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateFromTemplate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateFromTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents/{agent_id}/clone":{"post":{"tags":["agents"],"summary":"Clone Agent","operationId":"clone_agent_api_v1_workspaces__workspace_id__projects__project_id__agents__agent_id__clone_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCloneRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCloneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents/{agent_id}/import":{"post":{"tags":["agents"],"summary":"Import Agent into Workspaces","description":"Clones an agent from another workspace_project into the specified workspace_project, resetting API keys and relationships.","operationId":"import_agent_api_v1_workspaces__workspace_id__projects__project_id__agents__agent_id__import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentShareRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentShareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents/prompt-variables/{agent_id}":{"get":{"tags":["agents"],"summary":"Get dynamic prompt variables for an agent","operationId":"get_prompt_variables_api_v1_workspaces__workspace_id__projects__project_id__agents_prompt_variables__agent_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPromptVariablesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents":{"post":{"tags":["agents"],"summary":"Create a new agent","description":"Create a new agent for the authenticated user","operationId":"create_agent_api_v1_workspaces__workspace_id__projects__project_id__agents_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDefaultAgent"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["agents"],"summary":"List all agents","description":"Get a paginated list of all agents for the authenticated user with search and filter options","operationId":"list_agents_api_v1_workspaces__workspace_id__projects__project_id__agents_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"agent_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentType"},{"type":"null"}],"title":"Agent Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentStatus"},{"type":"null"}],"title":"Status"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Language"}},{"name":"workflow_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id"}},{"name":"knowledgebase_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Knowledgebase Id"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AgentList_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents/{agent_id}":{"get":{"tags":["agents"],"summary":"Get agent by ID","description":"Retrieve a specific agent by ID","operationId":"get_agent_api_v1_workspaces__workspace_id__projects__project_id__agents__agent_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["agents"],"summary":"Update agent","description":"Update an existing agent","operationId":"update_agent_api_v1_workspaces__workspace_id__projects__project_id__agents__agent_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAutosaveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents/function/{provider}/integration":{"get":{"tags":["agents"],"summary":"Get All Event Types","operationId":"get_all_event_types_api_v1_workspaces__workspace_id__projects__project_id__agents_function__provider__integration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/CalendarProvider"}},{"name":"api_key_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Api Key Id"}},{"name":"timezone_search","in":"query","required":false,"schema":{"type":"string","title":"Timezone Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventTypeListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents/{agent_id}/generate-prompt":{"post":{"tags":["agents"],"summary":"AI generate or update agent prompt","description":"Produce an enhanced system prompt using the agent's configured LLM and API keys. Does not persist. Send `user_prompt` in all cases. When the agent has no stored prompt, the input is expanded into a production-ready prompt. When a prompt already exists, the same field is treated as edit instructions for updating it. Apply the result with PATCH on the agent's `prompt` field.","operationId":"generate_agent_prompt_api_v1_workspaces__workspace_id__projects__project_id__agents__agent_id__generate_prompt_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentEnhancePromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentEnhancePromptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents/{agent_id}/versions":{"get":{"tags":["agents"],"summary":"List agent versions","description":"List same-table version siblings for the agent's version family","operationId":"list_agent_versions_api_v1_workspaces__workspace_id__projects__project_id__agents__agent_id__versions_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AgentVersionListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents/{agent_id}/versions/{version}":{"get":{"tags":["agents"],"summary":"Get agent version detail","operationId":"get_agent_version_api_v1_workspaces__workspace_id__projects__project_id__agents__agent_id__versions__version__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["agents"],"summary":"Update agent version metadata","description":"Update the user-facing title/description on any version in the agent's family","operationId":"update_agent_version_metadata_api_v1_workspaces__workspace_id__projects__project_id__agents__agent_id__versions__version__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionMetadataUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionMetadataUpdate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/agents/{agent_id}/versions/{version}/restore":{"post":{"tags":["agents"],"summary":"Restore agent version","description":"Deletes any draft in the family, then creates a new published current from the selected historical version and repoints phones/webhooks.","operationId":"restore_agent_version_api_v1_workspaces__workspace_id__projects__project_id__agents__agent_id__versions__version__restore_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/agents/templates":{"post":{"tags":["agents"],"summary":"Create agent from template","description":"Create a new agent using a predefined agent template","operationId":"service_create_agent_from_template_api_v1_service_projects__project_id__agents_templates_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateFromTemplate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateFromTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/agents/{agent_id}/clone":{"post":{"tags":["agents"],"summary":"Clone an agent","description":"Clone an existing agent using a secret key","operationId":"service_clone_agent_api_v1_service_projects__project_id__agents__agent_id__clone_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCloneRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCloneResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/agents/prompt-variables/{agent_id}":{"get":{"tags":["agents"],"summary":"Get dynamic prompt variables for an agent","operationId":"service_get_prompt_variables_api_v1_service_projects__project_id__agents_prompt_variables__agent_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPromptVariablesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/agents":{"post":{"tags":["agents"],"summary":"Create a new agent","description":"Create a new agent using a secret key","operationId":"service_create_agent_api_v1_service_projects__project_id__agents_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDefaultAgent"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["agents"],"summary":"List all agents","description":"Get a paginated list of agents for the project","operationId":"service_list_agents_api_v1_service_projects__project_id__agents_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"agent_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentType"},{"type":"null"}],"title":"Agent Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentStatus"},{"type":"null"}],"title":"Status"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Language"}},{"name":"workflow_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id"}},{"name":"knowledgebase_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Knowledgebase Id"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AgentList_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/agents/{agent_id}":{"get":{"tags":["agents"],"summary":"Get agent by ID","description":"Retrieve a specific agent by ID","operationId":"service_get_agent_api_v1_service_projects__project_id__agents__agent_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["agents"],"summary":"Update agent","description":"Update an existing agent","operationId":"service_update_agent_api_v1_service_projects__project_id__agents__agent_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAutosaveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/agents/function/{provider}/integration":{"get":{"tags":["agents"],"summary":"Service Get All Event Types","operationId":"service_get_all_event_types_api_v1_service_projects__project_id__agents_function__provider__integration_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/CalendarProvider"}},{"name":"api_key_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Api Key Id"}},{"name":"timezone_search","in":"query","required":false,"schema":{"type":"string","title":"Timezone Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarEventTypeListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/agents/{agent_id}/generate-prompt":{"post":{"tags":["agents"],"summary":"AI generate or update agent prompt","description":"Produce an enhanced system prompt using the agent's configured LLM and API keys. Does not persist. Send `user_prompt` in all cases.","operationId":"service_generate_agent_prompt_api_v1_service_projects__project_id__agents__agent_id__generate_prompt_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentEnhancePromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentEnhancePromptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/agents/{agent_id}/versions":{"get":{"tags":["agents"],"summary":"List agent versions","operationId":"service_list_agent_versions_api_v1_service_projects__project_id__agents__agent_id__versions_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AgentVersionListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/agents/{agent_id}/versions/{version}":{"get":{"tags":["agents"],"summary":"Get agent version detail","operationId":"service_get_agent_version_api_v1_service_projects__project_id__agents__agent_id__versions__version__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["agents"],"summary":"Update agent version metadata","operationId":"service_update_agent_version_metadata_api_v1_service_projects__project_id__agents__agent_id__versions__version__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionMetadataUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentVersionMetadataUpdate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/agents/{agent_id}/versions/{version}/restore":{"post":{"tags":["agents"],"summary":"Restore agent version","operationId":"service_restore_agent_version_api_v1_service_projects__project_id__agents__agent_id__versions__version__restore_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/crews":{"post":{"tags":["crews"],"summary":"Create a crew","description":"Create a crew from its main agent: the agent every call starts on, whose call settings and structured output the whole call uses. Agents it can hand the call to are added by saving the crew (PATCH) with its nodes and edges. Created as a draft.","operationId":"create_agent_handoff_api_v1_workspaces__workspace_id__projects__project_id__crews_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["crews"],"summary":"List crews","description":"One entry per crew: its current version, else its draft. Newest first.","operationId":"list_agent_handoffs_api_v1_workspaces__workspace_id__projects__project_id__crews_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Match on name","title":"Search"},"description":"Match on name"},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/crews/{crew_id}":{"get":{"tags":["crews"],"summary":"Get a crew","description":"One version of a crew, with its members as React Flow `nodes` (id = member id) and its routes as `edges` (id = route id).","operationId":"get_agent_handoff_api_v1_workspaces__workspace_id__projects__project_id__crews__crew_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["crews"],"summary":"Save a crew","description":"Save the crew: any of its name, description and active flag, and its graph as React Flow `nodes` and `edges`, in one request and one transaction. `nodes` and `edges` are the whole graph, not a diff: members and routes left out are removed. A node with an existing member id updates it; any other id adds a member (send `data.version_id`). Exactly one node is `type: main`. A node runs the agent version whose id is `data.version_id` (a published version of the agent; new nodes get its current one); the agent publishing a newer version does not change it, sending another `data.version_id` does. Edges refer to node ids, including ones made up for new nodes. Omit `nodes`/`edges` to leave the graph alone. `id_map` maps the ids made up for new nodes and edges to the ids they were saved as.\n\nVersions work as for agents. Saving a draft edits it. Saving a change to the current published version saves it on the draft instead (made from the current version if there is none): the response is the draft, and `id_map` maps the current version's node and edge ids to the draft's. Saving only node positions keeps them on the version given. An earlier version cannot be saved (409). `is_active` applies to the current version. Send `status: published` to publish what was saved: it becomes the current version and phone numbers move to it.","operationId":"update_agent_handoff_api_v1_workspaces__workspace_id__projects__project_id__crews__crew_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["crews"],"summary":"Delete a crew","description":"Delete the crew and all its versions. Refused while a phone number or a campaign that can still dial uses it.","operationId":"delete_agent_handoff_api_v1_workspaces__workspace_id__projects__project_id__crews__crew_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/crews/{crew_id}/prompt-variables":{"get":{"tags":["crews"],"summary":"Get dynamic prompt variables","description":"Every dynamic variable a call on this crew has to be given, across all its agents, with this crew's prompt overrides applied. `variable_nodes` gives each one with the nodes that use it, so they can be shown on the canvas; a call gives a variable one value, which every node that uses it gets.","operationId":"get_agent_handoff_prompt_variables_api_v1_workspaces__workspace_id__projects__project_id__crews__crew_id__prompt_variables_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffPromptVariablesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/crews/{crew_id}/versions":{"get":{"tags":["crews"],"summary":"List crew versions","description":"Every version of the crew, newest first.","operationId":"list_agent_handoff_versions_api_v1_workspaces__workspace_id__projects__project_id__crews__crew_id__versions_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffVersionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/crews/{crew_id}/versions/{version}":{"get":{"tags":["crews"],"summary":"Get a crew version","description":"One version of the crew by its number -- draft, current or earlier -- in the same shape as the crew detail. `crew_id` can be any version of the crew.","operationId":"get_agent_handoff_version_api_v1_workspaces__workspace_id__projects__project_id__crews__crew_id__versions__version__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["crews"],"summary":"Update a crew version's title and description","description":"Set the title and description of one version of the crew by its number -- draft, current or earlier -- as for agents. Edited in place: it only labels the version, so it never makes a draft. Fields left out are kept; null clears one. Returns that version in the crew detail's shape. `crew_id` can be any version of the crew.","operationId":"update_agent_handoff_version_metadata_api_v1_workspaces__workspace_id__projects__project_id__crews__crew_id__versions__version__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffVersionMetadataUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/crews/{crew_id}/versions/{version}/restore":{"post":{"tags":["crews"],"summary":"Restore a crew version","description":"Make an earlier version current again, as for agents: discards the draft, copies the version into a new published current version, the previous current version stops being current, and phone numbers move to it. Campaigns stay on the version they were started with.","operationId":"restore_agent_handoff_version_api_v1_workspaces__workspace_id__projects__project_id__crews__crew_id__versions__version__restore_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/crews":{"post":{"tags":["crews"],"summary":"Create a crew","description":"Create a crew from its main agent: the agent every call starts on, whose call settings and structured output the whole call uses. Agents it can hand the call to are added by saving the crew (PATCH) with its nodes and edges. Created as a draft.","operationId":"service_create_agent_handoff_api_v1_service_projects__project_id__crews_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["crews"],"summary":"List crews","description":"One entry per crew: its current version, else its draft. Newest first.","operationId":"service_list_agent_handoffs_api_v1_service_projects__project_id__crews_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Match on name","title":"Search"},"description":"Match on name"},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/crews/{crew_id}":{"get":{"tags":["crews"],"summary":"Get a crew","description":"One version of a crew, with its members as React Flow `nodes` (id = member id) and its routes as `edges` (id = route id).","operationId":"service_get_agent_handoff_api_v1_service_projects__project_id__crews__crew_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["crews"],"summary":"Save a crew","description":"Save the crew: any of its name, description and active flag, and its graph as React Flow `nodes` and `edges`, in one request and one transaction. `nodes` and `edges` are the whole graph, not a diff: members and routes left out are removed. A node with an existing member id updates it; any other id adds a member (send `data.version_id`). Exactly one node is `type: main`. A node runs the agent version whose id is `data.version_id` (a published version of the agent; new nodes get its current one); the agent publishing a newer version does not change it, sending another `data.version_id` does. Edges refer to node ids, including ones made up for new nodes. Omit `nodes`/`edges` to leave the graph alone. `id_map` maps the ids made up for new nodes and edges to the ids they were saved as.\n\nVersions work as for agents. Saving a draft edits it. Saving a change to the current published version saves it on the draft instead (made from the current version if there is none): the response is the draft, and `id_map` maps the current version's node and edge ids to the draft's. Saving only node positions keeps them on the version given. An earlier version cannot be saved (409). `is_active` applies to the current version. Send `status: published` to publish what was saved: it becomes the current version and phone numbers move to it.","operationId":"service_update_agent_handoff_api_v1_service_projects__project_id__crews__crew_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["crews"],"summary":"Delete a crew","description":"Delete the crew and all its versions. Refused while a phone number or a campaign that can still dial uses it.","operationId":"service_delete_agent_handoff_api_v1_service_projects__project_id__crews__crew_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/crews/{crew_id}/prompt-variables":{"get":{"tags":["crews"],"summary":"Get dynamic prompt variables","description":"Every dynamic variable a call on this crew has to be given, across all its agents, with this crew's prompt overrides applied. `variable_nodes` gives each one with the nodes that use it, so they can be shown on the canvas; a call gives a variable one value, which every node that uses it gets.","operationId":"service_get_agent_handoff_prompt_variables_api_v1_service_projects__project_id__crews__crew_id__prompt_variables_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffPromptVariablesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/crews/{crew_id}/versions":{"get":{"tags":["crews"],"summary":"List crew versions","description":"Every version of the crew, newest first.","operationId":"service_list_agent_handoff_versions_api_v1_service_projects__project_id__crews__crew_id__versions_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffVersionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/crews/{crew_id}/versions/{version}":{"get":{"tags":["crews"],"summary":"Get a crew version","description":"One version of the crew by its number -- draft, current or earlier -- in the same shape as the crew detail. `crew_id` can be any version of the crew.","operationId":"service_get_agent_handoff_version_api_v1_service_projects__project_id__crews__crew_id__versions__version__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["crews"],"summary":"Update a crew version's title and description","description":"Set the title and description of one version of the crew by its number -- draft, current or earlier -- as for agents. Edited in place: it only labels the version, so it never makes a draft. Fields left out are kept; null clears one. Returns that version in the crew detail's shape. `crew_id` can be any version of the crew.","operationId":"service_update_agent_handoff_version_metadata_api_v1_service_projects__project_id__crews__crew_id__versions__version__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffVersionMetadataUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/crews/{crew_id}/versions/{version}/restore":{"post":{"tags":["crews"],"summary":"Restore a crew version","description":"Make an earlier version current again, as for agents: discards the draft, copies the version into a new published current version, the previous current version stops being current, and phone numbers move to it. Campaigns stay on the version they were started with.","operationId":"service_restore_agent_handoff_version_api_v1_service_projects__project_id__crews__crew_id__versions__version__restore_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"crew_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Crew Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentHandoffDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/auth/google/login":{"get":{"tags":["auth"],"summary":"Initiate Google OAuth login","operationId":"google_login_api_v1_auth_google_login_get","parameters":[{"name":"origin","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Origin"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Authorization URL generated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthURLResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Failed to initiate login","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/auth/google/callback":{"get":{"tags":["auth"],"summary":"Handle Google OAuth callback","description":"Handle Google OAuth callback.\n\nExchanges the authorization code for tokens and returns them in the response body.\nClients should send the access token via the Authorization header on subsequent requests.","operationId":"google_callback_api_v1_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Login successful, tokens returned in response body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackResponse"}}}},"302":{"description":"Redirect to application with auth cookies"},"400":{"description":"Invalid request or state token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Authentication failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Server error"}}}},"/api/v1/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","operationId":"refresh_api_v1_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_v1_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/phone/otp":{"post":{"tags":["auth"],"summary":"Send Otp","operationId":"send_otp_api_v1_auth_phone_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneOTPRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/auth/phone/otp/verify":{"post":{"tags":["auth"],"summary":"Verify Otp","operationId":"verify_otp_api_v1_auth_phone_otp_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/batches/template":{"get":{"tags":["batch"],"summary":"Get Batch Template Url","operationId":"get_batch_template_url_api_v1_batches_template_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchTemplateURLResponse"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/batches/service/template":{"get":{"tags":["batch"],"summary":"Service Get Batch Template Url","operationId":"service_get_batch_template_url_api_v1_batches_service_template_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchTemplateURLResponse"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns":{"post":{"tags":["campaign"],"summary":"Create Campaign","operationId":"create_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["campaign"],"summary":"List Campaigns","operationId":"list_campaigns_api_v1_workspaces__workspace_id__projects__project_id__campaigns_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"crew_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"Only campaigns calling with this crew version","title":"Crew Id"},"description":"Only campaigns calling with this crew version"},{"name":"campaign_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/draft":{"post":{"tags":["campaign"],"summary":"Create Campaign Draft","description":"Start a campaign with nothing but a name.\n\nFill the rest in with PATCH and POST /contacts, then POST /start. A draft\nnever dials: the dispatcher and the retry sweep both select on RUNNING.","operationId":"create_campaign_draft_api_v1_workspaces__workspace_id__projects__project_id__campaigns_draft_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCampaignDraftPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/{campaign_id}":{"get":{"tags":["campaign"],"summary":"Get Campaign","operationId":"get_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["campaign"],"summary":"Update Campaign","description":"Change a campaign's name, description, timezone, calling window or agent.\n\nThe first four need no pause: the dispatcher re-reads them every tick, so\nthey apply from the next one.\n\n`agent_id` is different. It rewrites the agent on every unfinished batch\nand re-renders the variables of every queued item, so the whole campaign\nmoves rather than splitting between two agents -- and because that rewrite\nraces the dispatcher, it is refused unless the campaign is PAUSED. Send\n`column_mapping` with it when the new prompt asks for different variables;\ncheck with agent-change-preview first.","operationId":"update_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/{campaign_id}/agent-change-preview":{"post":{"tags":["campaign"],"summary":"Preview Campaign Agent Change","description":"What swapping to this agent would need, and what it would break.\n\nRead-only. POST rather than GET because the mapping under consideration\nis a body, not a query string, and the operator re-asks on every change\nthey make to it.\n\nWorth asking before saving: creation only checks that each declared\nvariable maps to a column the file HAS, not that every contact has a\nvalue in it. A blank cell is dropped silently and the call is then\nrefused at origination, so `coverage[].missing_for` is the number that\ntells an operator a mapping is technically valid and still wrong.","operationId":"preview_campaign_agent_change_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__agent_change_preview_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentChangePreviewPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentChangePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/{campaign_id}/contacts":{"post":{"tags":["campaign"],"summary":"Upload Campaign Contacts","description":"Attach or replace the contacts CSV, before the campaign starts.\n\nRefused afterwards: the emitted batches already reference a fixed set of\ncontacts, and appending would mean re-planning.","operationId":"upload_campaign_contacts_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__contacts_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_campaign_contacts_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__contacts_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["campaign"],"summary":"List Campaign Contacts","operationId":"list_campaign_contacts_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__contacts_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CampaignContactStatus"},{"type":"null"}],"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/{campaign_id}/start-blockers":{"get":{"tags":["campaign"],"summary":"Get Campaign Start Blockers","description":"What is still missing before this campaign can dial. All of it.","operationId":"get_campaign_start_blockers_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__start_blockers_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignStartBlockers"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/{campaign_id}/start":{"post":{"tags":["campaign"],"summary":"Start Campaign","description":"Plan the campaign and let it dial.\n\nRefused with every reason at once if anything is missing, rather than the\nfirst one -- the caller is looking at a form.","operationId":"start_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__start_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/{campaign_id}/pause":{"post":{"tags":["campaign"],"summary":"Pause Campaign","description":"Hold everything -- no calls, no retries, no callbacks. Reversible.","operationId":"pause_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__pause_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/{campaign_id}/resume":{"post":{"tags":["campaign"],"summary":"Resume Campaign","description":"Put a paused campaign back to work where it left off.","operationId":"resume_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__resume_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/{campaign_id}/terminate":{"post":{"tags":["campaign"],"summary":"Terminate Campaign","description":"End it for good. The campaign stays in the list with its history.","operationId":"terminate_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__terminate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/{campaign_id}/archive":{"post":{"tags":["campaign"],"summary":"Archive Campaign","description":"Hide a terminated campaign from the list. Refused while it is still live.\n\nThere is no delete: the calls a campaign placed are real history, so the row\nis kept and only hidden.","operationId":"archive_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__archive_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/campaigns/{campaign_id}/stats":{"get":{"tags":["campaign"],"summary":"Get Campaign Stats","operationId":"get_campaign_stats_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__stats_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Campaign Id"}},{"name":"range","in":"query","required":false,"schema":{"enum":["today","7d","30d","all"],"type":"string","default":"all","title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts":{"get":{"tags":["contacts"],"summary":"List Contacts","operationId":"list_contacts_api_v1_workspaces__workspace_id__projects__project_id__contacts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Search"}},{"name":"list_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"List Ids"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ContactSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["contacts"],"summary":"Create Contact","operationId":"create_contact_api_v1_workspaces__workspace_id__projects__project_id__contacts_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/lists":{"get":{"tags":["contacts"],"summary":"List Contact Lists","operationId":"list_contact_lists_api_v1_workspaces__workspace_id__projects__project_id__contacts_lists_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactListOut"},"title":"Response List Contact Lists Api V1 Workspaces  Workspace Id  Projects  Project Id  Contacts Lists Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["contacts"],"summary":"Create Contact List","operationId":"create_contact_list_api_v1_workspaces__workspace_id__projects__project_id__contacts_lists_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/lists/{list_id}":{"patch":{"tags":["contacts"],"summary":"Update Contact List","operationId":"update_contact_list_api_v1_workspaces__workspace_id__projects__project_id__contacts_lists__list_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"List Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["contacts"],"summary":"Delete Contact List","operationId":"delete_contact_list_api_v1_workspaces__workspace_id__projects__project_id__contacts_lists__list_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"List Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/lists/{list_id}/members":{"post":{"tags":["contacts"],"summary":"Add Contact List Members","operationId":"add_contact_list_members_api_v1_workspaces__workspace_id__projects__project_id__contacts_lists__list_id__members_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"List Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMembersPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/lists/{list_id}/members/remove":{"post":{"tags":["contacts"],"summary":"Remove Contact List Members","operationId":"remove_contact_list_members_api_v1_workspaces__workspace_id__projects__project_id__contacts_lists__list_id__members_remove_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"List Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMembersPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/import":{"post":{"tags":["contacts"],"summary":"Import Contacts","description":"Rows already mapped by the client, matched on any phone or email.\n\n`mode` decides what a match does (fill blanks, update from file, or leave\nexisting contacts alone); a clash with another contact becomes a\nsuggestion. `dry_run` returns the counts without writing.","operationId":"import_contacts_api_v1_workspaces__workspace_id__projects__project_id__contacts_import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/{contact_id}":{"get":{"tags":["contacts"],"summary":"Get Contact","operationId":"get_contact_api_v1_workspaces__workspace_id__projects__project_id__contacts__contact_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["contacts"],"summary":"Update Contact","operationId":"update_contact_api_v1_workspaces__workspace_id__projects__project_id__contacts__contact_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["contacts"],"summary":"Delete Contact","operationId":"delete_contact_api_v1_workspaces__workspace_id__projects__project_id__contacts__contact_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/{contact_id}/identities":{"post":{"tags":["contacts"],"summary":"Add Identity","operationId":"add_identity_api_v1_workspaces__workspace_id__projects__project_id__contacts__contact_id__identities_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/{contact_id}/identities/{identity_id}":{"patch":{"tags":["contacts"],"summary":"Update Identity","operationId":"update_identity_api_v1_workspaces__workspace_id__projects__project_id__contacts__contact_id__identities__identity_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"identity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identity Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["contacts"],"summary":"Remove Identity","operationId":"remove_identity_api_v1_workspaces__workspace_id__projects__project_id__contacts__contact_id__identities__identity_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"identity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Identity Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/{contact_id}/suggestions":{"get":{"tags":["contacts"],"summary":"List Suggestions","operationId":"list_suggestions_api_v1_workspaces__workspace_id__projects__project_id__contacts__contact_id__suggestions_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SuggestionOut"},"title":"Response List Suggestions Api V1 Workspaces  Workspace Id  Projects  Project Id  Contacts  Contact Id  Suggestions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/{contact_id}/link":{"post":{"tags":["contacts"],"summary":"Link Contacts","operationId":"link_contacts_api_v1_workspaces__workspace_id__projects__project_id__contacts__contact_id__link_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/{contact_id}/unlink":{"post":{"tags":["contacts"],"summary":"Unlink Contact","operationId":"unlink_contact_api_v1_workspaces__workspace_id__projects__project_id__contacts__contact_id__unlink_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/contacts/suggestions/{suggestion_id}/dismiss":{"post":{"tags":["contacts"],"summary":"Dismiss Suggestion","operationId":"dismiss_suggestion_api_v1_workspaces__workspace_id__projects__project_id__contacts_suggestions__suggestion_id__dismiss_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Suggestion Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/conversations":{"get":{"tags":["conversations"],"summary":"List Conversations","operationId":"list_conversations_api_v1_workspaces__workspace_id__projects__project_id__conversations_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"view","in":"query","required":false,"schema":{"anyOf":[{"enum":["needs_you","mine","ai","done"],"type":"string"},{"type":"null"}],"title":"View"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ConversationChannel"},{"type":"null"}],"title":"Channel"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ConversationStatus"},{"type":"null"}],"title":"Status"}},{"name":"contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"}},{"name":"whatsapp_config_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Whatsapp Config Id"}},{"name":"base_agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Agent Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ConversationSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/conversations/counts":{"get":{"tags":["conversations"],"summary":"Inbox Counts","description":"Open chats per inbox tab: needs_you, mine, ai.","operationId":"inbox_counts_api_v1_workspaces__workspace_id__projects__project_id__conversations_counts_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ConversationChannel"},{"type":"null"}],"title":"Channel"}},{"name":"base_agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxCounts"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/conversations/{conversation_id}":{"get":{"tags":["conversations"],"summary":"Get Conversation","operationId":"get_conversation_api_v1_workspaces__workspace_id__projects__project_id__conversations__conversation_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["conversations"],"summary":"Update Conversation","description":"Take over (handled_by=human), hand back (handled_by=ai), assign\n(assignee_id, null unassigns) or resolve (status=closed).","operationId":"update_conversation_api_v1_workspaces__workspace_id__projects__project_id__conversations__conversation_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/conversations/{conversation_id}/messages":{"get":{"tags":["conversations"],"summary":"List Messages","operationId":"list_messages_api_v1_workspaces__workspace_id__projects__project_id__conversations__conversation_id__messages_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MessageOut"},"title":"Response List Messages Api V1 Workspaces  Workspace Id  Projects  Project Id  Conversations  Conversation Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["conversations"],"summary":"Send Message","description":"A reply to the customer (takes the chat over from the AI) or a private\nnote. WhatsApp replies are stored as pending and delivered by a task.","operationId":"send_message_api_v1_workspaces__workspace_id__projects__project_id__conversations__conversation_id__messages_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/heimdall__schemas__conversation__SendMessageRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/conversations/{conversation_id}/thread":{"get":{"tags":["conversations"],"summary":"Get Thread","description":"The person behind this conversation, across every channel.","operationId":"get_thread_api_v1_workspaces__workspace_id__projects__project_id__conversations__conversation_id__thread_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationThread"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/conversations/{conversation_id}/templates":{"get":{"tags":["conversations"],"summary":"List Conversation Templates","description":"The approved templates of the WhatsApp number this conversation is\non: what can be sent once its 24-hour window has closed.","operationId":"list_conversation_templates_api_v1_workspaces__workspace_id__projects__project_id__conversations__conversation_id__templates_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappTemplateResponse"},"title":"Response List Conversation Templates Api V1 Workspaces  Workspace Id  Projects  Project Id  Conversations  Conversation Id  Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/conversations/{conversation_id}/messages/{message_id}/media":{"get":{"tags":["conversations"],"summary":"Get Message Media","description":"The file a customer sent (voice note, image, ...), from our copy.","operationId":"get_message_media_api_v1_workspaces__workspace_id__projects__project_id__conversations__conversation_id__messages__message_id__media_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/batches":{"post":{"tags":["batch"],"summary":"Create Batch","operationId":"create_batch_api_v1_workspaces__workspace_id__projects__project_id__batches_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_batch_api_v1_workspaces__workspace_id__projects__project_id__batches_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["batch"],"summary":"Get Batches","operationId":"get_batches_api_v1_workspaces__workspace_id__projects__project_id__batches_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"execution_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ExecutionType"},{"type":"null"}],"title":"Execution Type"}},{"name":"batch_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BatchStatus"},{"type":"null"}],"title":"Batch Status"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_BatchCallResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/batches/{batch_id}":{"patch":{"tags":["batch"],"summary":"Update Batch","operationId":"update_batch_api_v1_workspaces__workspace_id__projects__project_id__batches__batch_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBatchCallPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["batch"],"summary":"Delete Batch","operationId":"delete_batch_api_v1_workspaces__workspace_id__projects__project_id__batches__batch_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/batches":{"post":{"tags":["batch"],"summary":"Service Create Batch","operationId":"service_create_batch_api_v1_service_projects__project_id__batches_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_service_create_batch_api_v1_service_projects__project_id__batches_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["batch"],"summary":"Service Get Batches","operationId":"service_get_batches_api_v1_service_projects__project_id__batches_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"execution_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ExecutionType"},{"type":"null"}],"title":"Execution Type"}},{"name":"batch_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BatchStatus"},{"type":"null"}],"title":"Batch Status"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_BatchCallResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/batches/{batch_id}":{"patch":{"tags":["batch"],"summary":"Service Update Batch","operationId":"service_update_batch_api_v1_service_projects__project_id__batches__batch_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBatchCallPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["batch"],"summary":"Service Delete Batch","operationId":"service_delete_batch_api_v1_service_projects__project_id__batches__batch_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Batch Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/call-sessions/":{"get":{"tags":["call sessions"],"summary":"Get Call Logs","description":"List call logs. Filter saved log attributes with `custom_attributes.<path>__<op>=<value>` (op: eq, neq, gt, lt, gte, lte, like, ilike, nlike, nilike, btw, nbtw, in, nin, exists, isnull, contains, startswith, endswith, len, len_gt, len_gte, len_lt, len_lte; default eq). Nested keys use dots, array items use an index (`custom_attributes.user.id__eq=42`, `custom_attributes.tags.0__eq=vip`). `*` as a path segment matches any array element (`custom_attributes.orders.*.status__in=shipped,delivered`). `in`, `nin` and `btw` take comma-separated values (`__btw=1,5` is inclusive). `like`/`ilike` match the value as a substring (`__ilike=ann`). `custom_attributes__isnull=true` (or `__exists=false`) lists calls with no log attributes saved. Repeated filters are ANDed.","operationId":"get_call_logs_api_v1_workspaces__workspace_id__projects__project_id__call_sessions__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"current_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CallStatus"},{"type":"null"}],"title":"Current Status"}},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CallDirection"},{"type":"null"}],"title":"Direction"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"agent_family","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Agent Family"}},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"}},{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Campaign Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionListPage_CallSessionListDataResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/call-sessions/{call_session_id}/post-call/events":{"get":{"tags":["call sessions"],"summary":"Stream Post Call Progress Events","description":"Stream post-call pipeline progress for one call session using SSE.\n\nThe endpoint is intentionally call-scoped and project-authorized. Redis\nStreams provide replay through the standard Last-Event-ID header, while the\nfirst snapshot comes from post_call_jobs.payload so the frontend can render\ncurrent state even if it connects after some stages have already completed.","operationId":"stream_post_call_progress_events_api_v1_workspaces__workspace_id__projects__project_id__call_sessions__call_session_id__post_call_events_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}},{"name":"last_event_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional Redis Stream event id for manual SSE replay testing. Native EventSource uses Last-Event-ID header automatically.","title":"Last Event Id"},"description":"Optional Redis Stream event id for manual SSE replay testing. Native EventSource uses Last-Event-ID header automatically."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/call-sessions/{call_session_id}":{"get":{"tags":["call sessions"],"summary":"Get Call Log Detail","operationId":"get_call_log_detail_api_v1_workspaces__workspace_id__projects__project_id__call_sessions__call_session_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/call-sessions/{call_session_id}/recording":{"post":{"tags":["call sessions"],"summary":"Get Call Recording","operationId":"get_call_recording_api_v1_workspaces__workspace_id__projects__project_id__call_sessions__call_session_id__recording_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}},{"name":"dl-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dl-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/call-sessions/{call_session_id}/recording-stream":{"get":{"tags":["call sessions"],"summary":"Stream Call Recording","description":"Audio in a workspace's own bucket, served from our origin.\n\nA GET with the token in the query string, because this URL goes straight\ninto an <audio> element -- it cannot carry an auth header.","operationId":"stream_call_recording_api_v1_workspaces__workspace_id__projects__project_id__call_sessions__call_session_id__recording_stream_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}},{"name":"dl_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dl Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/call-sessions/{call_session_id}/recall":{"post":{"tags":["call sessions"],"summary":"Recall Call Session","operationId":"recall_call_session_api_v1_workspaces__workspace_id__projects__project_id__call_sessions__call_session_id__recall_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/call-sessions/recording-url":{"post":{"tags":["call sessions"],"summary":"Get Call Recording Url","operationId":"get_call_recording_url_api_v1_workspaces__workspace_id__projects__project_id__call_sessions_recording_url_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionRecordingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionRecordingUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/call-sessions/{call_session_id}/recording-url":{"post":{"tags":["call sessions"],"summary":"Get Call Recording Url By Action","operationId":"get_call_recording_url_by_action_api_v1_workspaces__workspace_id__projects__project_id__call_sessions__call_session_id__recording_url_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionRecordingActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionRecordingUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/call-sessions/":{"get":{"tags":["call sessions"],"summary":"Service Get Call Logs","description":"List call logs. Filter saved log attributes with `custom_attributes.<path>__<op>=<value>` (op: eq, neq, gt, lt, gte, lte, like, ilike, nlike, nilike, btw, nbtw, in, nin, exists, isnull, contains, startswith, endswith, len, len_gt, len_gte, len_lt, len_lte; default eq). Nested keys use dots, array items use an index (`custom_attributes.user.id__eq=42`, `custom_attributes.tags.0__eq=vip`). `*` as a path segment matches any array element (`custom_attributes.orders.*.status__in=shipped,delivered`). `in`, `nin` and `btw` take comma-separated values (`__btw=1,5` is inclusive). `like`/`ilike` match the value as a substring (`__ilike=ann`). `custom_attributes__isnull=true` (or `__exists=false`) lists calls with no log attributes saved. Repeated filters are ANDed.","operationId":"service_get_call_logs_api_v1_service_projects__project_id__call_sessions__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"current_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CallStatus"},{"type":"null"}],"title":"Current Status"}},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CallDirection"},{"type":"null"}],"title":"Direction"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"agent_family","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Agent Family"}},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"}},{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Campaign Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CallSessionListDataResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/call-sessions/{call_session_id}":{"get":{"tags":["call sessions"],"summary":"Service Get Call Log Detail","operationId":"service_get_call_log_detail_api_v1_service_projects__project_id__call_sessions__call_session_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/call-sessions/{call_session_id}/recording":{"post":{"tags":["call sessions"],"summary":"Service Get Call Recording","operationId":"service_get_call_recording_api_v1_service_projects__project_id__call_sessions__call_session_id__recording_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}},{"name":"dl-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dl-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/call-sessions/{call_session_id}/recording-stream":{"get":{"tags":["call sessions"],"summary":"Service Stream Call Recording","operationId":"service_stream_call_recording_api_v1_service_projects__project_id__call_sessions__call_session_id__recording_stream_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}},{"name":"dl_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dl Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/call-sessions/{call_session_id}/recall":{"post":{"tags":["call sessions"],"summary":"Service Recall Call Session","operationId":"service_recall_call_session_api_v1_service_projects__project_id__call_sessions__call_session_id__recall_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecallCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/call-sessions/recording-url":{"post":{"tags":["call sessions"],"summary":"Service Get Call Recording Url","operationId":"service_get_call_recording_url_api_v1_service_projects__project_id__call_sessions_recording_url_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionRecordingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionRecordingUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/call-sessions/{call_session_id}/recording-url":{"post":{"tags":["call sessions"],"summary":"Service Get Call Recording Url By Action","operationId":"service_get_call_recording_url_by_action_api_v1_service_projects__project_id__call_sessions__call_session_id__recording_url_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"call_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionRecordingActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionRecordingUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/compliance/{provider_name}/requirements":{"get":{"tags":["compliance"],"summary":"Get compliance requirements for a provider and country","operationId":"get_compliance_requirements_api_v1_workspaces__workspace_id__projects__project_id__compliance__provider_name__requirements_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}},{"name":"country","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code","title":"Country"},"description":"ISO 3166-1 alpha-2 country code"},{"name":"number_type","in":"query","required":true,"schema":{"type":"string","description":"Number type (e.g. local, toll_free)","title":"Number Type"},"description":"Number type (e.g. local, toll_free)"},{"name":"end_user_type","in":"query","required":false,"schema":{"type":"string","description":"End user type (individual or business)","default":"business","title":"End User Type"},"description":"End user type (individual or business)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/heimdall__schemas__compliance__ComplianceRequirementsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/compliance/{provider_name}/submit":{"post":{"tags":["compliance"],"summary":"Submit a compliance application","description":"Submit compliance documents and end-user information to the provider. The request must be multipart/form-data with a `data` JSON field and optional `documents` file fields.","operationId":"submit_compliance_api_v1_workspaces__workspace_id__projects__project_id__compliance__provider_name__submit_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_compliance_api_v1_workspaces__workspace_id__projects__project_id__compliance__provider_name__submit_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/compliance/options":{"get":{"tags":["compliance"],"summary":"Which provider and country pairs need a verification","description":"Lets the buying screen offer only what can actually be verified.\n\nDeclared before \"/{clearance_id}\" so \"options\" is not parsed as an id.","operationId":"list_verifiable_scopes_api_v1_workspaces__workspace_id__projects__project_id__compliance_options_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VerifiableScopeResponse"},"title":"Response List Verifiable Scopes Api V1 Workspaces  Workspace Id  Projects  Project Id  Compliance Options Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/compliance":{"get":{"tags":["compliance"],"summary":"List compliance applications for this project","operationId":"list_compliance_applications_api_v1_workspaces__workspace_id__projects__project_id__compliance_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by provider name","title":"Provider"},"description":"Filter by provider name"},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":2,"maxLength":2},{"type":"null"}],"description":"Filter by country ISO","title":"Country"},"description":"Filter by country ISO"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status (pending, cleared, rejected, etc.)","title":"Status"},"description":"Filter by status (pending, cleared, rejected, etc.)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ComplianceApplicationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/compliance/{clearance_id}":{"get":{"tags":["compliance"],"summary":"Get a compliance application by ID","operationId":"get_compliance_application_api_v1_workspaces__workspace_id__projects__project_id__compliance__clearance_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"clearance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Clearance Id"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Force refresh status from provider","default":false,"title":"Refresh"},"description":"Force refresh status from provider"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/compliance/{clearance_id}/resubmit":{"post":{"tags":["compliance"],"summary":"Resubmit a rejected compliance application","description":"Resubmit a rejected compliance application with updated information and documents.","operationId":"resubmit_compliance_api_v1_workspaces__workspace_id__projects__project_id__compliance__clearance_id__resubmit_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"clearance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Clearance Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_resubmit_compliance_api_v1_workspaces__workspace_id__projects__project_id__compliance__clearance_id__resubmit_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceApplicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/compliance/{provider_name}/numbers/search":{"post":{"tags":["compliance"],"summary":"Search available phone numbers from a provider","operationId":"search_numbers_api_v1_workspaces__workspace_id__projects__project_id__compliance__provider_name__numbers_search_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/compliance/{provider_name}/numbers/buy":{"post":{"tags":["compliance"],"summary":"Buy a phone number using a cleared compliance application","description":"Purchases a phone number from the provider, deducts the monthly rental from the workspace wallet, and creates a PhoneNumber record.","operationId":"buy_number_api_v1_workspaces__workspace_id__projects__project_id__compliance__provider_name__numbers_buy_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberBuyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberBuyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/compliance/{provider_name}/numbers/release":{"post":{"tags":["compliance"],"summary":"Release a phone number back to the provider","description":"Releases a previously purchased phone number from the provider and removes the PhoneNumber record.","operationId":"release_number_api_v1_workspaces__workspace_id__projects__project_id__compliance__provider_name__numbers_release_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberReleaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/plivo/compliance-callback":{"post":{"tags":["compliance"],"summary":"Plivo Compliance Webhook","description":"Receive compliance status updates from Plivo.\n\nPlivo sens a POST when a compliance application status changes\n(e.g. submitted -> accepted, submitted -> rejected).\n\nReference: https://www.plivo.com/docs/numbers/compliance/#callbacks","operationId":"plivo_compliance_webhook_api_v1_telephony_plivo_compliance_callback_post","parameters":[{"name":"x-plivo-signature-v3","in":"header","required":true,"schema":{"type":"string","title":"X-Plivo-Signature-V3"}},{"name":"x-plivo-signature-v3-nonce","in":"header","required":true,"schema":{"type":"string","title":"X-Plivo-Signature-V3-Nonce"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/countries/":{"get":{"tags":["countries"],"summary":"Get Countries","operationId":"get_countries_api_v1_countries__get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Country_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/knowledge-bases/site-list":{"post":{"tags":["knowledge bases"],"summary":"Discover Urls","operationId":"discover_urls_api_v1_knowledge_bases_site_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBDiscoverRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBDiscoverResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/knowledge-bases/service/site-list":{"post":{"tags":["knowledge bases"],"summary":"Service Discover Urls","operationId":"service_discover_urls_api_v1_knowledge_bases_service_site_list_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBDiscoverRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBDiscoverResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/knowledge-bases/":{"post":{"tags":["knowledge bases"],"summary":"Create a new knowledge base","description":"Create a new knowledge base for the authenticated user from a file upload or list of URLs","operationId":"create_knowledge_base_api_v1_workspaces__workspace_id__projects__project_id__knowledge_bases__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_knowledge_base_api_v1_workspaces__workspace_id__projects__project_id__knowledge_bases__post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["knowledge bases"],"summary":"List Knowledge Bases","operationId":"list_knowledge_bases_api_v1_workspaces__workspace_id__projects__project_id__knowledge_bases__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_KnowledgeBaseResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/knowledge-bases/{kb_id}":{"get":{"tags":["knowledge bases"],"summary":"Get Knowledge Base","operationId":"get_knowledge_base_api_v1_workspaces__workspace_id__projects__project_id__knowledge_bases__kb_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["knowledge bases"],"summary":"Update knowledge base","description":"Update knowledge base fields such as is_active","operationId":"patch_knowledge_base_api_v1_workspaces__workspace_id__projects__project_id__knowledge_bases__kb_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kb Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUpdateIsActive"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUpdateIsActive"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/knowledge-bases/{kb_id}/cancel":{"post":{"tags":["knowledge bases"],"summary":"Cancel knowledge base ingestion","description":"Cooperatively cancel a pending/processing URL ingestion. The worker stops at its next checkpoint and cleans up partial files.","operationId":"cancel_knowledge_base_ingestion_api_v1_workspaces__workspace_id__projects__project_id__knowledge_bases__kb_id__cancel_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/knowledge-bases/{kb_id}/retry":{"post":{"tags":["knowledge bases"],"summary":"Retry failed or cancelled knowledge base ingestion","description":"Reset a failed or cancelled URL ingestion back to pending and re-enqueue the embed worker. Source URLs carry forward. Rate limited to 1 request per minute per knowledge base.","operationId":"retry_knowledge_base_ingestion_api_v1_workspaces__workspace_id__projects__project_id__knowledge_bases__kb_id__retry_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/knowledge-bases/{kb_id}/refresh":{"post":{"tags":["knowledge bases"],"summary":"Re-crawl a knowledge base on demand","description":"Manually re-crawl a ready, website-sourced knowledge base outside its scheduled interval. Only re-embeds (and charges credits) if the crawled content actually changed since the last check.","operationId":"refresh_knowledge_base_api_v1_workspaces__workspace_id__projects__project_id__knowledge_bases__kb_id__refresh_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/knowledge-bases":{"post":{"tags":["knowledge bases"],"summary":"Service Create Knowledge Base","operationId":"service_create_knowledge_base_api_v1_service_projects__project_id__knowledge_bases_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_service_create_knowledge_base_api_v1_service_projects__project_id__knowledge_bases_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["knowledge bases"],"summary":"Service List Knowledge Bases","operationId":"service_list_knowledge_bases_api_v1_service_projects__project_id__knowledge_bases_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_KnowledgeBaseResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/knowledge-bases/{kb_id}":{"get":{"tags":["knowledge bases"],"summary":"Service Get Knowledge Base","operationId":"service_get_knowledge_base_api_v1_service_projects__project_id__knowledge_bases__kb_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["knowledge bases"],"summary":"Service Patch Knowledge Base","operationId":"service_patch_knowledge_base_api_v1_service_projects__project_id__knowledge_bases__kb_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kb Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUpdateIsActive"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseUpdateIsActive"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/knowledge-bases/{kb_id}/cancel":{"post":{"tags":["knowledge bases"],"summary":"Service Cancel Knowledge Base Ingestion","operationId":"service_cancel_knowledge_base_ingestion_api_v1_service_projects__project_id__knowledge_bases__kb_id__cancel_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/knowledge-bases/{kb_id}/retry":{"post":{"tags":["knowledge bases"],"summary":"Service Retry Knowledge Base Ingestion","operationId":"service_retry_knowledge_base_ingestion_api_v1_service_projects__project_id__knowledge_bases__kb_id__retry_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/knowledge-bases/{kb_id}/refresh":{"post":{"tags":["knowledge bases"],"summary":"Service Refresh Knowledge Base","operationId":"service_refresh_knowledge_base_api_v1_service_projects__project_id__knowledge_bases__kb_id__refresh_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSingleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/phone-numbers":{"post":{"tags":["phone numbers"],"summary":"Create a new phone number","description":"Create a new phone number for the authenticated user","operationId":"create_phone_number_api_v1_workspaces__workspace_id__projects__project_id__phone_numbers_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["phone numbers"],"summary":"List phone numbers","description":"Get a paginated list of phone numbers for the authenticated user with search and filter options","operationId":"list_phone_numbers_api_v1_workspaces__workspace_id__projects__project_id__phone_numbers_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PhoneNumberType"},{"type":"null"}],"title":"Type"}},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PhoneNumberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/phone-numbers/sync-numbers":{"post":{"tags":["phone numbers"],"summary":"Manually sync phone numbers","description":"Sync phone numbers for the workspace by provider name and return the updated paginated list","operationId":"sync_exotel_phone_numbers_api_v1_workspaces__workspace_id__projects__project_id__phone_numbers_sync_numbers_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PhoneNumberType"},{"type":"null"}],"title":"Type"}},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberSyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PhoneNumberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/phone-numbers/by-provider/{provider_name}":{"get":{"tags":["phone numbers"],"summary":"List phone numbers by provider","description":"Return all phone numbers in the workspace that are linked to the given provider name","operationId":"list_phone_numbers_by_provider_api_v1_workspaces__workspace_id__projects__project_id__phone_numbers_by_provider__provider_name__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PhoneNumberList_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/phone-numbers/providers":{"get":{"tags":["phone numbers"],"summary":"Who we can buy numbers from","description":"Every registered supplier and what it can sell. Adding a provider needs no change here or in the buying screen.","operationId":"list_providers_api_v1_workspaces__workspace_id__projects__project_id__phone_numbers_providers_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCapabilities"},"title":"Response List Providers Api V1 Workspaces  Workspace Id  Projects  Project Id  Phone Numbers Providers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/phone-numbers/available":{"get":{"tags":["phone numbers"],"summary":"Search numbers available to buy","description":"Search our provider account for numbers the customer can buy. Read-only: nothing is reserved or charged. Prices are ours, never the provider's.","operationId":"search_available_numbers_api_v1_workspaces__workspace_id__projects__project_id__phone_numbers_available_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider","in":"query","required":false,"schema":{"type":"string","maxLength":32,"default":"twilio","title":"Provider"}},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"default":"US","title":"Country"}},{"name":"number_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/RentableNumberType","default":"local"}},{"name":"area_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{3}$"},{"type":"null"}],"title":"Area Code"}},{"name":"contains","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Contains"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RentableNumber"},"title":"Response Search Available Numbers Api V1 Workspaces  Workspace Id  Projects  Project Id  Phone Numbers Available Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/phone-numbers/buy":{"post":{"tags":["phone numbers"],"summary":"Buy a number","description":"Buy a number on our provider account and charge the first month to the workspace wallet. Replaying the same purchase_key returns the first result.","operationId":"buy_number_api_v1_workspaces__workspace_id__projects__project_id__phone_numbers_buy_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/heimdall__schemas__phone_number__BuyNumberRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/phone-numbers/{phone_number_id}":{"put":{"tags":["phone numbers"],"summary":"Update phone number","description":"Update a phone number (user can only update their own phone numbers)","operationId":"update_phone_number_api_v1_workspaces__workspace_id__projects__project_id__phone_numbers__phone_number_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Phone Number Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["phone numbers"],"summary":"Delete phone number","description":"Delete a phone number (user can only delete their own phone numbers)","operationId":"delete_phone_number_api_v1_workspaces__workspace_id__projects__project_id__phone_numbers__phone_number_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Phone Number Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/phone-numbers":{"post":{"tags":["phone numbers"],"summary":"Service Create Phone Number","operationId":"service_create_phone_number_api_v1_service_projects__project_id__phone_numbers_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["phone numbers"],"summary":"Service List Phone Numbers","operationId":"service_list_phone_numbers_api_v1_service_projects__project_id__phone_numbers_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PhoneNumberType"},{"type":"null"}],"title":"Type"}},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PhoneNumberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/phone-numbers/sync-numbers":{"post":{"tags":["phone numbers"],"summary":"Service Sync Phone Numbers","operationId":"service_sync_phone_numbers_api_v1_service_projects__project_id__phone_numbers_sync_numbers_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PhoneNumberType"},{"type":"null"}],"title":"Type"}},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberSyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PhoneNumberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/phone-numbers/by-provider/{provider_name}":{"get":{"tags":["phone numbers"],"summary":"Service List Phone Numbers By Provider","operationId":"service_list_phone_numbers_by_provider_api_v1_service_projects__project_id__phone_numbers_by_provider__provider_name__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_PhoneNumberList_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/phone-numbers/{phone_number_id}":{"put":{"tags":["phone numbers"],"summary":"Service Update Phone Number","operationId":"service_update_phone_number_api_v1_service_projects__project_id__phone_numbers__phone_number_id__put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Phone Number Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PhoneNumberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["phone numbers"],"summary":"Service Delete Phone Number","operationId":"service_delete_phone_number_api_v1_service_projects__project_id__phone_numbers__phone_number_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Phone Number Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/number-marketplace/{provider_name}/compliance-requirements":{"get":{"tags":["number marketplace"],"summary":"What this provider needs before numbers can be bought","operationId":"get_compliance_requirements_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace__provider_name__compliance_requirements_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}},{"name":"country","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":2,"title":"Country"}},{"name":"number_type","in":"query","required":true,"schema":{"type":"string","title":"Number Type"}},{"name":"end_user_type","in":"query","required":false,"schema":{"type":"string","default":"business","title":"End User Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/heimdall__schemas__number_marketplace__ComplianceRequirementsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/number-marketplace/{provider_name}/clearance":{"get":{"tags":["number marketplace"],"summary":"This project's latest KYC/clearance attempt for this scope","operationId":"get_clearance_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace__provider_name__clearance_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}},{"name":"country","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":2,"title":"Country"}},{"name":"number_type","in":"query","required":true,"schema":{"type":"string","title":"Number Type"}},{"name":"end_user_type","in":"query","required":false,"schema":{"type":"string","default":"business","title":"End User Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NumberClearanceResponse"},{"type":"null"}],"title":"Response Get Clearance Api V1 Workspaces  Workspace Id  Projects  Project Id  Number Marketplace  Provider Name  Clearance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/number-marketplace/{provider_name}/compliance":{"post":{"tags":["number marketplace"],"summary":"Submit compliance / start provider-hosted KYC","description":"For Vobiz this creates (or reuses) the project's sub-account and starts a redirect-flow KYC session -- the response's redirect_url is where the customer's browser should go next. Vobiz reports the outcome asynchronously via the KYC webhook; poll GET .../clearance or use the refresh endpoint if needed.","operationId":"submit_compliance_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace__provider_name__compliance_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_compliance_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace__provider_name__compliance_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberClearanceSubmitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/number-marketplace/{provider_name}/clearance/{clearance_id}/refresh":{"post":{"tags":["number marketplace"],"summary":"Poll the provider for this clearance's current status (fallback to the webhook)","operationId":"refresh_clearance_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace__provider_name__clearance__clearance_id__refresh_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}},{"name":"clearance_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Clearance Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberClearanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/number-marketplace/{provider_name}/search":{"get":{"tags":["number marketplace"],"summary":"Search numbers available to buy (requires a cleared KYC for this scope)","operationId":"search_numbers_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace__provider_name__search_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}},{"name":"country","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":2,"title":"Country"}},{"name":"number_type","in":"query","required":true,"schema":{"type":"string","title":"Number Type"}},{"name":"end_user_type","in":"query","required":false,"schema":{"type":"string","default":"business","title":"End User Type"}},{"name":"area_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area Code"}},{"name":"contains","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contains"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/heimdall__schemas__number_marketplace__AvailableNumberResponse"},"title":"Response Search Numbers Api V1 Workspaces  Workspace Id  Projects  Project Id  Number Marketplace  Provider Name  Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/number-marketplace/{provider_name}/buy":{"post":{"tags":["number marketplace"],"summary":"Buy a number (requires a cleared KYC for this scope; debits the wallet)","operationId":"buy_number_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace__provider_name__buy_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"provider_name","in":"path","required":true,"schema":{"type":"string","title":"Provider Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/heimdall__schemas__number_marketplace__BuyNumberRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchasedPhoneNumberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/number-marketplace/numbers/{phone_number_id}":{"delete":{"tags":["number marketplace"],"summary":"Release a rented number back to the provider","description":"Some providers (Vobiz) charge a release fee, debited from the wallet the same way a purchase is -- see the resulting transaction for the exact amount.","operationId":"release_number_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace_numbers__phone_number_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Phone Number Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchasedPhoneNumberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/number-marketplace/numbers/{phone_number_id}/cancel-release":{"post":{"tags":["number marketplace"],"summary":"Undo a still-pending release within its cooldown window","description":"Only works while the provider's release is still cancellable (Vobiz: within 24h of release()) -- restores the number and credits back whatever release_fee was charged for it.","operationId":"cancel_release_number_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace_numbers__phone_number_id__cancel_release_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Phone Number Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchasedPhoneNumberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/pricing/preview":{"get":{"tags":["pricing"],"summary":"Preview pricing based on selected models","operationId":"preview_agent_pricing_api_v1_pricing_preview_get","parameters":[{"name":"llm_model","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Llm Model"}},{"name":"stt_model","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Stt Model"}},{"name":"tts_model","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tts Model"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/providers/":{"get":{"tags":["providers"],"summary":"Get Grouped Providers","operationId":"get_grouped_providers_api_v1_providers__get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProviderDefaultItemResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["providers"],"summary":"Create Provider","operationId":"create_provider_api_v1_providers__post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProviderCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProviderRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/providers/language/default":{"get":{"tags":["providers"],"summary":"Get Language Default","operationId":"get_language_default_api_v1_providers_language_default_get","parameters":[{"name":"language_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Language id for which to fetch the default model","title":"Language Id"},"description":"Language id for which to fetch the default model"},{"name":"platform_keys_only","in":"query","required":false,"schema":{"type":"boolean","description":"Return only providers having platform API keys","default":false,"title":"Platform Keys Only"},"description":"Return only providers having platform API keys"},{"name":"model_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ModelType","description":"llm, stt, or tts"},"description":"llm, stt, or tts"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderLanguageDefaultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/providers/filter":{"get":{"tags":["providers"],"summary":"Filter Providers","operationId":"filter_providers_api_v1_providers_filter_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"model_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ModelType"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},{"name":"platform_keys_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Platform Keys Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProviderListItemResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/providers/voices":{"get":{"tags":["providers"],"summary":"List Model Voices","operationId":"list_model_voices_api_v1_providers_voices_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Id"}},{"name":"integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Id"}},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"voice_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},{"name":"gender","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"}},{"name":"accent","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"}},{"name":"is_active","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Is Active"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ModelVoiceOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/providers/voices/{voice_id}":{"get":{"tags":["providers"],"summary":"Get Model Voice","operationId":"get_model_voice_api_v1_providers_voices__voice_id__get","parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelVoiceDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/providers/{provider_id}":{"patch":{"tags":["providers"],"summary":"Update Provider","operationId":"update_provider_api_v1_providers__provider_id__patch","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Provider Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProviderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProviderRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["providers"],"summary":"Delete Provider","operationId":"delete_provider_api_v1_providers__provider_id__delete","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Provider Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/providers/{provider_id}/models":{"get":{"tags":["providers"],"summary":"Get Provider Models","operationId":"get_provider_models_api_v1_providers__provider_id__models_get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Provider Id"}},{"name":"model_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelType"},{"type":"null"}],"description":"Filter models by type","title":"Model Type"},"description":"Filter models by type"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProviderModels_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/providers/{provider_id}/model/{model_id}":{"get":{"tags":["providers"],"summary":"Get Provider Models Data","operationId":"get_provider_models_data_api_v1_providers__provider_id__model__model_id__get","parameters":[{"name":"provider_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Provider Id"}},{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelsDataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/providers/models":{"post":{"tags":["providers"],"summary":"Create Model","operationId":"create_model_api_v1_providers_models_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/providers/models/{model_id}":{"patch":{"tags":["providers"],"summary":"Update Model","operationId":"update_model_api_v1_providers_models__model_id__patch","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["providers"],"summary":"Delete Model","operationId":"delete_model_api_v1_providers_models__model_id__delete","parameters":[{"name":"model_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Model Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/calls/originate":{"post":{"tags":["calls"],"summary":"Originate Call","description":"Originate an outbound call via SIP.\n\nThis endpoint creates a call using direct SIP integration with the\ntrunk configuration stored with the caller_id phone number.\n\nThe caller_id must be a phone number registered to the user with:\n- terminate_uri: The SIP trunk host/URI\n- sip_user: Authentication username\n- sip_password: Authentication password (stored encrypted)\n- Associated agent configuration","operationId":"originate_call_api_v1_workspaces__workspace_id__projects__project_id__calls_originate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginateSipCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginateSipCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/calls/originate":{"post":{"tags":["calls"],"summary":"Service Originate Call","operationId":"service_originate_call_api_v1_service_projects__project_id__calls_originate_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginateSipCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OriginateSipCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/{telephony_provider}/incoming":{"post":{"tags":["telephony"],"summary":"Incoming Call","operationId":"incoming_call_api_v1_telephony__telephony_provider__incoming_post","parameters":[{"name":"telephony_provider","in":"path","required":true,"schema":{"type":"string","title":"Telephony Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["telephony"],"summary":"Incoming Call","operationId":"incoming_call_api_v1_telephony__telephony_provider__incoming_post","parameters":[{"name":"telephony_provider","in":"path","required":true,"schema":{"type":"string","title":"Telephony Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/twilio/callback":{"post":{"tags":["telephony"],"summary":"Twiml Callback","operationId":"twiml_callback_api_v1_telephony_twilio_callback_post","parameters":[{"name":"CustomField","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customfield"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/vobiz/callback":{"post":{"tags":["telephony"],"summary":"Vobiz Answer Callback","operationId":"vobiz_answer_callback_api_v1_telephony_vobiz_callback_post","parameters":[{"name":"CustomField","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Customfield"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/plivo/callback":{"post":{"tags":["telephony"],"summary":"Plivo Callback","operationId":"plivo_callback_api_v1_telephony_plivo_callback_post","parameters":[{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/{telephony_provider}/status-callback":{"post":{"tags":["telephony"],"summary":"Status","description":"Handle provider status callbacks through the domain call-event flow.\n\nProvider callbacks are an external status signal, not the source of truth for\nfinal call artifacts. Ringing/connected/missed/failed are translated into\ndomain events and handled by ``CallEventHandlerUseCase``. ``COMPLETED`` is\nintentionally not dispatched here for telephony calls because the websocket\nrunner emits a single merged ``CallCompleted`` event containing transcript,\nusage, and recording handoff data. That event enqueues the post-call\npipeline and keeps billing last.","operationId":"status_api_v1_telephony__telephony_provider__status_callback_post","parameters":[{"name":"telephony_provider","in":"path","required":true,"schema":{"type":"string","title":"Telephony Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/exotel/warm-transfer/gate":{"get":{"tags":["telephony"],"summary":"Exotel Warm Transfer Gate","description":"Let Exotel continue to Connect only when this call has a transfer intent.","operationId":"exotel_warm_transfer_gate_api_v1_telephony_exotel_warm_transfer_gate_get","parameters":[{"name":"CallSid","in":"query","required":true,"schema":{"type":"string","title":"Callsid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/exotel/warm-transfer/connect":{"get":{"tags":["telephony"],"summary":"Exotel Warm Transfer Connect","description":"Return the destination and optional callee-only warm handoff message.","operationId":"exotel_warm_transfer_connect_api_v1_telephony_exotel_warm_transfer_connect_get","parameters":[{"name":"CallSid","in":"query","required":true,"schema":{"type":"string","title":"Callsid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/plivo/transfer":{"post":{"tags":["telephony"],"summary":"Plivo Transfer Xml","operationId":"plivo_transfer_xml_api_v1_telephony_plivo_transfer_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/twilio/warm-transfer/destination":{"post":{"tags":["telephony"],"summary":"Twilio Warm Transfer Destination","operationId":"twilio_warm_transfer_destination_api_v1_telephony_twilio_warm_transfer_destination_post","parameters":[{"name":"conference_name","in":"query","required":true,"schema":{"type":"string","title":"Conference Name"}},{"name":"handoff_message","in":"query","required":false,"schema":{"type":"string","default":"","title":"Handoff Message"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/twilio/transfer-leg-callback":{"post":{"tags":["telephony"],"summary":"Twilio Transfer Leg Callback","description":"Twilio status callback for the transferred (post-`transfer_call`) leg.\n\nFired by the `<Dial>` noun (cold transfer / warm-transfer child call) with\n`DialCallSid`/`DialCallStatus`/`DialCallDuration`, or by the warm-transfer\nchild call itself with `CallSid`/`CallStatus`/`CallDuration`. Either shape\nis enough to fetch final cost and complete the `call_transfer_legs` row.","operationId":"twilio_transfer_leg_callback_api_v1_telephony_twilio_transfer_leg_callback_post","parameters":[{"name":"leg_token","in":"query","required":true,"schema":{"type":"string","title":"Leg Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/plivo/transfer-leg-callback":{"post":{"tags":["telephony"],"summary":"Plivo Transfer Leg Callback","description":"Plivo status callback for the transferred (post-`transfer_call`) leg.\n\nCold transfer: the `<Dial>` posts its `action` result (no duration) and its\n`callbackUrl` events (`DialAction`=answer/connected/digits/hangup; only\nhangup carries `DialBLegDuration`). An answered dial is completed by the\nhangup event; an unanswered one by the action result. Warm transfer: the\ndestination call's `hangup_url` (with `CallUUID`/`Duration`/`AnswerTime`).\n\nPlivo does not sign this callback (no X-Twilio-Signature equivalent), so\nthe unguessable `leg_token` minted at transfer time is the correlation\nsecret. Plivo may not have posted a price yet even when the leg ends -- in\nthat case `PlivoCallCostFetcher.fetch_cost` returns None and the leg is\nleft unbilled for `post_call_pipeline._run_transfer_leg_billing` to poll.","operationId":"plivo_transfer_leg_callback_api_v1_telephony_plivo_transfer_leg_callback_post","parameters":[{"name":"leg_token","in":"query","required":true,"schema":{"type":"string","title":"Leg Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/plivo/warm-transfer/caller":{"post":{"tags":["telephony"],"summary":"Plivo Warm Transfer Caller","operationId":"plivo_warm_transfer_caller_api_v1_telephony_plivo_warm_transfer_caller_post","parameters":[{"name":"conference_name","in":"query","required":true,"schema":{"type":"string","title":"Conference Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/plivo/warm-transfer/destination":{"post":{"tags":["telephony"],"summary":"Plivo Warm Transfer Destination","operationId":"plivo_warm_transfer_destination_api_v1_telephony_plivo_warm_transfer_destination_post","parameters":[{"name":"conference_name","in":"query","required":true,"schema":{"type":"string","title":"Conference Name"}},{"name":"handoff_message","in":"query","required":false,"schema":{"type":"string","default":"","title":"Handoff Message"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/vobiz/transfer":{"post":{"tags":["telephony"],"summary":"Vobiz Transfer Xml","operationId":"vobiz_transfer_xml_api_v1_telephony_vobiz_transfer_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/vobiz/warm-transfer/caller":{"post":{"tags":["telephony"],"summary":"Vobiz Warm Transfer Caller","operationId":"vobiz_warm_transfer_caller_api_v1_telephony_vobiz_warm_transfer_caller_post","parameters":[{"name":"conference_name","in":"query","required":true,"schema":{"type":"string","title":"Conference Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/vobiz/warm-transfer/destination":{"post":{"tags":["telephony"],"summary":"Vobiz Warm Transfer Destination","operationId":"vobiz_warm_transfer_destination_api_v1_telephony_vobiz_warm_transfer_destination_post","parameters":[{"name":"conference_name","in":"query","required":true,"schema":{"type":"string","title":"Conference Name"}},{"name":"handoff_message","in":"query","required":false,"schema":{"type":"string","default":"","title":"Handoff Message"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/vobiz/transfer-leg-callback":{"post":{"tags":["telephony"],"summary":"Vobiz Transfer Leg Callback","operationId":"vobiz_transfer_leg_callback_api_v1_telephony_vobiz_transfer_leg_callback_post","parameters":[{"name":"leg_token","in":"query","required":true,"schema":{"type":"string","title":"Leg Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/telephony/vobiz/kyc-webhook":{"post":{"tags":["telephony"],"summary":"Vobiz Kyc Webhook","operationId":"vobiz_kyc_webhook_api_v1_telephony_vobiz_kyc_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/telephony/initiate-call":{"post":{"tags":["telephony"],"summary":"Initiate Call","operationId":"initiate_call_api_v1_workspaces__workspace_id__projects__project_id__telephony_initiate_call_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/heimdall__schemas__telephony__StartSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/telephony/initiate-call":{"post":{"tags":["telephony"],"summary":"Service Initiate Call","operationId":"service_initiate_call_api_v1_service_projects__project_id__telephony_initiate_call_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/heimdall__schemas__telephony__StartSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/users/me":{"get":{"tags":["users"],"summary":"Me","operationId":"me_api_v1_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["users"],"summary":"Update Me","operationId":"update_me_api_v1_users_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/users/sync-to-posthog":{"post":{"tags":["users"],"summary":"Sync all users to PostHog","description":"Fetches all users from the database and sends their data to PostHog","operationId":"sync_users_to_posthog_api_v1_users_sync_to_posthog_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/users/api-keys":{"get":{"tags":["users"],"summary":"List API keys","description":"Paginated API key list with search and filters","operationId":"list_api_keys_api_v1_workspaces__workspace_id__projects__project_id__users_api_keys_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Id"}},{"name":"model_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelType"},{"type":"null"}],"title":"Model Type"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"title":"Provider"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_APIKeyListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["users"],"summary":"Create Api Key","operationId":"create_api_key_api_v1_workspaces__workspace_id__projects__project_id__users_api_keys_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/users/api-keys/{key_id}":{"patch":{"tags":["users"],"summary":"Update Api Key","operationId":"update_api_key_api_v1_workspaces__workspace_id__projects__project_id__users_api_keys__key_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["users"],"summary":"Delete Api Key","operationId":"delete_api_key_api_v1_workspaces__workspace_id__projects__project_id__users_api_keys__key_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/users/secret-keys":{"post":{"tags":["users"],"summary":"Generate a secret key","operationId":"create_secret_key_api_v1_workspaces__workspace_id__projects__project_id__users_secret_keys_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretKeyCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["users"],"summary":"List secret keys","operationId":"list_secret_keys_api_v1_workspaces__workspace_id__projects__project_id__users_secret_keys_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SecretKeyListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/users/secret-keys/{key_id}":{"delete":{"tags":["users"],"summary":"Delete a secret key","operationId":"delete_secret_key_api_v1_workspaces__workspace_id__projects__project_id__users_secret_keys__key_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/wallet":{"get":{"tags":["wallet"],"summary":"Get Wallet Balance","operationId":"get_wallet_balance_api_v1_workspaces__workspace_id__wallet_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletBalance"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/wallet/transactions":{"get":{"tags":["wallet"],"summary":"This workspace's wallet history, newest first","description":"Every movement of the balance, for the workspace's own members. Deal terms are not included: what an account paid and on what discount is not shown back to it.","operationId":"list_wallet_transactions_api_v1_workspaces__workspace_id__wallet_transactions_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WalletTransaction_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/web-agents/start-session":{"post":{"tags":["web agents"],"summary":"Start Session","operationId":"start_session_api_v1_workspaces__workspace_id__projects__project_id__web_agents_start_session_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWebAgentSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/heimdall__schemas__web_agent__StartSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/web-agents/text/start-session":{"post":{"tags":["web agents"],"summary":"Start Text Session","operationId":"start_text_session_api_v1_workspaces__workspace_id__projects__project_id__web_agents_text_start_session_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartWebAgentSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/heimdall__schemas__web_agent__StartSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/languages":{"get":{"tags":["languages"],"summary":"List all languages","description":"Retrieve a paginated list of all languages","operationId":"get_languages_api_v1_languages_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_LanguageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/languages/{language_id}":{"get":{"tags":["languages"],"summary":"Get a language by ID","description":"Retrieve a specific language by ID","operationId":"get_language_api_v1_languages__language_id__get","parameters":[{"name":"language_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Language Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/timezones":{"get":{"tags":["timezones"],"summary":"List IANA timezones","description":"IANA timezones both the server and the database accept.","operationId":"list_timezones_api_v1_timezones_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimezoneListResponse"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces":{"get":{"tags":["workspaces"],"summary":"List Workspaces","operationId":"list_workspaces_api_v1_workspaces_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WorkspaceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["workspaces"],"summary":"Closed: workspaces are provisioned by the team","description":"Refused. A workspace is a billing boundary -- it carries its own wallet, its own feature levers and its own seat count -- so one is opened as part of a deal rather than self-served. Admins create them through POST /admin/workspaces. When self-serve billing arrives this becomes the checkout entry point rather than a flat refusal.","operationId":"create_workspace_api_v1_workspaces_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspacePayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/switch":{"patch":{"tags":["workspaces"],"summary":"Switch Workspace","operationId":"switch_workspace_api_v1_workspaces_switch_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchWorkspacePayload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/current":{"get":{"tags":["workspaces"],"summary":"Get Current Workspace","operationId":"get_current_workspace_api_v1_workspaces_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}":{"get":{"tags":["workspaces"],"summary":"Get Workspace","operationId":"get_workspace_api_v1_workspaces__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["workspaces"],"summary":"Update Workspace","operationId":"update_workspace_api_v1_workspaces__workspace_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspacePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["workspaces"],"summary":"Delete Workspace","operationId":"delete_workspace_api_v1_workspaces__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/members":{"get":{"tags":["workspaces"],"summary":"List Workspace Members","operationId":"list_workspace_members_api_v1_workspaces__workspace_id__members_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WorkspaceMemberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/members/{member_id}":{"delete":{"tags":["workspaces"],"summary":"Remove Workspace Member","operationId":"remove_workspace_member_api_v1_workspaces__workspace_id__members__member_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"member_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Member Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/leave":{"post":{"tags":["workspaces"],"summary":"Leave Workspace","operationId":"leave_workspace_api_v1_workspaces__workspace_id__leave_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/invite":{"post":{"tags":["workspaces"],"summary":"Invite Member","operationId":"invite_member_api_v1_workspaces__workspace_id__invite_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInvitePayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/invite/accept":{"post":{"tags":["workspaces"],"summary":"Accept Invitation","operationId":"accept_invitation_api_v1_workspaces_invite_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptWorkspaceInvitationPayload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/invite/decline":{"post":{"tags":["workspaces"],"summary":"Decline Invitation","operationId":"decline_invitation_api_v1_workspaces_invite_decline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineWorkspaceInvitationPayload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/invites":{"get":{"tags":["workspaces"],"summary":"List Workspace Invites","operationId":"list_workspace_invites_api_v1_workspaces__workspace_id__invites_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WorkspaceInvitationListItemResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/invite/revoke":{"post":{"tags":["workspaces"],"summary":"Revoke Workspace Invite","operationId":"revoke_workspace_invite_api_v1_workspaces_invite_revoke_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeWorkspaceInvitationPayload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/features":{"get":{"tags":["workspaces"],"summary":"This workspace's effective feature levers","description":"Read-only. Every lever resolved for this workspace: the platform default with any admin-set overrides applied. The frontend gates UI on this; the backend enforces the same values independently, so a client that ignores it still cannot use what the workspace lacks.","operationId":"get_workspace_features_api_v1_workspaces__workspace_id__features_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Workspace Features Api V1 Workspaces  Workspace Id  Features Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects":{"get":{"tags":["projects"],"summary":"List Projects","operationId":"list_projects_api_v1_workspaces__workspace_id__projects_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"exclude","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Project UUIDs to exclude","default":[],"title":"Exclude"},"description":"Project UUIDs to exclude"},{"name":"include_default","in":"query","required":false,"schema":{"type":"boolean","description":"Include the workspace's system-created Default project. Pass false to count only what the customer created, which is what the max_projects allowance is measured against -- Default cannot be deleted, so it never occupies a plan slot.","default":true,"title":"Include Default"},"description":"Include the workspace's system-created Default project. Pass false to count only what the customer created, which is what the max_projects allowance is measured against -- Default cannot be deleted, so it never occupies a plan slot."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ProjectResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["projects"],"summary":"Create Project","operationId":"create_project_api_v1_workspaces__workspace_id__projects_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectPayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/delete":{"patch":{"tags":["projects"],"summary":"Delete Project","operationId":"delete_project_api_v1_workspaces__workspace_id__projects__project_id__delete_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/members/{user_id}":{"delete":{"tags":["projects"],"summary":"Remove Project Member","operationId":"remove_project_member_api_v1_workspaces__workspace_id__projects__project_id__members__user_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/members":{"get":{"tags":["projects"],"summary":"List Project Members","operationId":"list_project_members_api_v1_workspaces__workspace_id__projects__project_id__members_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectMemberResponse"},"title":"Response List Project Members Api V1 Workspaces  Workspace Id  Projects  Project Id  Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["projects"],"summary":"Add Project Member","operationId":"add_project_member_api_v1_workspaces__workspace_id__projects__project_id__members_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddProjectMemberPayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/users/is-active":{"patch":{"tags":["internal"],"summary":"Bulk update user is_active","description":"Update is_active flag for a list of users by email. Requires Basic Auth.","operationId":"bulk_update_is_active_api_v1_admin_users_is_active_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIsActiveRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIsActiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBasic":[]}]}},"/api/v1/admin/users":{"delete":{"tags":["internal"],"summary":"Bulk delete users","description":"Delete a list of users by email. Requires Basic Auth.","operationId":"bulk_delete_users_api_v1_admin_users_delete","security":[{"HTTPBasic":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["internal"],"summary":"Create a user by email","description":"Creates a user with the given email if one doesn't already exist. If a user with that email already exists, returns it unchanged. Requires an admin user.","operationId":"create_user_api_v1_admin_users_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["internal"],"summary":"List all users","description":"Returns every user in the system. Requires an admin user.","operationId":"list_all_users_api_v1_admin_users_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminUserResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/users/{user_id}":{"delete":{"tags":["internal"],"summary":"Deactivate a user and tear down their workspaces","description":"Deactivates the user, soft-deletes every workspace they own — their system-default included — along with its projects, moves other members left project-less there back to their own default workspace, and drops the user's own workspace context. An admin user cannot be deleted this way. Requires an admin user.","operationId":"delete_user_api_v1_admin_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["internal"],"summary":"Get a user","description":"Returns a single user by id. Requires an admin user.","operationId":"get_user_api_v1_admin_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["internal"],"summary":"Update a user","description":"Partially updates a user (currently: `name`, `email`). Fields left out are unchanged; an empty body is a no-op. `email` must not already be in use by another user. Requires an admin user.","operationId":"update_user_api_v1_admin_users__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUpdateUserRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/users/{user_id}/workspaces":{"get":{"tags":["internal"],"summary":"List a user's workspaces","description":"Returns every workspace the given user is a member of. Requires an admin user.","operationId":"list_user_workspaces_api_v1_admin_users__user_id__workspaces_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminWorkspaceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/users/{user_id}/projects":{"get":{"tags":["internal"],"summary":"List a user's projects","description":"Returns every project the given user is a member of. Requires an admin user.","operationId":"list_user_projects_api_v1_admin_users__user_id__projects_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminProjectResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/call-pricing":{"get":{"tags":["internal"],"summary":"List pricing details for completed, fully billed calls in a workspace","description":"Returns call_session_id, usage_summary, call_durations, total_cost, total_cost_with_margin, platform_margin, and created_at for calls that are completed and fully billed. Requires Basic Auth.","operationId":"list_call_pricing_api_v1_admin_workspaces__workspace_id__call_pricing_get","security":[{"HTTPBasic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},{"name":"call_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Call Session Id"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminCallPricingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/workspaces":{"get":{"tags":["internal"],"summary":"List all workspaces","description":"Returns every workspace in the system. Requires an admin user.","operationId":"list_all_workspaces_api_v1_admin_workspaces_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminWorkspaceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["internal"],"summary":"Create a workspace for a user","description":"Creates a new workspace owned by the given user. Requires an admin user.","operationId":"create_workspace_for_user_api_v1_admin_workspaces_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceForUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}":{"get":{"tags":["internal"],"summary":"Get a workspace","description":"Returns a single workspace by id. Requires an admin user.","operationId":"get_workspace_api_v1_admin_workspaces__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["internal"],"summary":"Update a workspace","description":"Partially updates a workspace (currently: `name`). Fields left out are unchanged; an empty body is a no-op. Requires an admin user.","operationId":"update_workspace_api_v1_admin_workspaces__workspace_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUpdateWorkspaceRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["internal"],"summary":"Delete a workspace","description":"Soft-deletes the workspace and its projects, exactly as the workspace owner's delete would. The system-default workspace cannot be deleted. Requires an admin user.","operationId":"delete_workspace_api_v1_admin_workspaces__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/projects":{"get":{"tags":["internal"],"summary":"List all projects in a workspace","description":"Returns every project in the given workspace. Requires an admin user.","operationId":"list_all_projects_in_workspace_api_v1_admin_workspaces__workspace_id__projects_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminProjectResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/members":{"get":{"tags":["internal"],"summary":"List all members of a workspace","description":"Returns every member of the given workspace. Requires an admin user.","operationId":"list_workspace_members_api_v1_admin_workspaces__workspace_id__members_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminWorkspaceMemberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/wallet":{"get":{"tags":["internal"],"summary":"A workspace's wallet balance","description":"Requires an admin user.","operationId":"get_workspace_wallet_api_v1_admin_workspaces__workspace_id__wallet_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletBalance"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/subscription":{"get":{"tags":["internal"],"summary":"The workspace's current deal terms","description":"Read off the most recent grant: what was paid, the bonus applied, the subscription period and the invoice note. Null when the workspace has never been granted credits. Requires an admin user.","operationId":"get_workspace_subscription_api_v1_admin_workspaces__workspace_id__subscription_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminSubscriptionResponse"},{"type":"null"}],"title":"Response Get Workspace Subscription Api V1 Admin Workspaces  Workspace Id  Subscription Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/calls/{call_id}/billing":{"get":{"tags":["internal"],"summary":"Everything behind one call's charge","description":"The call, how its charge was computed, usage and unit price per service, telephony, and every ledger row it produced. Requires an admin user.","operationId":"get_call_billing_api_v1_admin_workspaces__workspace_id__calls__call_id__billing_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCallBillingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/transactions":{"get":{"tags":["internal"],"summary":"A workspace's ledger, newest first","description":"Every movement of the balance. For an admin grant, meta_data carries the dollars received and the discount applied, which is the audit trail for that deal. Requires an admin user.","operationId":"list_workspace_transactions_api_v1_admin_workspaces__workspace_id__transactions_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Match the call id as text. A partial id pasted from the table or a log line finds its ledger row.","title":"Search"},"description":"Match the call id as text. A partial id pasted from the table or a log line finds its ledger row."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminTransactionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/wallet/grant":{"post":{"tags":["internal"],"summary":"Settle an offline deal into a workspace's wallet","description":"Issues credits for cash received. The base rate is fixed at 1 credit = $1; a discount raises how many credits a dollar buys, so 20% off makes $1 worth 1.20 credits. The rate is derived once and frozen onto the ledger row, so a later deal at a different discount cannot re-price these credits. Requires an admin user.","operationId":"grant_workspace_credits_api_v1_admin_workspaces__workspace_id__wallet_grant_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGrantCreditsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminGrantCreditsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/currency":{"put":{"tags":["internal"],"summary":"Set the currency and fixed ratio a workspace's grants are paid in","description":"Internal reporting only: customers always see and are billed in USD credits. `fx_rate` is the ratio the next grant is entered at; past grants keep the ratio frozen on their ledger row. Changes nothing else. Returns the balance. Requires an admin user.","operationId":"set_workspace_currency_api_v1_admin_workspaces__workspace_id__currency_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetWorkspaceCurrencyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletBalance"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/wallet/debit":{"post":{"tags":["internal"],"summary":"Deduct credits from a workspace's wallet","description":"A correction, not a sale -- a deal goes through /wallet/grant so the dollars behind it are recorded. Subtracts `amount` and logs a transaction with source=admin, the acting admin, and `note` as the reason. The balance may go negative: a correction for spend that already happened is still the right entry. Requires an admin user.","operationId":"debit_workspace_wallet_api_v1_admin_workspaces__workspace_id__wallet_debit_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWalletAmountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletBalance"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/features":{"get":{"tags":["internal"],"summary":"List every feature lever and its platform default","description":"The catalog. A workspace without its own override follows the default shown here. Requires an admin user.","operationId":"list_feature_definitions_api_v1_admin_features_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FeatureDefinitionResponse"},"type":"array","title":"Response List Feature Definitions Api V1 Admin Features Get"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["internal"],"summary":"Add a feature lever to the catalog","description":"Creates a platform-default row. No backfill follows and none is needed: every workspace without an override of its own resolves through this row, so the lever is live everywhere the moment it commits. Requires an admin user.","operationId":"create_feature_definition_api_v1_admin_features_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCreateFeatureRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/features/{key}":{"patch":{"tags":["internal"],"summary":"Edit a feature lever","description":"Changes the display name, the platform default, or whether the lever applies at all. Deactivating retires it: it is dropped from every workspace's resolved set, which turns a capability off for everyone and stops a quota being enforced. Requires an admin user.","operationId":"update_feature_definition_api_v1_admin_features__key__patch","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUpdateFeatureRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["internal"],"summary":"Delete a feature lever and every override of it","description":"Destructive and not undoable: the negotiated per-workspace exceptions go with the definition. Refused while the lever is still active -- deactivate it first. Requires an admin user.","operationId":"delete_feature_definition_api_v1_admin_features__key__delete","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/features/{key}/default":{"put":{"tags":["internal"],"summary":"Retune a feature's platform default","description":"Changes the default for every workspace that has not been given its own override. Check who that affects before lowering a limit. Requires an admin user.","operationId":"set_feature_default_api_v1_admin_features__key__default_put","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetFeatureDefaultRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/number-pricing":{"get":{"tags":["internal"],"summary":"Show what rented numbers cost us per month","description":"The provider's monthly price for each provider:country:number_type we sell. Customers pay this plus the number_markup_usd feature. A combination missing here can't be bought. Requires an admin user.","operationId":"get_number_pricing_api_v1_admin_number_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminNumberPricingResponse"}}}}},"security":[{"BearerAuth":[]}]},"put":{"tags":["internal"],"summary":"Change what rented numbers cost us per month","description":"Replaces the whole table; the previous one is kept in price history. Prices numbers bought from now on: one already bought keeps renewing at the price it was bought at. Requires an admin user.","operationId":"set_number_pricing_api_v1_admin_number_pricing_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminNumberPricing"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminNumberPricingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/features":{"get":{"tags":["internal"],"summary":"A workspace's effective feature levers","description":"Every lever resolved for this workspace: the platform default, with its own overrides applied. Requires an admin user.","operationId":"get_workspace_features_api_v1_admin_workspaces__workspace_id__features_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFeaturesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/features/{key}":{"put":{"tags":["internal"],"summary":"Override one feature lever for one workspace","description":"Stores a deliberate exception for this workspace. A null value means unlimited for a quota. Requires an admin user.","operationId":"set_workspace_feature_api_v1_admin_workspaces__workspace_id__features__key__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetFeatureOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFeaturesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["internal"],"summary":"Drop a workspace back to the platform default for one lever","description":"Removes this workspace's override, if it has one. Requires an admin user.","operationId":"clear_workspace_feature_api_v1_admin_workspaces__workspace_id__features__key__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFeaturesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/model-access":{"get":{"tags":["internal"],"summary":"Which models this workspace may use","description":"Every active model, grouped by provider, flagged with whether this workspace is granted it. A workspace with no grants is unrestricted and every model comes back allowed. Requires an admin user.","operationId":"get_workspace_model_access_api_v1_admin_workspaces__workspace_id__model_access_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWorkspaceModelAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"put":{"tags":["internal"],"summary":"Set which models this workspace may use","description":"Replaces the workspace's grants with the models given. An empty list clears every grant and returns the workspace to unrestricted, rather than locking it out of making calls. Requires an admin user.","operationId":"set_workspace_model_access_api_v1_admin_workspaces__workspace_id__model_access_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSetWorkspaceModelAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWorkspaceModelAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/calls/{call_id}":{"get":{"tags":["internal"],"summary":"Admin Get Call","operationId":"admin_get_call_api_v1_admin_workspaces__workspace_id__calls__call_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/calls/{call_id}/recording-url":{"post":{"tags":["internal"],"summary":"Admin Get Call Recording Url","operationId":"admin_get_call_recording_url_api_v1_admin_workspaces__workspace_id__calls__call_id__recording_url_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionRecordingActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSessionRecordingUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/calls/{call_id}/function-logs":{"get":{"tags":["internal"],"summary":"Admin List Call Function Logs","operationId":"admin_list_call_function_logs_api_v1_admin_workspaces__workspace_id__calls__call_id__function_logs_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"call_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Call Session Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"function_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Name"}},{"name":"function_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"run","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FunctionCallRun"},{"type":"null"}],"title":"Run"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_FunctionCallLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/workspaces/{workspace_id}/calls/{call_id}/webhook-logs":{"get":{"tags":["internal"],"summary":"Admin List Call Webhook Logs","operationId":"admin_list_call_webhook_logs_api_v1_admin_workspaces__workspace_id__calls__call_id__webhook_logs_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Call Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WebhookDeliveryLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/projects":{"post":{"tags":["internal"],"summary":"Create a project in a workspace","description":"Creates a new project in the given workspace, owned by the workspace's owner. Requires an admin user.","operationId":"create_project_for_workspace_api_v1_admin_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectForWorkspaceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/projects/{project_id}":{"get":{"tags":["internal"],"summary":"Get a project","description":"Returns a single project by id. Requires an admin user.","operationId":"get_project_api_v1_admin_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["internal"],"summary":"Update a project","description":"Partially updates a project (currently: `name`). Fields left out are unchanged; an empty body is a no-op. `name` must be unique within the project's workspace. Requires an admin user.","operationId":"update_project_api_v1_admin_projects__project_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUpdateProjectRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["internal"],"summary":"Delete a project","description":"Soft-deletes the project, exactly as the workspace owner's delete would. The workspace's default project cannot be deleted. Requires an admin user.","operationId":"delete_project_api_v1_admin_projects__project_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/projects/{project_id}/members":{"get":{"tags":["internal"],"summary":"List all members of a project","description":"Returns every member of the given project. Requires an admin user.","operationId":"list_project_members_api_v1_admin_projects__project_id__members_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminProjectMemberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/impersonation":{"post":{"tags":["internal"],"summary":"Start impersonating a user","description":"Returns a short-lived token pair that acts as the target user (`sub`), carrying the calling admin's id as `admin_id`. Requires an admin user; the caller must not already be impersonating. The caller's own `refresh_token` must be supplied and is revoked as impersonation starts (it must belong to the same admin the request authenticated as), so `stop` returns the admin a fresh session rather than leaving two live.","operationId":"start_impersonation_api_v1_admin_impersonation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartImpersonationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/impersonation/stop":{"post":{"tags":["internal"],"summary":"Stop impersonating and return to the admin session","description":"Send the impersonation access token as bearer and its matching refresh token in the body. The refresh token is revoked (same path as logout) and a fresh normal token pair for the admin is returned. Only the session you present both halves of is stopped; the old impersonation access token stays valid until it expires (a few minutes).","operationId":"stop_impersonation_api_v1_admin_impersonation_stop_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopImpersonationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/integrations":{"get":{"tags":["internal"],"summary":"List all integrations (active and inactive) with their platform credential","description":"Returns every non-deleted integration by default. Use is_active to narrow to one status, and has_platform_credential to show only integrations with or without a platform credential configured; omit either to get both.","operationId":"list_integrations_api_v1_admin_integrations_get","parameters":[{"name":"integration_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationType"},{"type":"null"}],"title":"Integration Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"description":"Case-insensitive search across integration name, title, and description","title":"Search"},"description":"Case-insensitive search across integration name, title, and description"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Comma-separated category names or keys (matches any supplied category)","title":"Category"},"description":"Comma-separated category names or keys (matches any supplied category)"},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true = only active, false = only inactive, omitted = both","title":"Is Active"},"description":"true = only active, false = only inactive, omitted = both"},{"name":"platform_credential_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PlatformCredentialStatus"},{"type":"null"}],"description":"not_set = integrations without a platform credential, active / inactive = by credential status, omitted = all","title":"Platform Credential Status"},"description":"not_set = integrations without a platform credential, active / inactive = by credential status, omitted = all"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_AdminIntegrationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/integrations/{integration_id}/credentials":{"post":{"tags":["internal"],"summary":"Create an integration's platform credential","operationId":"create_platform_credential_api_v1_admin_integrations__integration_id__credentials_post","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCredentialRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["internal"],"summary":"Update an integration's existing platform credential","operationId":"update_platform_credential_api_v1_admin_integrations__integration_id__credentials_patch","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCredentialPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/integrations/{integration_id}/is-active":{"patch":{"tags":["internal"],"summary":"Activate or deactivate an integration","description":"Sets integrations.is_active to the submitted value. Deactivating hides the integration from provider listings; already-configured agents keep their stored configuration. Requires an admin user.","operationId":"set_integration_is_active_api_v1_admin_integrations__integration_id__is_active_patch","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationIsActiveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationIsActiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/integrations/{integration_id}":{"patch":{"tags":["internal"],"summary":"Update an integration's catalog title, description, and console URL","description":"Updates display_name, description, and/or console_url for an existing integration. The canonical name, type/category, logo, and integration set are not editable here.","operationId":"update_integration_metadata_api_v1_admin_integrations__integration_id__patch","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminIntegrationPatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/scripts/seed-models/run":{"post":{"tags":["internal"],"summary":"Seed providers, models, pricing, and tags synchronously","description":"Runs the full seed_models sync inline and returns a per-step summary.","operationId":"run_seed_models_api_v1_admin_scripts_seed_models_run_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Run Seed Models Api V1 Admin Scripts Seed Models Run Post"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/sip/provider-cidrs":{"get":{"tags":["internal"],"summary":"Get Provider Cidrs","operationId":"get_provider_cidrs_api_v1_admin_sip_provider_cidrs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"BearerAuth":[]}]},"put":{"tags":["internal"],"summary":"Update Provider Cidrs","operationId":"update_provider_cidrs_api_v1_admin_sip_provider_cidrs_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCidrsUpdate"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/admin/debug/memory":{"get":{"tags":["internal"],"summary":"Current memory/gc stats for this API worker process","description":"Requires ENABLE_PROFILING=true (404 otherwise). Always a cheap rss/cpu/thread/gc-count sample (O(1) via psutil/gc) - no deep heap-walking objgraph/tracemalloc tier runs here. Requires Basic Auth.","operationId":"get_memory_debug_api_v1_admin_debug_memory_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]}},"/api/v1/admin/debug/gc-trim":{"post":{"tags":["internal"],"summary":"Force a full gc.collect() + allocator trim and report the RSS delta","description":"Requires ENABLE_PROFILING=true (404 otherwise). Answers the 'code vs. docker lib' question cheaply: if RSS drops materially after this call, the memory was allocator-retained-but-freed (not a real leak); if it doesn't move, the growth is genuine (Python-level if `collected` is nonzero and climbing across repeated calls, otherwise native). Tries tcmalloc's MallocExtension_ReleaseFreeMemory() first, since Dockerfile.aws LD_PRELOADs libtcmalloc and glibc's malloc_trim is a no-op against tcmalloc's own pools; falls back to glibc malloc_trim(0) when tcmalloc isn't loaded (e.g. local dev). `trim_method` in the response says which one actually ran - a `trim_method` of \"none\" means neither symbol was found and the rss_delta_mb below tested nothing. Requires Basic Auth.","operationId":"gc_trim_debug_api_v1_admin_debug_gc_trim_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBasic":[]}]}},"/api/v1/admin/debug/leak":{"post":{"tags":["internal"],"summary":"[Verification only] Deliberately leak `count` objects to test the profiling report","description":"Requires ENABLE_PROFILING=true (404 otherwise). Appends throwaway objects to a module-level list that is never cleared, so the growth is visible in /admin/debug/memory and the periodic log. Use this to confirm the profiling pipeline actually surfaces a leak before relying on it in production. Requires Basic Auth.","operationId":"leak_debug_api_v1_admin_debug_leak_post","security":[{"HTTPBasic":[]}],"parameters":[{"name":"count","in":"query","required":false,"schema":{"type":"integer","maximum":1000000,"exclusiveMinimum":0,"default":1000,"title":"Count"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/webhooks/event-types":{"get":{"tags":["webhooks"],"summary":"List Event Types","description":"List all supported webhook event types, optionally filtered by scope (agent, phone_number, batch).","operationId":"list_event_types_api_v1_workspaces__workspace_id__projects__project_id__webhooks_event_types_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"enum":["agent","phone_number","batch"],"type":"string"},{"type":"null"}],"title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEventTypeResponse"},"title":"Response List Event Types Api V1 Workspaces  Workspace Id  Projects  Project Id  Webhooks Event Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/webhooks/test":{"post":{"tags":["webhooks"],"summary":"Test Webhook Delivery","description":"Send one sample event to a draft webhook and show the response. Nothing is stored.","operationId":"test_webhook_delivery_api_v1_workspaces__workspace_id__projects__project_id__webhooks_test_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/webhooks":{"post":{"tags":["webhooks"],"summary":"Create Webhook Subscription","description":"Subscribe to call lifecycle events for a specific agent or phone number.\n\n**Agent scope** (`scope: \"agent\"`) — fires for every call conversation\nhandled by the given agent, covering both SIP and web calls.\n\n**Phone-number scope** (`scope: \"phone_number\"`) — fires for every\nSIP/telephony call lifecycle event on the given registered phone number,\nregardless of which agent handles it.\n\nBoth scopes are independent; a single call may trigger webhooks from\nsubscriptions of both types simultaneously.","operationId":"create_webhook_subscription_api_v1_workspaces__workspace_id__projects__project_id__webhooks_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["webhooks"],"summary":"List Webhook Subscriptions","description":"List all webhook subscriptions for the project, optionally filtered by scope.","operationId":"list_webhook_subscriptions_api_v1_workspaces__workspace_id__projects__project_id__webhooks_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/WebhookSubscriptionScope"},{"type":"null"}],"title":"Scope"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WebhookSubscriptionListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/webhooks/logs":{"get":{"tags":["webhooks"],"summary":"List Delivery Logs","description":"Audit log of every delivery attempt for a webhook subscription.\n\nEach retry by the Celery worker produces a separate row so you can\nsee exactly how many attempts were made, which HTTP status codes were\nreturned, and what error occurred on failures.\n\nOptionally filter by call_session_id to see only logs for a specific call.","operationId":"list_delivery_logs_api_v1_workspaces__workspace_id__projects__project_id__webhooks_logs_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"webhook_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Webhook Id"}},{"name":"call_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Call Session Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WebhookDeliveryLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/webhooks/{webhook_id}":{"get":{"tags":["webhooks"],"summary":"Get Webhook Subscription","operationId":"get_webhook_subscription_api_v1_workspaces__workspace_id__projects__project_id__webhooks__webhook_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["webhooks"],"summary":"Update Webhook Subscription","description":"Update the URL, events list, secret, or active status of a subscription.","operationId":"update_webhook_subscription_api_v1_workspaces__workspace_id__projects__project_id__webhooks__webhook_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["webhooks"],"summary":"Delete Webhook Subscription","operationId":"delete_webhook_subscription_api_v1_workspaces__workspace_id__projects__project_id__webhooks__webhook_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/webhooks/event-types":{"get":{"tags":["webhooks"],"summary":"Service List Event Types","operationId":"service_list_event_types_api_v1_service_projects__project_id__webhooks_event_types_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"enum":["agent","phone_number","batch"],"type":"string"},{"type":"null"}],"title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEventTypeResponse"},"title":"Response Service List Event Types Api V1 Service Projects  Project Id  Webhooks Event Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/webhooks":{"post":{"tags":["webhooks"],"summary":"Service Create Webhook Subscription","operationId":"service_create_webhook_subscription_api_v1_service_projects__project_id__webhooks_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["webhooks"],"summary":"Service List Webhook Subscriptions","operationId":"service_list_webhook_subscriptions_api_v1_service_projects__project_id__webhooks_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/WebhookSubscriptionScope"},{"type":"null"}],"title":"Scope"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WebhookSubscriptionListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/webhooks/logs":{"get":{"tags":["webhooks"],"summary":"Service List Delivery Logs","operationId":"service_list_delivery_logs_api_v1_service_projects__project_id__webhooks_logs_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"webhook_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Webhook Id"}},{"name":"call_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Call Session Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WebhookDeliveryLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/webhooks/{webhook_id}":{"get":{"tags":["webhooks"],"summary":"Service Get Webhook Subscription","operationId":"service_get_webhook_subscription_api_v1_service_projects__project_id__webhooks__webhook_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["webhooks"],"summary":"Service Update Webhook Subscription","operationId":"service_update_webhook_subscription_api_v1_service_projects__project_id__webhooks__webhook_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSubscriptionCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["webhooks"],"summary":"Service Delete Webhook Subscription","operationId":"service_delete_webhook_subscription_api_v1_service_projects__project_id__webhooks__webhook_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/function-logs":{"get":{"tags":["function logs"],"summary":"List Function Logs","operationId":"list_function_logs_api_v1_workspaces__workspace_id__projects__project_id__function_logs_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"call_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Call Session Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"function_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Name"}},{"name":"function_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"run","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FunctionCallRun"},{"type":"null"}],"title":"Run"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_FunctionCallLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/function-logs":{"get":{"tags":["function logs"],"summary":"Service List Function Logs","operationId":"service_list_function_logs_api_v1_service_projects__project_id__function_logs_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"call_session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Call Session Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"function_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Name"}},{"name":"function_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Function Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"run","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FunctionCallRun"},{"type":"null"}],"title":"Run"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_FunctionCallLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/sdk-token":{"post":{"tags":["sdk tokens"],"summary":"Mint a short-lived SDK token","description":"Call this from your **server** with a project secret key and pass the returned token to your browser app. The token expires in minutes and stops working immediately if the secret key is revoked. Never send the secret key to a browser.","operationId":"service_create_sdk_token_api_v1_service_projects__project_id__sdk_token_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SdkTokenRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SdkTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/integrations":{"get":{"tags":["integrations"],"summary":"List Integrations","operationId":"list_integrations_api_v1_integrations_get","parameters":[{"name":"integration_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationType"},{"type":"null"}],"description":"Filter by integration type (ai_provider, telephony, calendar, server_credential, object_storage)","title":"Integration Type"},"description":"Filter by integration type (ai_provider, telephony, calendar, server_credential, object_storage)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_IntegrationListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/integrations/catalog":{"get":{"tags":["integrations"],"summary":"Get Integration Catalog","operationId":"get_integration_catalog_api_v1_integrations_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCatalogResponse"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/integrations/filter":{"get":{"tags":["integrations"],"summary":"Filter Integrations","operationId":"filter_integrations_api_v1_integrations_filter_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"model_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ModelType"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},{"name":"platform_credentials_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Platform Credentials Only"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_IntegrationListItemResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/integrations/language/default":{"get":{"tags":["integrations"],"summary":"Get Language Default","operationId":"get_language_default_api_v1_integrations_language_default_get","parameters":[{"name":"language_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Language id for which to fetch the default model","title":"Language Id"},"description":"Language id for which to fetch the default model"},{"name":"model_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ModelType","description":"llm, stt, or tts"},"description":"llm, stt, or tts"},{"name":"platform_credentials_only","in":"query","required":false,"schema":{"type":"boolean","description":"Return only providers having platform API keys","default":false,"title":"Platform Credentials Only"},"description":"Return only providers having platform API keys"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationLanguageDefaultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/integrations/voices":{"get":{"tags":["integrations"],"summary":"List Model Voices","operationId":"list_model_voices_api_v1_integrations_voices_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"provider_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Id"}},{"name":"integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Id"}},{"name":"model_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"voice_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},{"name":"gender","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"}},{"name":"accent","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"}},{"name":"is_active","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Is Active"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ModelVoiceOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/integrations/voices/{voice_id}":{"get":{"tags":["integrations"],"summary":"Get Model Voice","operationId":"get_model_voice_api_v1_integrations_voices__voice_id__get","parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelVoiceDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/integrations/{integration_id}/models":{"get":{"tags":["integrations"],"summary":"Get Integration Models","operationId":"get_integration_models_api_v1_integrations__integration_id__models_get","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}},{"name":"model_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ModelType"},{"type":"null"}],"title":"Model Type"}},{"name":"language","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_IntegrationModelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/integrations/{integration_id}":{"get":{"tags":["integrations"],"summary":"Get Integration Detail","operationId":"get_integration_detail_api_v1_integrations__integration_id__get","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Integration Id"}},{"name":"auth_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AuthType"},{"type":"null"}],"title":"Auth Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/integrations/{type}/schema":{"get":{"tags":["integrations"],"summary":"Get Schema","operationId":"get_schema_api_v1_integrations__type__schema_get","parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}},{"name":"auth_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AuthType"},{"type":"null"}],"title":"Auth Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/function-tools":{"post":{"tags":["function tools"],"summary":"Create function tool","operationId":"create_function_tool_api_v1_workspaces__workspace_id__projects__project_id__function_tools_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionToolCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["function tools"],"summary":"List function tools","operationId":"list_function_tools_api_v1_workspaces__workspace_id__projects__project_id__function_tools_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"function_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentFunctionType"},{"type":"null"}],"title":"Function Type"}},{"name":"trigger__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger  In"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_FunctionToolResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/function-tools/test":{"post":{"tags":["function tools"],"summary":"Send a draft API request once and show the response","operationId":"test_function_tool_request_api_v1_workspaces__workspace_id__projects__project_id__function_tools_test_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestTestInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiRequestTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/function-tools/{function_tool_id}":{"get":{"tags":["function tools"],"summary":"Get function tool","operationId":"get_function_tool_api_v1_workspaces__workspace_id__projects__project_id__function_tools__function_tool_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"function_tool_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Function Tool Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["function tools"],"summary":"Update function tool","operationId":"update_function_tool_api_v1_workspaces__workspace_id__projects__project_id__function_tools__function_tool_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"function_tool_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Function Tool Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionToolUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/function-tools":{"post":{"tags":["function tools"],"summary":"Create function tool","operationId":"service_create_function_tool_api_v1_service_projects__project_id__function_tools_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionToolCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["function tools"],"summary":"List function tools","operationId":"service_list_function_tools_api_v1_service_projects__project_id__function_tools_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"function_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentFunctionType"},{"type":"null"}],"title":"Function Type"}},{"name":"trigger__in","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger  In"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_FunctionToolResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/function-tools/{function_tool_id}":{"get":{"tags":["function tools"],"summary":"Get function tool","operationId":"service_get_function_tool_api_v1_service_projects__project_id__function_tools__function_tool_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"function_tool_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Function Tool Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["function tools"],"summary":"Update function tool","operationId":"service_update_function_tool_api_v1_service_projects__project_id__function_tools__function_tool_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"function_tool_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Function Tool Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionToolUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/integrations/credentials":{"get":{"tags":["integrations"],"summary":"List Credentials","operationId":"list_credentials_api_v1_workspaces__workspace_id__projects__project_id__integrations_credentials_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"label__ilike","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label  Ilike"}},{"name":"integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Id"}},{"name":"integration_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationType"},{"type":"null"}],"title":"Integration Type"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_IntegrationCredentialListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["integrations"],"summary":"Create Credential","operationId":"create_credential_api_v1_workspaces__workspace_id__projects__project_id__integrations_credentials_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/integrations/credentials/{credential_id}":{"get":{"tags":["integrations"],"summary":"Get Credential","operationId":"get_credential_api_v1_workspaces__workspace_id__projects__project_id__integrations_credentials__credential_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["integrations"],"summary":"Update Credential","operationId":"update_credential_api_v1_workspaces__workspace_id__projects__project_id__integrations_credentials__credential_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["integrations"],"summary":"Delete Credential","operationId":"delete_credential_api_v1_workspaces__workspace_id__projects__project_id__integrations_credentials__credential_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/integrations/catalog":{"get":{"tags":["integrations"],"summary":"Service Get Integration Catalog","description":"Integration catalog for client-side use, via a secret key or a read-scope SDK token.","operationId":"service_get_integration_catalog_api_v1_service_projects__project_id__integrations_catalog_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/integrations/credentials":{"get":{"tags":["integrations"],"summary":"Service List Credentials","operationId":"service_list_credentials_api_v1_service_projects__project_id__integrations_credentials_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Size"}},{"name":"label__ilike","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label  Ilike"}},{"name":"integration_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Id"}},{"name":"integration_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationType"},{"type":"null"}],"title":"Integration Type"}},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},{"name":"order_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Order By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_IntegrationCredentialListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["integrations"],"summary":"Service Create Credential","operationId":"service_create_credential_api_v1_service_projects__project_id__integrations_credentials_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/service/projects/{project_id}/integrations/credentials/{credential_id}":{"get":{"tags":["integrations"],"summary":"Service Get Credential","operationId":"service_get_credential_api_v1_service_projects__project_id__integrations_credentials__credential_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["integrations"],"summary":"Service Update Credential","operationId":"service_update_credential_api_v1_service_projects__project_id__integrations_credentials__credential_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationCredentialResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["integrations"],"summary":"Service Delete Credential","operationId":"service_delete_credential_api_v1_service_projects__project_id__integrations_credentials__credential_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"credential_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Credential Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/health":{"get":{"tags":["health"],"summary":"Health Check","operationId":"health_check_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/release":{"get":{"tags":["release"],"summary":"Latest Release","operationId":"latest_release_api_v1_release_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseResponse"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/user_turn_strategies/schema":{"get":{"tags":["user_turn_strategies"],"summary":"Get Schema","operationId":"get_schema_api_v1_user_turn_strategies_schema_get","parameters":[{"name":"type","in":"query","required":true,"schema":{"enum":["start","stop","base"],"type":"string","description":"start | stop | base","title":"Type"},"description":"start | stop | base"},{"name":"strategy_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"eg. for type=start: ('vad', 'min_words', 'transcription', 'wake_phrase', 'krisp_viva_ip'); for type=stop: ('speech_timeout', 'turn_analyzer', 'llm_turn_completion'); for type=base: ('standard', 'filter_incomplete')","title":"Strategy Type"},"description":"eg. for type=start: ('vad', 'min_words', 'transcription', 'wake_phrase', 'krisp_viva_ip'); for type=stop: ('speech_timeout', 'turn_analyzer', 'llm_turn_completion'); for type=base: ('standard', 'filter_incomplete')"},{"name":"strategy","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Only applies to type=stop: 'standard' | 'filter_incomplete'. When set, stop types excluded for that base strategy (e.g. llm_turn_completion/external_completion under filter_incomplete) are left out of the listing entirely.","title":"Strategy"},"description":"Only applies to type=stop: 'standard' | 'filter_incomplete'. When set, stop types excluded for that base strategy (e.g. llm_turn_completion/external_completion under filter_incomplete) are left out of the listing entirely."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/user_turn_strategies/default":{"get":{"tags":["user_turn_strategies"],"summary":"Get Default","operationId":"get_default_api_v1_user_turn_strategies_default_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/templates":{"get":{"tags":["evals"],"summary":"List Templates","description":"Platform-provided eval templates — general safety properties (PII, injection,\nhallucination, jailbreak, out-of-scope) a user can run against any agent. Seeded\ninto eval_templates by heimdall.scripts.seed_eval_templates; served read-only here.\n\nPaginated via fastapi-pagination (page/size query params). Projects only the\ncolumns the response needs — no full-entity hydration or lazy relationship\nloads (``slug`` is aliased to ``id`` for TemplateOut).","operationId":"list_templates_api_v1_workspaces__workspace_id__projects__project_id__eval_templates_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_TemplateOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/scenarios/generate":{"post":{"tags":["evals"],"summary":"Generate Scenario Drafts","description":"LLM-author adversarial scenario drafts for an agent. Not persisted —\nthe client reviews and POSTs the ones to keep to /scenarios.","operationId":"generate_scenario_drafts_api_v1_workspaces__workspace_id__projects__project_id__eval_scenarios_generate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateScenariosRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioDraft"},"title":"Response Generate Scenario Drafts Api V1 Workspaces  Workspace Id  Projects  Project Id  Eval Scenarios Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/scenarios":{"post":{"tags":["evals"],"summary":"Create Scenario","operationId":"create_scenario_api_v1_workspaces__workspace_id__projects__project_id__eval_scenarios_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["evals"],"summary":"List Scenarios","operationId":"list_scenarios_api_v1_workspaces__workspace_id__projects__project_id__eval_scenarios_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioOut"},"title":"Response List Scenarios Api V1 Workspaces  Workspace Id  Projects  Project Id  Eval Scenarios Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/scenarios/{scenario_id}":{"patch":{"tags":["evals"],"summary":"Update Scenario","operationId":"update_scenario_api_v1_workspaces__workspace_id__projects__project_id__eval_scenarios__scenario_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"scenario_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scenario Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["evals"],"summary":"Delete Scenario","operationId":"delete_scenario_api_v1_workspaces__workspace_id__projects__project_id__eval_scenarios__scenario_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"scenario_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Scenario Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/runs":{"post":{"tags":["evals"],"summary":"Trigger Run","description":"Snapshot the agent's *resolved* runtime config, create a queued run, enqueue it.","operationId":"trigger_run_api_v1_workspaces__workspace_id__projects__project_id__eval_runs_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["evals"],"summary":"List Runs","operationId":"list_runs_api_v1_workspaces__workspace_id__projects__project_id__eval_runs_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RunOut"},"title":"Response List Runs Api V1 Workspaces  Workspace Id  Projects  Project Id  Eval Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/runs/{run_id}/rerun":{"post":{"tags":["evals"],"summary":"Rerun Run","description":"Re-run a past run against the CURRENT agent.\n\nmode=\"same\"  → replay the source run's exact frozen attacks (regression: did a\n               prompt change close the breaches?). Falls back to its scenarios\n               when the source has none (e.g. a static run).\nmode=\"fresh\" → re-run the source's own config (optimize / auto-derive / scenarios)\n               to generate NEW attacks.\n\nThe agent config is re-resolved now, so the rerun tests the agent as it is today,\nwhile the judge model is carried over from the source for a like-for-like compare.","operationId":"rerun_run_api_v1_workspaces__workspace_id__projects__project_id__eval_runs__run_id__rerun_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RerunRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/auto":{"post":{"tags":["evals"],"summary":"Auto Eval Run","description":"Describe-once eval: derive the agent's safety checks from its own prompt\n(+ optional extra rules), then run them all. The operator authors nothing —\nthe attacker angle and attacks are generated internally. Derived checks are\npersisted as inactive scenarios (hidden from the library) so the existing run\npipeline executes them unchanged.","operationId":"auto_eval_run_api_v1_workspaces__workspace_id__projects__project_id__eval_auto_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoEvalRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/optimize":{"post":{"tags":["evals"],"summary":"Optimize Prompt Run","description":"Start a self-improvement run: bounded keep/revert loop that hardens the\nagent's prompt against an adversarial intent. Produces a proposal (held for\nreview) — never touches the live agent.","operationId":"optimize_prompt_run_api_v1_workspaces__workspace_id__projects__project_id__eval_optimize_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptimizeRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/optimize-run":{"post":{"tags":["evals"],"summary":"Optimize Whole Run","description":"Harden the prompt against an entire prior run in one pass: combine every\ncheck it ran (their criteria + the exact attacks) into a single keep/revert\nloop → one proposal. Never touches the live agent.","operationId":"optimize_whole_run_api_v1_workspaces__workspace_id__projects__project_id__eval_optimize_run_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptimizeRunRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/proposals":{"get":{"tags":["evals"],"summary":"List Proposals","description":"All prompt proposals in the workspace, newest first. Filter by status\n(e.g. ?status=pending) for the dashboard 'needs review' panel.","operationId":"list_proposals_api_v1_workspaces__workspace_id__projects__project_id__eval_proposals_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProposalSummaryOut"},"title":"Response List Proposals Api V1 Workspaces  Workspace Id  Projects  Project Id  Eval Proposals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/runs/{run_id}/proposal":{"get":{"tags":["evals"],"summary":"Get Run Proposal","operationId":"get_run_proposal_api_v1_workspaces__workspace_id__projects__project_id__eval_runs__run_id__proposal_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProposalOut"},{"type":"null"}],"title":"Response Get Run Proposal Api V1 Workspaces  Workspace Id  Projects  Project Id  Eval Runs  Run Id  Proposal Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/proposals/{proposal_id}/accept":{"post":{"tags":["evals"],"summary":"Accept Proposal","description":"Apply the proposed prompt to the live agent. This is the only path that\nmutates the real agent prompt.","operationId":"accept_proposal_api_v1_workspaces__workspace_id__projects__project_id__eval_proposals__proposal_id__accept_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/proposals/{proposal_id}/reject":{"post":{"tags":["evals"],"summary":"Reject Proposal","operationId":"reject_proposal_api_v1_workspaces__workspace_id__projects__project_id__eval_proposals__proposal_id__reject_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/coverage":{"get":{"tags":["evals"],"summary":"Coverage","description":"Resist-rate per attack-type category across completed runs — reflects the\nchecks that actually ran, not the (hidden) auto-derived scenario library.","operationId":"coverage_api_v1_workspaces__workspace_id__projects__project_id__eval_coverage_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoverageOut"},"title":"Response Coverage Api V1 Workspaces  Workspace Id  Projects  Project Id  Eval Coverage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/runs/{run_id}":{"get":{"tags":["evals"],"summary":"Get Run","operationId":"get_run_api_v1_workspaces__workspace_id__projects__project_id__eval_runs__run_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/runs/{run_id}/results":{"get":{"tags":["evals"],"summary":"Get Run Results","operationId":"get_run_results_api_v1_workspaces__workspace_id__projects__project_id__eval_runs__run_id__results_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RunResultOut"},"title":"Response Get Run Results Api V1 Workspaces  Workspace Id  Projects  Project Id  Eval Runs  Run Id  Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/eval/runs/{run_id}/events":{"get":{"tags":["evals"],"summary":"Stream Run Events","description":"SSE stream of a run's live progress. Emits a current-state snapshot first\n(so a late joiner sees status immediately), then tails the Redis Stream.","operationId":"stream_run_events_api_v1_workspaces__workspace_id__projects__project_id__eval_runs__run_id__events_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"last_event_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/webchat/widgets/{public_id}":{"get":{"tags":["webchat"],"summary":"Get Widget","description":"The widget's look, for the launcher and the chat window.","operationId":"get_widget_api_v1_webchat_widgets__public_id__get","parameters":[{"name":"public_id","in":"path","required":true,"schema":{"type":"string","title":"Public Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetPublicConfig"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webchat/widgets/{public_id}/sessions":{"post":{"tags":["webchat"],"summary":"Create Session","operationId":"create_session_api_v1_webchat_widgets__public_id__sessions_post","parameters":[{"name":"public_id","in":"path","required":true,"schema":{"type":"string","title":"Public Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webchat/session/messages":{"get":{"tags":["webchat"],"summary":"List Session Messages","operationId":"list_session_messages_api_v1_webchat_session_messages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SessionMessage"},"type":"array","title":"Response List Session Messages Api V1 Webchat Session Messages Get"}}}}}},"post":{"tags":["webchat"],"summary":"Send Message","description":"Streams the reply: \"delta\" events, then \"done\", or one \"error\".","operationId":"send_message_api_v1_webchat_session_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/heimdall__schemas__webchat__SendMessageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/webchat-widgets":{"get":{"tags":["webchat widgets"],"summary":"List Widgets","operationId":"list_widgets_api_v1_workspaces__workspace_id__projects__project_id__webchat_widgets_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebchatWidgetResponse"},"title":"Response List Widgets Api V1 Workspaces  Workspace Id  Projects  Project Id  Webchat Widgets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["webchat widgets"],"summary":"Create Widget","operationId":"create_widget_api_v1_workspaces__workspace_id__projects__project_id__webchat_widgets_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebchatWidgetFields"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebchatWidgetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/webchat-widgets/{widget_id}":{"patch":{"tags":["webchat widgets"],"summary":"Update Widget","operationId":"update_widget_api_v1_workspaces__workspace_id__projects__project_id__webchat_widgets__widget_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"widget_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Widget Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebchatWidgetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebchatWidgetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["webchat widgets"],"summary":"Delete Widget","operationId":"delete_widget_api_v1_workspaces__workspace_id__projects__project_id__webchat_widgets__widget_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"widget_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Widget Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/whatsapp/webhook":{"get":{"tags":["whatsapp"],"summary":"Verify App Webhook","description":"Meta's handshake for our app's webhook (App Dashboard > WhatsApp >\nConfiguration), against WHATSAPP_WEBHOOK_VERIFY_TOKEN.","operationId":"verify_app_webhook_api_v1_whatsapp_webhook_get","parameters":[{"name":"hub.mode","in":"query","required":true,"schema":{"type":"string","title":"Hub.Mode"}},{"name":"hub.verify_token","in":"query","required":true,"schema":{"type":"string","title":"Hub.Verify Token"}},{"name":"hub.challenge","in":"query","required":true,"schema":{"type":"string","title":"Hub.Challenge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["whatsapp"],"summary":"Receive App Webhook","description":"Every number connected through Embedded Signup reports here, signed\nwith our app secret. Messages are routed to their connection by the\nreceiving phone_number_id; numbers we don't know are acked and skipped.","operationId":"receive_app_webhook_api_v1_whatsapp_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/whatsapp/webhook/{config_id}":{"get":{"tags":["whatsapp"],"summary":"Verify Webhook","description":"Meta's one-time subscription handshake: echo the challenge back as\nplain text if the token matches the one we generated for this config.","operationId":"verify_webhook_api_v1_whatsapp_webhook__config_id__get","parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}},{"name":"hub.mode","in":"query","required":true,"schema":{"type":"string","title":"Hub.Mode"}},{"name":"hub.verify_token","in":"query","required":true,"schema":{"type":"string","title":"Hub.Verify Token"}},{"name":"hub.challenge","in":"query","required":true,"schema":{"type":"string","title":"Hub.Challenge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["whatsapp"],"summary":"Receive Webhook","description":"Stores the messages, queues the replies, acks. If storing or queueing\nfails we answer 500 and Meta re-delivers; both steps are idempotent.","operationId":"receive_webhook_api_v1_whatsapp_webhook__config_id__post","parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/whatsapp-configs/embedded-signup/settings":{"get":{"tags":["whatsapp configs"],"summary":"What the page needs to open Meta's WhatsApp signup popup","operationId":"embedded_signup_settings_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_configs_embedded_signup_settings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddedSignupSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/whatsapp-configs/embedded-signup":{"post":{"tags":["whatsapp configs"],"summary":"Connect a number from Meta's signup popup to an agent","operationId":"complete_embedded_signup_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_configs_embedded_signup_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddedSignupRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/whatsapp-configs":{"post":{"tags":["whatsapp configs"],"summary":"Connect a WhatsApp number to an agent","operationId":"create_whatsapp_config_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_configs_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappConfigCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"get":{"tags":["whatsapp configs"],"summary":"List WhatsApp configs","operationId":"list_whatsapp_configs_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_configs_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","default":50,"title":"Size"},"description":"Page size"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"-created_at","title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_WhatsappConfigResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/whatsapp-configs/{config_id}":{"get":{"tags":["whatsapp configs"],"summary":"Get WhatsApp config","operationId":"get_whatsapp_config_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_configs__config_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["whatsapp configs"],"summary":"Update WhatsApp config","operationId":"update_whatsapp_config_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_configs__config_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["whatsapp configs"],"summary":"Disconnect a WhatsApp number","operationId":"delete_whatsapp_config_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_configs__config_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/whatsapp-configs/{config_id}/status":{"get":{"tags":["whatsapp configs"],"summary":"A connected number's live state from Meta (review, quality, limits, issues)","operationId":"get_whatsapp_config_status_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_configs__config_id__status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappConnectionStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/whatsapp-configs/{config_id}/profile":{"get":{"tags":["whatsapp configs"],"summary":"The business profile customers see on the number, from Meta","operationId":"get_whatsapp_profile_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_configs__config_id__profile_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappBusinessProfile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"put":{"tags":["whatsapp configs"],"summary":"Update the business profile on Meta","operationId":"update_whatsapp_profile_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_configs__config_id__profile_put","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"config_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Config Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappBusinessProfile"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappBusinessProfile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/whatsapp-templates":{"get":{"tags":["whatsapp templates"],"summary":"Templates on the project's business accounts","description":"From our copy; Meta is asked only for accounts never read, or with refresh.","operationId":"list_whatsapp_templates_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_templates_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","description":"Re-read the accounts' templates from Meta first","default":false,"title":"Refresh"},"description":"Re-read the accounts' templates from Meta first"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WhatsappTemplateResponse"},"title":"Response List Whatsapp Templates Api V1 Workspaces  Workspace Id  Projects  Project Id  Whatsapp Templates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"post":{"tags":["whatsapp templates"],"summary":"Submit a template to Meta for review","operationId":"create_whatsapp_template_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_templates_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTemplateCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}},"/api/v1/workspaces/{workspace_id}/projects/{project_id}/whatsapp-templates/{template_id}":{"get":{"tags":["whatsapp templates"],"summary":"Get a template","operationId":"get_whatsapp_template_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_templates__template_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"patch":{"tags":["whatsapp templates"],"summary":"Edit a template and resubmit it","operationId":"update_whatsapp_template_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_templates__template_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTemplateInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]},"delete":{"tags":["whatsapp templates"],"summary":"Delete a template on Meta","operationId":"delete_whatsapp_template_api_v1_workspaces__workspace_id__projects__project_id__whatsapp_templates__template_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"BearerAuth":[]}]}}},"components":{"schemas":{"APIKeyListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sid"},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token"},"exotel_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exotel Api Key"},"exotel_app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exotel App Id"},"is_active":{"type":"boolean","title":"Is Active"},"max_call_concurrency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Call Concurrency"},"provider":{"anyOf":[{"$ref":"#/components/schemas/APIKeyProviderInfo"},{"type":"null"}]}},"type":"object","required":["id","name","label","is_active"],"title":"APIKeyListResponse"},"APIKeyProviderInfo":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/ModelProviderType"}},"type":"object","required":["id","name","type"],"title":"APIKeyProviderInfo"},"APIKeyRequest":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sid"},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token"},"exotel_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exotel Api Key"},"exotel_app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exotel App Id"},"max_call_concurrency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Call Concurrency"}},"type":"object","title":"APIKeyRequest"},"APIKeyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sid"},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token"},"exotel_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exotel Api Key"},"exotel_app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exotel App Id"},"max_call_concurrency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Call Concurrency"}},"type":"object","required":["id","name","label"],"title":"APIKeyResponse"},"APIKeyUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sid"},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token"},"exotel_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exotel Api Key"},"exotel_app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exotel App Id"},"max_call_concurrency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Call Concurrency"}},"type":"object","title":"APIKeyUpdateRequest"},"APIKeyUpdateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sid"},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token"},"exotel_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exotel Api Key"},"exotel_app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exotel App Id"},"max_call_concurrency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Call Concurrency"},"is_active":{"type":"boolean","title":"Is Active"},"provider":{"$ref":"#/components/schemas/APIKeyProviderInfo"}},"type":"object","required":["id","name","label","is_active","provider"],"title":"APIKeyUpdateResponse"},"AcceptWorkspaceInvitationPayload":{"properties":{"token":{"type":"string","minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"AcceptWorkspaceInvitationPayload"},"AddProjectMemberPayload":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"}},"type":"object","required":["user_id"],"title":"AddProjectMemberPayload"},"AdminCallBillingResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"call_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type"},"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number"},"to_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Number"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"ended_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ended By"},"termination_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Reason"},"billing_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Status"},"billing_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Model"},"deduction_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deduction Strategy"},"billed_minutes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billed Minutes"},"platform_rate_per_minute":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Rate Per Minute"},"platform_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Fee"},"fixed_rate_per_minute":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fixed Rate Per Minute"},"usage_total_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usage Total Cost"},"billable_usage_total_cost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billable Usage Total Cost"},"final_charge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Charge"},"billing_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Note","description":"'ringing_fee' when the charge is the flat fee for an unanswered call."},"telephony_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Provider"},"telephony_charge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Charge","description":"What the provider charged us for the call."},"telephony_billing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Billing","description":"'rate' when the call was charged the admin's per-minute telephony rate instead of the provider's price; empty for live billing."},"telephony_rate_per_minute":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Rate Per Minute"},"telephony_billed_minutes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Billed Minutes"},"telephony_customer_charge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Customer Charge","description":"What the customer paid for telephony, at the rate."},"telephony_pending":{"type":"boolean","title":"Telephony Pending","description":"The provider has not priced the call yet; billing retries.","default":false},"number_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number Kind","description":"rented, platform or own. Only rented and platform numbers are billed for telephony: on its own number the customer pays the provider."},"usage":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Usage","description":"Per service (llm, stt, tts, rag, fallbacks): provider, model, quantities and cost."},"unit_prices":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Unit Prices"},"platform_key_services":{"items":{"type":"string"},"type":"array","title":"Platform Key Services","description":"Services on our keys. The rest ran on the customer's own key and are not charged."},"entries":{"items":{"$ref":"#/components/schemas/AdminCallLedgerEntry"},"type":"array","title":"Entries"}},"type":"object","required":["id"],"title":"AdminCallBillingResponse","description":"Everything behind one call's charge, for the admin ledger drawer.\n\nMoney stays as the strings billing wrote, so the drawer shows exactly\nwhat was computed rather than a float's rounding of it."},"AdminCallLedgerEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"source":{"type":"string","title":"Source"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","type","source","amount","created_at"],"title":"AdminCallLedgerEntry","description":"One ledger row a call produced."},"AdminCallPricingResponse":{"properties":{"call_session_id":{"type":"string","format":"uuid","title":"Call Session Id"},"usage_summary":{"additionalProperties":true,"type":"object","title":"Usage Summary"},"call_durations":{"type":"number","title":"Call Durations"},"total_cost":{"type":"number","title":"Total Cost"},"total_cost_with_margin":{"type":"number","title":"Total Cost With Margin"},"platform_margin":{"type":"number","title":"Platform Margin"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["call_session_id","usage_summary","call_durations","total_cost","total_cost_with_margin","platform_margin","created_at"],"title":"AdminCallPricingResponse"},"AdminCreateFeatureRequest":{"properties":{"key":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_]*$","title":"Key"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"value_type":{"type":"string","enum":["boolean","integer","string","enum","decimal"],"title":"Value Type"},"default_value":{"title":"Default Value"},"allowed_values":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50},{"type":"null"}],"title":"Allowed Values"}},"type":"object","required":["key","name","value_type"],"title":"AdminCreateFeatureRequest","description":"Adds a lever to the catalog.\n\nIt applies to every workspace immediately -- resolution falls back to the\nplatform-default row -- so `default_value` is what the whole platform\ngets until someone is given an override."},"AdminCreateUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"is_admin":{"type":"boolean","title":"Is Admin"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"wallet_credits":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Wallet Credits"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["id","name","email","is_active","is_admin","created_at","created"],"title":"AdminCreateUserResponse"},"AdminCredentialPatchRequest":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"credentials":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Credentials"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"AdminCredentialPatchRequest"},"AdminCredentialRequest":{"properties":{"label":{"type":"string","title":"Label"},"credentials":{"additionalProperties":true,"type":"object","title":"Credentials"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["label","credentials"],"title":"AdminCredentialRequest"},"AdminGrantCreditsRequest":{"properties":{"dollars_received":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Dollars Received","description":"What the customer paid, in USD. USD workspaces only."},"local_amount_received":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Local Amount Received","description":"What the customer paid, in the workspace's currency. Non-USD workspaces only; the dollars are derived at its fx_rate."},"credits_issued":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Credits Issued","description":"Credits to add. Must match the other two."},"discount_percent":{"anyOf":[{"type":"number","maximum":1000.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Discount Percent","description":"Extra credits on top. 20% means 20% more credits.","default":"0"},"subscription_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Subscription Start","description":"When the subscription period begins. Defaults to today."},"subscription_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Subscription End","description":"When it ends. Recorded only; nothing expires."},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note","description":"Invoice or contract reference."}},"type":"object","required":["credits_issued"],"title":"AdminGrantCreditsRequest","description":"Settles an offline deal.\n\nA discount means MORE CREDITS for the same money: 20% turns $100,000 into\n120,000 credits.\n\n`credits_issued` is sent by the caller rather than derived here, so the\nfigure an admin approved on screen is exactly what lands. The server\nchecks it follows from `dollars_received` and `discount_percent` and\nrejects it otherwise, which is what stops a stale client writing a balance\nthe money does not support."},"AdminGrantCreditsResponse":{"properties":{"credits":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Credits","description":"The workspace's balance after the grant."},"credits_issued":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Credits Issued"},"dollars_received":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Dollars Received"},"discount_percent":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Discount Percent"},"local_amount_received":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Local Amount Received"}},"type":"object","required":["credits","credits_issued","dollars_received","discount_percent"],"title":"AdminGrantCreditsResponse"},"AdminIntegrationIsActiveRequest":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["is_active"],"title":"AdminIntegrationIsActiveRequest"},"AdminIntegrationIsActiveResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/IntegrationType"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","name","type","is_active"],"title":"AdminIntegrationIsActiveResponse"},"AdminIntegrationPatchRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"console_url":{"anyOf":[{"type":"string","maxLength":512,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Console Url"}},"type":"object","title":"AdminIntegrationPatchRequest"},"AdminIntegrationPatchResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"console_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Console Url"}},"type":"object","required":["id","name"],"title":"AdminIntegrationPatchResponse"},"AdminIntegrationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"console_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Console Url"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"type":{"$ref":"#/components/schemas/IntegrationType"},"is_active":{"type":"boolean","title":"Is Active"},"platform_credential":{"anyOf":[{"$ref":"#/components/schemas/AdminPlatformCredentialResponse"},{"type":"null"}]}},"type":"object","required":["id","name","type","is_active"],"title":"AdminIntegrationResponse"},"AdminModelGrantItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"model_type":{"type":"string","title":"Model Type"},"allowed":{"type":"boolean","title":"Allowed"}},"type":"object","required":["id","name","model_type","allowed"],"title":"AdminModelGrantItem","description":"One model, and whether this workspace may use it."},"AdminNumberPricing":{"properties":{"cost":{"additionalProperties":{"anyOf":[{"type":"number","maximum":1000.0,"minimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$"}]},"type":"object","title":"Cost"}},"type":"object","required":["cost"],"title":"AdminNumberPricing","description":"What each rentable number costs us per month at the provider, keyed\n\"<provider>:<ISO country>:<number type>\", in USD like wallet credits. The\ncustomer pays this plus the number_markup_usd lever. A combination missing\nhere can't be bought."},"AdminNumberPricingResponse":{"properties":{"cost":{"additionalProperties":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$"},"type":"object","title":"Cost"},"effective_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective From"}},"type":"object","required":["cost"],"title":"AdminNumberPricingResponse"},"AdminPlatformCredentialResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"is_active":{"type":"boolean","title":"Is Active"},"credentials":{"additionalProperties":true,"type":"object","title":"Credentials"}},"type":"object","required":["id","label","is_active","credentials"],"title":"AdminPlatformCredentialResponse"},"AdminProjectMemberResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["user_id","name","email","joined_at","is_active"],"title":"AdminProjectMemberResponse","description":"Project member row for admin listings, with the user's account state."},"AdminProjectResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"is_default":{"type":"boolean","title":"Is Default"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"}},"type":"object","required":["id","name","is_default","workspace_id","created_at","created_by"],"title":"AdminProjectResponse"},"AdminProviderGrantGroup":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"configured":{"type":"boolean","title":"Configured","description":"Whether an API key exists for this provider -- a platform one, or this workspace's own. Without it the agent editor never offers the provider, so granting its models has no effect.","default":true},"models":{"items":{"$ref":"#/components/schemas/AdminModelGrantItem"},"type":"array","title":"Models"}},"type":"object","required":["id","name","models"],"title":"AdminProviderGrantGroup","description":"A provider and its models, for the grant picker.\n\nGrouped because that is how the screen reads -- tick a provider to take\nall of it, or open it and choose. The grant itself is always per model."},"AdminSetFeatureDefaultRequest":{"properties":{"default_value":{"title":"Default Value"}},"type":"object","title":"AdminSetFeatureDefaultRequest","description":"Retunes the platform default. Every workspace without its own override\nfollows this immediately -- check the blast radius before lowering one."},"AdminSetFeatureOverrideRequest":{"properties":{"value":{"title":"Value"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","title":"AdminSetFeatureOverrideRequest"},"AdminSetWorkspaceCurrencyRequest":{"properties":{"currency":{"$ref":"#/components/schemas/WorkspaceCurrency","default":"USD"},"fx_rate":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Fx Rate","description":"Local units per 1 USD, fixed for this workspace -- not the market rate. Must be 1 for USD.","default":"1"}},"type":"object","title":"AdminSetWorkspaceCurrencyRequest","description":"Internal only: the ratio the next grant is entered at. Customers see\nand are billed in USD credits whatever this is."},"AdminSetWorkspaceModelAccessRequest":{"properties":{"model_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Model Ids","description":"The complete set of models this workspace may use. Replaces whatever is stored. An empty list removes every grant, which returns the workspace to unrestricted."}},"type":"object","title":"AdminSetWorkspaceModelAccessRequest"},"AdminSubscriptionResponse":{"properties":{"granted_at":{"type":"string","format":"date-time","title":"Granted At"},"granted_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Granted By"},"credits_issued":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Credits Issued"},"dollars_received":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Dollars Received"},"discount_percent":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Discount Percent"},"local_amount_received":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Local Amount Received"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"fx_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Fx Rate"},"market_fx_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Market Fx Rate"},"subscription_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Subscription Start"},"subscription_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Subscription End"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["granted_at"],"title":"AdminSubscriptionResponse","description":"The deal terms captured when a workspace's credits were last granted.\n\nRead back off the grant's ledger row rather than stored separately, so\nthere is one record of what was sold and it is the same one the audit\ntrail shows. `null` when the workspace has never had a grant."},"AdminTransactionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"source":{"type":"string","title":"Source"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"call_session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Call Session Id"},"admin":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Admin"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"meta_data":{"additionalProperties":true,"type":"object","title":"Meta Data"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"service_costs":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Service Costs","description":"What the call cost per service (llm, stt, tts, rag). Null for a row that is not a call. On a workspace with a fixed rate these are OUR cost, not a split of what was charged -- the difference is the margin."},"telephony_charge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Charge","description":"The provider's charge for the call, kept separate from the per-service costs because it is not a platform service."},"billing_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Model","description":"How this call was priced: fixed_rate or cost_plus."}},"type":"object","required":["id","type","source","amount","created_at"],"title":"AdminTransactionResponse","description":"One ledger row, as the admin panel shows it.\n\n`meta_data` carries the grant terms (dollars_received, discount_percent,\ncredits_per_dollar, note) for source=admin credits -- that is the audit\ntrail for an offline deal, so it is returned whole rather than flattened."},"AdminUpdateFeatureRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"default_value":{"title":"Default Value"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"AdminUpdateFeatureRequest","description":"Every field optional; only the ones sent are changed.\n\n`default_value` cannot use None as \"not sent\" -- null is a real default\nmeaning unlimited -- so the unset check is `\"default_value\" in\nmodel_fields_set`, not a None test."},"AdminUpdateProjectRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","title":"AdminUpdateProjectRequest"},"AdminUpdateUserRequest":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"}},"additionalProperties":false,"type":"object","title":"AdminUpdateUserRequest"},"AdminUpdateWorkspaceRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","title":"AdminUpdateWorkspaceRequest"},"AdminUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"is_admin":{"type":"boolean","title":"Is Admin"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"wallet_credits":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Wallet Credits"}},"type":"object","required":["id","name","email","is_active","is_admin","created_at"],"title":"AdminUserResponse"},"AdminWalletAmountRequest":{"properties":{"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"}},"type":"object","required":["amount"],"title":"AdminWalletAmountRequest","description":"Body shared by the wallet credit/debit endpoints — which one applies\nis decided by the endpoint called, not by a field here."},"AdminWorkspaceMemberResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["user_id","name","email","role","joined_at","is_active"],"title":"AdminWorkspaceMemberResponse","description":"Workspace member row for admin listings, with the user's account state."},"AdminWorkspaceModelAccessResponse":{"properties":{"unrestricted":{"type":"boolean","title":"Unrestricted","description":"True when this workspace has no grants at all and may use every active model. Granting anything turns it off; clearing every grant turns it back on."},"providers":{"items":{"$ref":"#/components/schemas/AdminProviderGrantGroup"},"type":"array","title":"Providers"}},"type":"object","required":["unrestricted","providers"],"title":"AdminWorkspaceModelAccessResponse"},"AdminWorkspaceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"is_system_default":{"type":"boolean","title":"Is System Default"},"owner_id":{"type":"string","format":"uuid","title":"Owner Id"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"currency":{"type":"string","title":"Currency","default":"USD"},"fx_rate":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Fx Rate","default":"1"},"market_fx_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Market Fx Rate","description":"Today's market rate for `currency`, from the daily refresh. Only on the single-workspace read, and null for USD. The gap to fx_rate is the FX margin this deal is running on."}},"type":"object","required":["id","name","is_system_default","owner_id","created_at"],"title":"AdminWorkspaceResponse"},"AdversarialConfig":{"properties":{"intent":{"type":"string","title":"Intent"},"safety_criterion":{"type":"string","title":"Safety Criterion"},"count":{"type":"integer","maximum":15.0,"minimum":1.0,"title":"Count","default":5}},"type":"object","required":["intent","safety_criterion"],"title":"AdversarialConfig"},"AgentAutosaveResponse":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id","description":"Edited agent version UUID (a new draft UUID on first autosave of a published agent)"},"base_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Agent Id","description":"Agent family UUID"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"Agent version number"},"is_current":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Current","description":"Whether this version is the current one"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Last update timestamp"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Agent name"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Agent instructions/prompt"},"hangup_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hangup Prompt","description":"Instructions/Prompt for the agent to end a call"},"is_hangup_prompt_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Hangup Prompt Enabled","description":"Call hangup instructions/prompt toggle status"},"welcome_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Message","description":"Welcome message for the agent"},"language_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Language Id","description":"Language UUID"},"agent_type":{"anyOf":[{"$ref":"#/components/schemas/AgentType"},{"type":"null"}],"description":"single_prompt | workflow"},"workflow_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id","description":"Linked workflow UUID"},"knowledge_base_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Knowledge Base Ids","description":"Linked knowledge base UUIDs"},"function_tool_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Function Tool Ids","description":"Linked function tool UUIDs"},"guardrails":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentGuardrail"},"type":"array"},{"type":"null"}],"title":"Guardrails","description":"Optional list of LLM guardrails"},"structured_output":{"anyOf":[{"items":{"$ref":"#/components/schemas/StructuredOutput-Output"},"type":"array"},{"type":"null"}],"title":"Structured Output","description":"Optional list of structured output variable schemas"},"custom_attributes":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAttribute-Output"},"type":"array"},{"type":"null"}],"title":"Custom Attributes","description":"Optional list of attributes saved on each call log"},"channel_settings":{"anyOf":[{"$ref":"#/components/schemas/AgentChannelSettings"},{"type":"null"}],"description":"Per-channel tools and instructions"},"config":{"anyOf":[{"$ref":"#/components/schemas/AgentConfig"},{"type":"null"}],"description":"Agent configuration"},"call_configuration":{"anyOf":[{"$ref":"#/components/schemas/AgentCallConfiguration-Output"},{"type":"null"}],"description":"Call configuration"},"status":{"anyOf":[{"$ref":"#/components/schemas/AgentStatus"},{"type":"null"}],"description":"Agent status (draft | published)"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Agent active status"}},"additionalProperties":true,"type":"object","title":"AgentAutosaveResponse","description":"Response for PATCH .../agents/{agent_id}: echo of saved fields plus version identity.\n\nEvery field is optional: only the fields that were saved are present."},"AgentAvailabilityConfig-Input":{"properties":{"inbound":{"$ref":"#/components/schemas/DirectionAvailability-Input"},"outbound":{"$ref":"#/components/schemas/DirectionAvailability-Input"}},"type":"object","title":"AgentAvailabilityConfig"},"AgentAvailabilityConfig-Output":{"properties":{"inbound":{"$ref":"#/components/schemas/DirectionAvailability-Output"},"outbound":{"$ref":"#/components/schemas/DirectionAvailability-Output"}},"type":"object","title":"AgentAvailabilityConfig"},"AgentCallConfiguration-Input":{"properties":{"call_provider":{"$ref":"#/components/schemas/CallProvider","description":"Call provider (plivo | twilio)","default":"twilio"},"final_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Message","description":"Message to play at the end of call"},"final_message_language_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Final Message Language Id","description":"Language UUID for final message"},"hangup_on_user_silence":{"anyOf":[{"type":"integer","maximum":30.0,"minimum":1.0},{"type":"null"}],"title":"Hangup On User Silence","description":"Hang up call after user silence duration (seconds)","default":7},"total_call_timeout":{"anyOf":[{"type":"integer","maximum":2400.0,"minimum":30.0},{"type":"null"}],"title":"Total Call Timeout","description":"Maximum total call timeout in seconds","default":1800},"ambient_sound":{"anyOf":[{"$ref":"#/components/schemas/AmbientSoundConfig"},{"type":"null"}],"description":"Always-on background ambient sound (plays throughout the call)"},"filler_phrases":{"anyOf":[{"$ref":"#/components/schemas/FillerPhraseConfig"},{"type":"null"}],"description":"Contextual filler phrase playback — masks LLM latency after each user turn"},"voicemail_detection":{"type":"boolean","title":"Voicemail Detection","description":"Enable voicemail detection before starting the agent welcome message","default":false},"voicemail_message_enabled":{"type":"boolean","title":"Voicemail Message Enabled","description":"Speak a configured message when voicemail is detected","default":false},"voicemail_message":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Voicemail Message","description":"Message to speak when voicemail is detected"},"keypad_input_detection":{"$ref":"#/components/schemas/KeypadInputDetectionConfig","description":"DTMF keypad input detection settings (e.g. for OTP or PIN collection)"},"ivr_navigation":{"$ref":"#/components/schemas/IVRNavigationConfig","description":"IVR navigation mode — agent calls an IVR system and navigates it automatically"},"tts_pause":{"$ref":"#/components/schemas/TTSPauseConfig","description":"Let the caller pause the agent's speech for a while (e.g. 'give me a moment')"},"is_noise_cancellation_enabled":{"type":"boolean","title":"Is Noise Cancellation Enabled","description":"Enable inbound audio noise cancellation before VAD/STT","default":false},"noise_cancellation_filter":{"anyOf":[{"$ref":"#/components/schemas/NoiseCancellationFilterType"},{"type":"null"}],"description":"Noise cancellation filter to use when enabled (e.g. 'RNN')"},"timezone":{"type":"string","title":"Timezone","description":"IANA timezone used for availability windows and time-related prompt variables","default":"UTC"},"availability":{"$ref":"#/components/schemas/AgentAvailabilityConfig-Input","description":"Per-direction availability schedules evaluated in the agent timezone"},"unavailable_message":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Unavailable Message","description":"Message spoken on inbound calls outside availability hours"},"strategies":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Strategies","description":"User turn start/stop strategy configuration. Shape: {\"start\": [...], \"stop\": [...]} where each item is a strategy config dict with a \"strategy_type\" discriminant."}},"type":"object","title":"AgentCallConfiguration"},"AgentCallConfiguration-Output":{"properties":{"call_provider":{"$ref":"#/components/schemas/CallProvider","description":"Call provider (plivo | twilio)","default":"twilio"},"final_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Message","description":"Message to play at the end of call"},"final_message_language_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Final Message Language Id","description":"Language UUID for final message"},"hangup_on_user_silence":{"anyOf":[{"type":"integer","maximum":30.0,"minimum":1.0},{"type":"null"}],"title":"Hangup On User Silence","description":"Hang up call after user silence duration (seconds)","default":7},"total_call_timeout":{"anyOf":[{"type":"integer","maximum":2400.0,"minimum":30.0},{"type":"null"}],"title":"Total Call Timeout","description":"Maximum total call timeout in seconds","default":1800},"ambient_sound":{"anyOf":[{"$ref":"#/components/schemas/AmbientSoundConfig"},{"type":"null"}],"description":"Always-on background ambient sound (plays throughout the call)"},"filler_phrases":{"anyOf":[{"$ref":"#/components/schemas/FillerPhraseConfig"},{"type":"null"}],"description":"Contextual filler phrase playback — masks LLM latency after each user turn"},"voicemail_detection":{"type":"boolean","title":"Voicemail Detection","description":"Enable voicemail detection before starting the agent welcome message","default":false},"voicemail_message_enabled":{"type":"boolean","title":"Voicemail Message Enabled","description":"Speak a configured message when voicemail is detected","default":false},"voicemail_message":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Voicemail Message","description":"Message to speak when voicemail is detected"},"keypad_input_detection":{"$ref":"#/components/schemas/KeypadInputDetectionConfig","description":"DTMF keypad input detection settings (e.g. for OTP or PIN collection)"},"ivr_navigation":{"$ref":"#/components/schemas/IVRNavigationConfig","description":"IVR navigation mode — agent calls an IVR system and navigates it automatically"},"tts_pause":{"$ref":"#/components/schemas/TTSPauseConfig","description":"Let the caller pause the agent's speech for a while (e.g. 'give me a moment')"},"is_noise_cancellation_enabled":{"type":"boolean","title":"Is Noise Cancellation Enabled","description":"Enable inbound audio noise cancellation before VAD/STT","default":false},"noise_cancellation_filter":{"anyOf":[{"$ref":"#/components/schemas/NoiseCancellationFilterType"},{"type":"null"}],"description":"Noise cancellation filter to use when enabled (e.g. 'RNN')"},"timezone":{"type":"string","title":"Timezone","description":"IANA timezone used for availability windows and time-related prompt variables","default":"UTC"},"availability":{"$ref":"#/components/schemas/AgentAvailabilityConfig-Output","description":"Per-direction availability schedules evaluated in the agent timezone"},"unavailable_message":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Unavailable Message","description":"Message spoken on inbound calls outside availability hours"},"strategies":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Strategies","description":"User turn start/stop strategy configuration. Shape: {\"start\": [...], \"stop\": [...]} where each item is a strategy config dict with a \"strategy_type\" discriminant."}},"type":"object","title":"AgentCallConfiguration"},"AgentChangePreviewPayload":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id"},"column_mapping":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Column Mapping"}},"additionalProperties":false,"type":"object","title":"AgentChangePreviewPayload","description":"Ask what a swap to this agent, or crew, with this mapping, would do."},"AgentChangePreviewResponse":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"type":"string","title":"Agent Name"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id"},"crew_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crew Name"},"declared_variables":{"items":{"type":"string"},"type":"array","title":"Declared Variables"},"available_columns":{"items":{"type":"string"},"type":"array","title":"Available Columns"},"coverage":{"items":{"$ref":"#/components/schemas/VariableCoverageResponse"},"type":"array","title":"Coverage"},"pending_items":{"type":"integer","title":"Pending Items","default":0},"affected_batches":{"type":"integer","title":"Affected Batches","default":0},"blockers":{"items":{"type":"string"},"type":"array","title":"Blockers"},"is_applicable":{"type":"boolean","title":"Is Applicable","default":true}},"type":"object","required":["agent_name"],"title":"AgentChangePreviewResponse","description":"What swapping agents would do, answered before anything is written."},"AgentChannelSettings":{"properties":{"tools":{"additionalProperties":{"items":{"$ref":"#/components/schemas/Channel"},"type":"array"},"type":"object","title":"Tools","description":"Channels each linked function tool runs on, by tool id"},"instructions":{"additionalProperties":{"type":"string","maxLength":2000},"propertyNames":{"$ref":"#/components/schemas/Channel"},"type":"object","title":"Instructions","description":"Extra instructions per channel, e.g. tone on WhatsApp"}},"additionalProperties":false,"type":"object","title":"AgentChannelSettings","description":"How the agent behaves per channel. A tool missing from `tools` runs on\nevery channel its type supports; listing it narrows that."},"AgentCloneRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Name for the cloned agent"}},"type":"object","required":["name"],"title":"AgentCloneRequest"},"AgentCloneResponse":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id","description":"UUID of the newly cloned agent"}},"type":"object","required":["agent_id"],"title":"AgentCloneResponse"},"AgentConfig":{"properties":{"llm":{"anyOf":[{"$ref":"#/components/schemas/AnthropicLLMConfig"},{"$ref":"#/components/schemas/OpenAILLMConfig"},{"$ref":"#/components/schemas/AzureLLMConfig"},{"$ref":"#/components/schemas/GroqLLMConfig"},{"$ref":"#/components/schemas/GoogleLLMConfig"},{"$ref":"#/components/schemas/GoogleVertexLLMConfig"},{"$ref":"#/components/schemas/CerebrasLLMConfig"},{"$ref":"#/components/schemas/SarvamLLMConfig"},{"$ref":"#/components/schemas/OpenAILLMExtendedConfig"},{"$ref":"#/components/schemas/AnthropicLLMExtendedConfig"},{"$ref":"#/components/schemas/AzureLLMExtendedConfig"},{"$ref":"#/components/schemas/GroqLLMExtendedConfig"},{"$ref":"#/components/schemas/GoogleLLMExtendedConfig"},{"$ref":"#/components/schemas/GoogleVertexLLMExtendedConfig"},{"$ref":"#/components/schemas/CerebrasLLMExtendedConfig"},{"$ref":"#/components/schemas/SarvamLLMExtendedConfig"},{"$ref":"#/components/schemas/OpenRouterLLMExtendedConfig"},{"$ref":"#/components/schemas/MistralLLMExtendedConfig"},{"type":"null"}],"title":"Llm"},"stt":{"anyOf":[{"$ref":"#/components/schemas/AzureSTTConfig"},{"$ref":"#/components/schemas/DeepgramSTTConfig"},{"$ref":"#/components/schemas/OpenAISTTConfig"},{"$ref":"#/components/schemas/CartesiaSTTConfig"},{"$ref":"#/components/schemas/SarvamSTTConfig"},{"$ref":"#/components/schemas/SmallestaiSTTConfig"},{"$ref":"#/components/schemas/SonioxSTTConfig"},{"$ref":"#/components/schemas/GoogleVertexSTTConfig"},{"$ref":"#/components/schemas/ElevenLabsSTTConfig"},{"$ref":"#/components/schemas/DeepgramSTTExtendedConfig"},{"$ref":"#/components/schemas/OpenAISTTExtendedConfig"},{"$ref":"#/components/schemas/CartesiaSTTExtendedConfig"},{"$ref":"#/components/schemas/SarvamSTTExtendedConfig"},{"$ref":"#/components/schemas/SmallestaiSTTExtendedConfig"},{"$ref":"#/components/schemas/SonioxSTTExtendedConfig"},{"$ref":"#/components/schemas/GoogleVertexSTTExtendedConfig"},{"$ref":"#/components/schemas/ElevenLabsSTTExtendedConfig"},{"$ref":"#/components/schemas/GroqSTTExtendedConfig"},{"type":"null"}],"title":"Stt"},"tts":{"anyOf":[{"$ref":"#/components/schemas/ElevenLabsTTSConfig"},{"$ref":"#/components/schemas/OpenAITTSConfig"},{"$ref":"#/components/schemas/DeepgramTTSConfig"},{"$ref":"#/components/schemas/CartesiaTTSConfig"},{"$ref":"#/components/schemas/SmallestaiTTSConfig"},{"$ref":"#/components/schemas/SarvamTTSConfig"},{"$ref":"#/components/schemas/RumikTTSConfig"},{"$ref":"#/components/schemas/FishAudioTTSConfig"},{"$ref":"#/components/schemas/GroqTTSConfig"},{"$ref":"#/components/schemas/AsyncAITTSConfig"},{"$ref":"#/components/schemas/GoogleVertexTTSConfig"},{"$ref":"#/components/schemas/ElevenLabsTTSExtendedConfig"},{"$ref":"#/components/schemas/OpenAITTSExtendedConfig"},{"$ref":"#/components/schemas/DeepgramTTSExtendedConfig"},{"$ref":"#/components/schemas/CartesiaTTSExtendedConfig"},{"$ref":"#/components/schemas/SarvamTTSExtendedConfig"},{"$ref":"#/components/schemas/RumikTTSExtendedConfig"},{"$ref":"#/components/schemas/FishAudioTTSExtendedConfig"},{"$ref":"#/components/schemas/GeminiTTSExtendedConfig"},{"$ref":"#/components/schemas/GoogleVertexTTSExtendedConfig"},{"type":"null"}],"title":"Tts"},"llm_fallback":{"anyOf":[{"$ref":"#/components/schemas/AnthropicLLMConfig"},{"$ref":"#/components/schemas/OpenAILLMConfig"},{"$ref":"#/components/schemas/AzureLLMConfig"},{"$ref":"#/components/schemas/GroqLLMConfig"},{"$ref":"#/components/schemas/GoogleLLMConfig"},{"$ref":"#/components/schemas/GoogleVertexLLMConfig"},{"$ref":"#/components/schemas/CerebrasLLMConfig"},{"$ref":"#/components/schemas/SarvamLLMConfig"},{"$ref":"#/components/schemas/OpenAILLMExtendedConfig"},{"$ref":"#/components/schemas/AnthropicLLMExtendedConfig"},{"$ref":"#/components/schemas/AzureLLMExtendedConfig"},{"$ref":"#/components/schemas/GroqLLMExtendedConfig"},{"$ref":"#/components/schemas/GoogleLLMExtendedConfig"},{"$ref":"#/components/schemas/GoogleVertexLLMExtendedConfig"},{"$ref":"#/components/schemas/CerebrasLLMExtendedConfig"},{"$ref":"#/components/schemas/SarvamLLMExtendedConfig"},{"$ref":"#/components/schemas/OpenRouterLLMExtendedConfig"},{"$ref":"#/components/schemas/MistralLLMExtendedConfig"},{"type":"null"}],"title":"Llm Fallback","description":"Alternate LLM provider/model used if the primary LLM errors out mid-call"},"stt_fallback":{"anyOf":[{"$ref":"#/components/schemas/AzureSTTConfig"},{"$ref":"#/components/schemas/DeepgramSTTConfig"},{"$ref":"#/components/schemas/OpenAISTTConfig"},{"$ref":"#/components/schemas/CartesiaSTTConfig"},{"$ref":"#/components/schemas/SarvamSTTConfig"},{"$ref":"#/components/schemas/SmallestaiSTTConfig"},{"$ref":"#/components/schemas/SonioxSTTConfig"},{"$ref":"#/components/schemas/GoogleVertexSTTConfig"},{"$ref":"#/components/schemas/ElevenLabsSTTConfig"},{"$ref":"#/components/schemas/DeepgramSTTExtendedConfig"},{"$ref":"#/components/schemas/OpenAISTTExtendedConfig"},{"$ref":"#/components/schemas/CartesiaSTTExtendedConfig"},{"$ref":"#/components/schemas/SarvamSTTExtendedConfig"},{"$ref":"#/components/schemas/SmallestaiSTTExtendedConfig"},{"$ref":"#/components/schemas/SonioxSTTExtendedConfig"},{"$ref":"#/components/schemas/GoogleVertexSTTExtendedConfig"},{"$ref":"#/components/schemas/ElevenLabsSTTExtendedConfig"},{"$ref":"#/components/schemas/GroqSTTExtendedConfig"},{"type":"null"}],"title":"Stt Fallback","description":"Alternate STT provider/model used if the primary STT errors out mid-call"},"tts_fallback":{"anyOf":[{"$ref":"#/components/schemas/ElevenLabsTTSConfig"},{"$ref":"#/components/schemas/OpenAITTSConfig"},{"$ref":"#/components/schemas/DeepgramTTSConfig"},{"$ref":"#/components/schemas/CartesiaTTSConfig"},{"$ref":"#/components/schemas/SmallestaiTTSConfig"},{"$ref":"#/components/schemas/SarvamTTSConfig"},{"$ref":"#/components/schemas/RumikTTSConfig"},{"$ref":"#/components/schemas/FishAudioTTSConfig"},{"$ref":"#/components/schemas/GroqTTSConfig"},{"$ref":"#/components/schemas/AsyncAITTSConfig"},{"$ref":"#/components/schemas/GoogleVertexTTSConfig"},{"$ref":"#/components/schemas/ElevenLabsTTSExtendedConfig"},{"$ref":"#/components/schemas/OpenAITTSExtendedConfig"},{"$ref":"#/components/schemas/DeepgramTTSExtendedConfig"},{"$ref":"#/components/schemas/CartesiaTTSExtendedConfig"},{"$ref":"#/components/schemas/SarvamTTSExtendedConfig"},{"$ref":"#/components/schemas/RumikTTSExtendedConfig"},{"$ref":"#/components/schemas/FishAudioTTSExtendedConfig"},{"$ref":"#/components/schemas/GeminiTTSExtendedConfig"},{"$ref":"#/components/schemas/GoogleVertexTTSExtendedConfig"},{"type":"null"}],"title":"Tts Fallback","description":"Alternate TTS provider/voice used if the primary TTS errors out mid-call"}},"additionalProperties":false,"type":"object","title":"AgentConfig"},"AgentCostBreakdown":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"is_main":{"type":"boolean","title":"Is Main"},"platform_key_services":{"items":{"type":"string"},"type":"array","title":"Platform Key Services"},"own_key_services":{"items":{"type":"string"},"type":"array","title":"Own Key Services"},"items":{"items":{"$ref":"#/components/schemas/CostBreakdownItem"},"type":"array","title":"Items"},"subtotal":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Subtotal"}},"type":"object","required":["agent_id","is_main","platform_key_services","own_key_services","items","subtotal"],"title":"AgentCostBreakdown"},"AgentCreateFromTemplate":{"properties":{"template_id":{"type":"string","format":"uuid","title":"Template Id","description":"ID of the agent template"}},"type":"object","required":["template_id"],"title":"AgentCreateFromTemplate"},"AgentCreateFromTemplateResponse":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id","description":"Created agent UUID"}},"type":"object","required":["agent_id"],"title":"AgentCreateFromTemplateResponse"},"AgentDetailResponse":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Agent name"},"prompt":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Prompt","description":"Agent instructions/prompt"},"hangup_prompt":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Hangup Prompt","description":"Call hangup instructions/prompt"},"is_hangup_prompt_enabled":{"type":"boolean","title":"Is Hangup Prompt Enabled","description":"Call hangup instructions/prompt toggle status","default":false},"welcome_message":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Welcome Message","description":"Welcome message for the agent"},"agent_type":{"$ref":"#/components/schemas/AgentType","description":"single_prompt | workflow"},"workflow_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id","description":"Linked workflow UUID"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config","description":"Resolved agent configuration (provider/model details for llm, stt, tts)","examples":[{"llm":{"model":"gpt-4.1","provider":"openai"}}]},"call_configuration":{"anyOf":[{"$ref":"#/components/schemas/AgentCallConfiguration-Output"},{"type":"null"}],"description":"Call configuration"},"status":{"$ref":"#/components/schemas/AgentStatus","description":"Agent status (draft | published)","default":"draft"},"version_title":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Version Title","description":"User-facing title for this version"},"version_description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Version Description","description":"User-facing description of what this version changed"},"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active","description":"Agent active status","default":true},"base_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Agent Id"},"parent_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Agent Id"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"is_current":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Current"},"knowledge_bases":{"items":{"$ref":"#/components/schemas/KnowledgeBaseSummary"},"type":"array","title":"Knowledge Bases","default":[]},"function_tools":{"items":{"$ref":"#/components/schemas/FunctionToolResponse"},"type":"array","title":"Function Tools","default":[]},"guardrails":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentGuardrail"},"type":"array"},{"type":"null"}],"title":"Guardrails","description":"Optional list of LLM guardrails"},"structured_output":{"anyOf":[{"items":{"$ref":"#/components/schemas/StructuredOutput-Output"},"type":"array"},{"type":"null"}],"title":"Structured Output","description":"Optional list of structured output variable schemas"},"custom_attributes":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAttribute-Output"},"type":"array"},{"type":"null"}],"title":"Custom Attributes","description":"Optional list of attributes saved on each call log"},"channel_settings":{"anyOf":[{"$ref":"#/components/schemas/AgentChannelSettings"},{"type":"null"}],"description":"Per-channel tools and instructions"},"estimated_cost":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Estimated Cost","description":"Reserved cost breakdown (currently always null)"},"language":{"anyOf":[{"$ref":"#/components/schemas/LanguageResponse"},{"type":"null"}],"description":"Agent language"},"webhooks":{"items":{"$ref":"#/components/schemas/WebhookSubscriptionList"},"type":"array","title":"Webhooks"}},"type":"object","required":["name","agent_type","id","created_at","webhooks"],"title":"AgentDetailResponse"},"AgentEnhancePromptRequest":{"properties":{"user_prompt":{"type":"string","minLength":1,"title":"User Prompt","description":"User-authored natural-language input. When the agent has no stored prompt, this is treated as the initial draft to expand into a production-ready prompt. When the agent already has a prompt, this is treated as edit instructions for updating the existing prompt."}},"additionalProperties":false,"type":"object","required":["user_prompt"],"title":"AgentEnhancePromptRequest","description":"Request body for POST .../agents/{agent_id}/generate-prompt."},"AgentEnhancePromptResponse":{"properties":{"enhanced_prompt":{"type":"string","title":"Enhanced Prompt","description":"Production-ready prompt generated from the input"},"mode":{"type":"string","enum":["generate","update"],"title":"Mode","description":"generate when built from a fresh draft, update when editing an existing prompt"}},"type":"object","required":["enhanced_prompt","mode"],"title":"AgentEnhancePromptResponse"},"AgentFunctionType":{"type":"string","enum":["transfer_call","custom_function","sound_effect","end_call","check_slot_availability","book_appointment","agent_transfer","verify_email_otp","schedule_callback"],"title":"AgentFunctionType"},"AgentGuardrail":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Name of the guardrail config"},"response":{"type":"string","minLength":1,"title":"Response","description":"Guardrail response"},"threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Threshold","description":"Guardrail threshold","default":0.0},"utterances":{"items":{"$ref":"#/components/schemas/AgentGuardrailUtterance"},"type":"array","title":"Utterances"}},"type":"object","required":["name","response","utterances"],"title":"AgentGuardrail"},"AgentGuardrailUtterance":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"AgentGuardrailUtterance"},"AgentHandoffAgentRef":{"properties":{"base_agent_id":{"type":"string","format":"uuid","title":"Base Agent Id","description":"The agent family"},"version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Version Id","description":"Id of the version of the agent the crew is on (the `id` of an entry of GET /agents/{base_agent_id}/versions), chosen on the crew. The agent publishing a newer version does not change it."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The agent's name in that version"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"The version number of version_id"}},"type":"object","required":["base_agent_id"],"title":"AgentHandoffAgentRef","description":"The agent a member stands for, and the version of it the crew is on."},"AgentHandoffCreate":{"properties":{"name":{"type":"string","maxLength":150,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"main_agent_id":{"type":"string","format":"uuid","title":"Main Agent Id","description":"The published version of the agent the call starts on. Any other id of the agent means its current published version."}},"additionalProperties":false,"type":"object","required":["name","main_agent_id"],"title":"AgentHandoffCreate","description":"Everything an agent handoff needs to exist: a name and its main agent."},"AgentHandoffDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Id of the version shown: current, else draft, else latest"},"base_crew_id":{"type":"string","format":"uuid","title":"Base Crew Id","description":"The crew family: the first version's id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"version":{"type":"integer","title":"Version"},"status":{"$ref":"#/components/schemas/AgentStatus"},"is_current":{"type":"boolean","title":"Is Current"},"is_active":{"type":"boolean","title":"Is Active"},"has_draft":{"type":"boolean","title":"Has Draft","description":"The crew family has an unpublished draft version"},"main_agent":{"anyOf":[{"$ref":"#/components/schemas/AgentHandoffAgentRef"},{"type":"null"}]},"handoff_agent_count":{"type":"integer","title":"Handoff Agent Count","description":"Agents besides the main agent"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"custom_attributes":{"items":{"$ref":"#/components/schemas/CustomAttribute-Output"},"type":"array","title":"Custom Attributes","description":"Attributes saved on each call log of this crew"},"version_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Title"},"version_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Description"},"nodes":{"items":{"$ref":"#/components/schemas/AgentHandoffNode"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/AgentHandoffEdge"},"type":"array","title":"Edges"}},"type":"object","required":["id","base_crew_id","name","version","status","is_current","is_active","has_draft","handoff_agent_count","created_at","updated_at","nodes","edges"],"title":"AgentHandoffDetail"},"AgentHandoffEdge":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The route id"},"source":{"type":"string","format":"uuid","title":"Source","description":"Member id the call is handed from"},"target":{"type":"string","format":"uuid","title":"Target","description":"Member id the call is handed to"},"data":{"$ref":"#/components/schemas/AgentHandoffEdgeData"}},"type":"object","required":["id","source","target","data"],"title":"AgentHandoffEdge","description":"A route, shaped as a React Flow edge."},"AgentHandoffEdgeData":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"What the route is called; null if unnamed"},"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition","description":"When to hand off along this route; null means none given"},"pre_execution_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Execution Message"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true}},"type":"object","title":"AgentHandoffEdgeData"},"AgentHandoffEdgeDataInput":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Name","description":"What the route is called, to tell routes apart in the editor, e.g. 'Billing questions'. Not shown to the agents' LLMs."},"condition":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Condition","description":"When the source agent should hand the call to the target, shown to its LLM, e.g. 'The caller asks about a charge or a refund'"},"pre_execution_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Execution Message","description":"Said by the current agent before the call moves"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message","description":"Said if the call cannot move; the current agent keeps it"},"is_enabled":{"type":"boolean","title":"Is Enabled","default":true}},"type":"object","title":"AgentHandoffEdgeDataInput"},"AgentHandoffEdgeInput":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Any id; a new edge's id is mapped to the new route id in the response"},"source":{"type":"string","title":"Source","description":"Node id the call is handed from"},"target":{"type":"string","title":"Target","description":"Node id the call is handed to"},"data":{"$ref":"#/components/schemas/AgentHandoffEdgeDataInput"}},"type":"object","required":["source","target"],"title":"AgentHandoffEdgeInput","description":"A React Flow edge: a direction the call may be handed in."},"AgentHandoffListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Id of the version shown: current, else draft, else latest"},"base_crew_id":{"type":"string","format":"uuid","title":"Base Crew Id","description":"The crew family: the first version's id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"version":{"type":"integer","title":"Version"},"status":{"$ref":"#/components/schemas/AgentStatus"},"is_current":{"type":"boolean","title":"Is Current"},"is_active":{"type":"boolean","title":"Is Active"},"has_draft":{"type":"boolean","title":"Has Draft","description":"The crew family has an unpublished draft version"},"main_agent":{"anyOf":[{"$ref":"#/components/schemas/AgentHandoffAgentRef"},{"type":"null"}]},"handoff_agent_count":{"type":"integer","title":"Handoff Agent Count","description":"Agents besides the main agent"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","base_crew_id","name","version","status","is_current","is_active","has_draft","handoff_agent_count","created_at","updated_at"],"title":"AgentHandoffListItem"},"AgentHandoffListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentHandoffListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"size":{"type":"integer","title":"Size"},"pages":{"type":"integer","title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"AgentHandoffListResponse"},"AgentHandoffNode":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"The member id"},"type":{"type":"string","enum":["main","handoff"],"title":"Type"},"position":{"anyOf":[{"$ref":"#/components/schemas/CanvasPosition"},{"type":"null"}],"description":"Null until the node is first placed; lay it out client-side"},"data":{"$ref":"#/components/schemas/AgentHandoffNodeData"}},"type":"object","required":["id","type","data"],"title":"AgentHandoffNode","description":"A member, shaped as a React Flow node."},"AgentHandoffNodeData":{"properties":{"agent":{"$ref":"#/components/schemas/AgentHandoffAgentRef"},"is_main":{"type":"boolean","title":"Is Main"},"name_overridden":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Overridden","description":"Name the other agents' LLMs pick this agent by; null means the agent's own"},"welcome_message_overridden":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Message Overridden","description":"Override of what the agent's greeting after a handoff is based on; null means the agent's own welcome message"},"prompt_overridden":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Overridden","description":"Override of the agent's prompt for this crew; null means its own"},"llm_overridden":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Llm Overridden","description":"Override of the agent's LLM for this crew, as in an agent's config; null means its own"},"stt_overridden":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Stt Overridden","description":"Override of the agent's STT for this crew, as in an agent's config; null means its own"},"tts_overridden":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tts Overridden","description":"Override of the agent's TTS for this crew, as in an agent's config; null means its own"},"tools_overridden":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tools Overridden","description":"Per-tool overrides of the agent's tools for this crew, by tool name: enabled, pre_execution_message, function_call_sound; null means the tools as configured"}},"type":"object","required":["agent","is_main"],"title":"AgentHandoffNodeData","description":"A member's node data. Each ``*_overridden`` field is what this crew sets\ninstead of the agent's own; null means the agent's own is used."},"AgentHandoffNodeDataInput":{"properties":{"version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Version Id","description":"Id of the published agent version this node runs (an agent's versions: GET /agents/{agent_id}/versions). A draft's id means the agent's current published version. Required on a new node; on an existing node, omit to keep its version, or send another version (of this agent or another) to change it."},"agent":{"anyOf":[{"$ref":"#/components/schemas/AgentHandoffAgentRef"},{"type":"null"}],"description":"Accepted as sent by GET; its version_id is used when version_id is omitted, so a node sent back unchanged keeps its version"},"name_overridden":{"anyOf":[{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Name Overridden","description":"Name the other agents' LLMs pick this agent by, e.g. 'billing'. Null: derived from the agent's own name."},"welcome_message_overridden":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Message Overridden","description":"What the agent's greeting after a handoff is based on; its LLM says it in its own words; on the main agent, the call's first greeting. Null: the agent's own."},"prompt_overridden":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Overridden","description":"Prompt used in this crew instead of the agent's own. Null: the agent's own."},"llm_overridden":{"anyOf":[{"$ref":"#/components/schemas/AnthropicLLMConfig"},{"$ref":"#/components/schemas/OpenAILLMConfig"},{"$ref":"#/components/schemas/AzureLLMConfig"},{"$ref":"#/components/schemas/GroqLLMConfig"},{"$ref":"#/components/schemas/GoogleLLMConfig"},{"$ref":"#/components/schemas/GoogleVertexLLMConfig"},{"$ref":"#/components/schemas/CerebrasLLMConfig"},{"$ref":"#/components/schemas/SarvamLLMConfig"},{"$ref":"#/components/schemas/OpenAILLMExtendedConfig"},{"$ref":"#/components/schemas/AnthropicLLMExtendedConfig"},{"$ref":"#/components/schemas/AzureLLMExtendedConfig"},{"$ref":"#/components/schemas/GroqLLMExtendedConfig"},{"$ref":"#/components/schemas/GoogleLLMExtendedConfig"},{"$ref":"#/components/schemas/GoogleVertexLLMExtendedConfig"},{"$ref":"#/components/schemas/CerebrasLLMExtendedConfig"},{"$ref":"#/components/schemas/SarvamLLMExtendedConfig"},{"$ref":"#/components/schemas/OpenRouterLLMExtendedConfig"},{"$ref":"#/components/schemas/MistralLLMExtendedConfig"},{"type":"null"}],"title":"Llm Overridden","description":"LLM used in this crew instead of the agent's own, in the shape of an agent's config.llm. Null: the agent's own."},"stt_overridden":{"anyOf":[{"$ref":"#/components/schemas/AzureSTTConfig"},{"$ref":"#/components/schemas/DeepgramSTTConfig"},{"$ref":"#/components/schemas/OpenAISTTConfig"},{"$ref":"#/components/schemas/CartesiaSTTConfig"},{"$ref":"#/components/schemas/SarvamSTTConfig"},{"$ref":"#/components/schemas/SmallestaiSTTConfig"},{"$ref":"#/components/schemas/SonioxSTTConfig"},{"$ref":"#/components/schemas/GoogleVertexSTTConfig"},{"$ref":"#/components/schemas/ElevenLabsSTTConfig"},{"$ref":"#/components/schemas/DeepgramSTTExtendedConfig"},{"$ref":"#/components/schemas/OpenAISTTExtendedConfig"},{"$ref":"#/components/schemas/CartesiaSTTExtendedConfig"},{"$ref":"#/components/schemas/SarvamSTTExtendedConfig"},{"$ref":"#/components/schemas/SmallestaiSTTExtendedConfig"},{"$ref":"#/components/schemas/SonioxSTTExtendedConfig"},{"$ref":"#/components/schemas/GoogleVertexSTTExtendedConfig"},{"$ref":"#/components/schemas/ElevenLabsSTTExtendedConfig"},{"$ref":"#/components/schemas/GroqSTTExtendedConfig"},{"type":"null"}],"title":"Stt Overridden","description":"STT used in this crew instead of the agent's own, in the shape of an agent's config.stt. Null: the agent's own."},"tts_overridden":{"anyOf":[{"$ref":"#/components/schemas/ElevenLabsTTSConfig"},{"$ref":"#/components/schemas/OpenAITTSConfig"},{"$ref":"#/components/schemas/DeepgramTTSConfig"},{"$ref":"#/components/schemas/CartesiaTTSConfig"},{"$ref":"#/components/schemas/SmallestaiTTSConfig"},{"$ref":"#/components/schemas/SarvamTTSConfig"},{"$ref":"#/components/schemas/RumikTTSConfig"},{"$ref":"#/components/schemas/FishAudioTTSConfig"},{"$ref":"#/components/schemas/GroqTTSConfig"},{"$ref":"#/components/schemas/AsyncAITTSConfig"},{"$ref":"#/components/schemas/GoogleVertexTTSConfig"},{"$ref":"#/components/schemas/ElevenLabsTTSExtendedConfig"},{"$ref":"#/components/schemas/OpenAITTSExtendedConfig"},{"$ref":"#/components/schemas/DeepgramTTSExtendedConfig"},{"$ref":"#/components/schemas/CartesiaTTSExtendedConfig"},{"$ref":"#/components/schemas/SarvamTTSExtendedConfig"},{"$ref":"#/components/schemas/RumikTTSExtendedConfig"},{"$ref":"#/components/schemas/FishAudioTTSExtendedConfig"},{"$ref":"#/components/schemas/GeminiTTSExtendedConfig"},{"$ref":"#/components/schemas/GoogleVertexTTSExtendedConfig"},{"type":"null"}],"title":"Tts Overridden","description":"TTS used in this crew instead of the agent's own, in the shape of an agent's config.tts. Null: the agent's own."},"tools_overridden":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ToolOverride"},"type":"object"},{"type":"null"}],"title":"Tools Overridden","description":"Changes to this agent's tools in this crew, by tool name (enabled, pre_execution_message, function_call_sound). Null: its tools as configured."}},"type":"object","title":"AgentHandoffNodeDataInput","description":"A node's data as the editor sends it back.\n\nEvery field is the member's full value: an omitted or null ``*_overridden``\nfield means the agent's own. extra=\"ignore\", so the editor can send back the node as\nit received it (``agent``, ``is_main`` …) without stripping it."},"AgentHandoffNodeInput":{"properties":{"id":{"type":"string","minLength":1,"title":"Id","description":"An existing member's id, or any id the editor made up for a new node (edges may refer to it; the response maps it to the new member id)"},"type":{"type":"string","enum":["main","handoff"],"title":"Type"},"position":{"anyOf":[{"$ref":"#/components/schemas/CanvasPosition"},{"type":"null"}]},"data":{"$ref":"#/components/schemas/AgentHandoffNodeDataInput"}},"type":"object","required":["id","type"],"title":"AgentHandoffNodeInput","description":"A React Flow node: a member of the crew."},"AgentHandoffPromptVariable":{"properties":{"name":{"type":"string","title":"Name"},"nodes":{"items":{"$ref":"#/components/schemas/AgentHandoffPromptVariableNode"},"type":"array","title":"Nodes","description":"Every node that uses the variable, main node first. A call gives the variable one value, which all of them get."}},"type":"object","required":["name","nodes"],"title":"AgentHandoffPromptVariable"},"AgentHandoffPromptVariableNode":{"properties":{"node_id":{"type":"string","format":"uuid","title":"Node Id","description":"The node's id, as in the crew's nodes."},"fields":{"items":{"type":"string","enum":["prompt","welcome_message","call_settings"]},"type":"array","title":"Fields","description":"Where the node uses the variable, with the crew's overrides applied."}},"type":"object","required":["node_id","fields"],"title":"AgentHandoffPromptVariableNode","description":"A node of the crew that uses a prompt variable."},"AgentHandoffPromptVariablesResponse":{"properties":{"variables":{"items":{"type":"string"},"type":"array","title":"Variables","description":"Every dynamic variable a call on this crew has to be given."},"variable_nodes":{"items":{"$ref":"#/components/schemas/AgentHandoffPromptVariable"},"type":"array","title":"Variable Nodes","description":"The same variables, each with the nodes that use it."}},"type":"object","required":["variables","variable_nodes"],"title":"AgentHandoffPromptVariablesResponse"},"AgentHandoffUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":150,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"custom_attributes":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAttribute-Input"},"type":"array"},{"type":"null"}],"title":"Custom Attributes","description":"Attributes saved on each call log. null or [] clears them."},"nodes":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentHandoffNodeInput"},"type":"array"},{"type":"null"}],"title":"Nodes"},"edges":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentHandoffEdgeInput"},"type":"array"},{"type":"null"}],"title":"Edges"},"status":{"anyOf":[{"type":"string","const":"published"},{"type":"null"}],"title":"Status","description":"'published' saves, then publishes: the version saved becomes the current one, and phone numbers move to it."}},"additionalProperties":false,"type":"object","title":"AgentHandoffUpdate","description":"Everything about a crew that can be changed, in one request.\n\nOmitted top-level fields are unchanged. ``nodes`` and ``edges`` are the\nwhole graph as the editor has it, not a diff:\n\n* ``nodes`` sent: members not in it are removed, nodes with a new id are\n  added, the rest are updated to exactly what is sent. Exactly one node\n  is the main agent.\n* ``edges`` sent: routes not in it are removed, the rest are created or\n  updated. An edge is identified by its source and target.\n* ``nodes`` sent without ``edges``: routes are kept, except those of\n  removed members.\n\nVersions work as they do for agents: a save to a draft edits it; a save\nthat changes the current published version is made on its draft\n(created if there is none), so what calls use only changes on publish;\na save that only moves nodes is kept on the version as it is, since\nlayout is not what calls run; a historical version cannot be saved.\n\nextra=\"forbid\" here, so a field that is not editable is reported rather\nthan silently ignored."},"AgentHandoffUpdateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Id of the version shown: current, else draft, else latest"},"base_crew_id":{"type":"string","format":"uuid","title":"Base Crew Id","description":"The crew family: the first version's id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"version":{"type":"integer","title":"Version"},"status":{"$ref":"#/components/schemas/AgentStatus"},"is_current":{"type":"boolean","title":"Is Current"},"is_active":{"type":"boolean","title":"Is Active"},"has_draft":{"type":"boolean","title":"Has Draft","description":"The crew family has an unpublished draft version"},"main_agent":{"anyOf":[{"$ref":"#/components/schemas/AgentHandoffAgentRef"},{"type":"null"}]},"handoff_agent_count":{"type":"integer","title":"Handoff Agent Count","description":"Agents besides the main agent"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"custom_attributes":{"items":{"$ref":"#/components/schemas/CustomAttribute-Output"},"type":"array","title":"Custom Attributes","description":"Attributes saved on each call log of this crew"},"version_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Title"},"version_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Description"},"nodes":{"items":{"$ref":"#/components/schemas/AgentHandoffNode"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/AgentHandoffEdge"},"type":"array","title":"Edges"},"id_map":{"additionalProperties":{"type":"string","format":"uuid"},"type":"object","title":"Id Map","description":"Id the editor gave each new node or edge -> the member or route id it was saved as. Swap these in so later requests refer to the saved rows."}},"type":"object","required":["id","base_crew_id","name","version","status","is_current","is_active","has_draft","handoff_agent_count","created_at","updated_at","nodes","edges"],"title":"AgentHandoffUpdateResponse"},"AgentHandoffVersionListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version":{"type":"integer","title":"Version"},"status":{"$ref":"#/components/schemas/AgentStatus"},"is_current":{"type":"boolean","title":"Is Current"},"name":{"type":"string","title":"Name"},"version_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Title"},"version_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","version","status","is_current","name","created_at","updated_at"],"title":"AgentHandoffVersionListItem"},"AgentHandoffVersionListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentHandoffVersionListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"size":{"type":"integer","title":"Size"},"pages":{"type":"integer","title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"AgentHandoffVersionListResponse"},"AgentHandoffVersionMetadataUpdate":{"properties":{"version_title":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Version Title","description":"User-facing title for this version"},"version_description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Version Description","description":"User-facing description of what this version changed"}},"type":"object","title":"AgentHandoffVersionMetadataUpdate","description":"A version's title and description. Fields left out are kept; null clears one."},"AgentList":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Agent UUID"},"name":{"type":"string","title":"Name","description":"Agent name"},"agent_type":{"$ref":"#/components/schemas/AgentType","description":"single_prompt | workflow"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last update timestamp"},"is_active":{"type":"boolean","title":"Is Active","description":"Agent active status"},"status":{"anyOf":[{"$ref":"#/components/schemas/AgentStatus"},{"type":"null"}],"description":"Agent status (draft | published)"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"Agent version number"},"is_current":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Current","description":"Whether this version is the current one"},"base_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Agent Id","description":"Agent family UUID"},"has_draft":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Draft","description":"Whether a newer draft exists"},"version_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Title","description":"User-facing title for this version"},"version_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Description","description":"User-facing description of what this version changed"}},"type":"object","required":["id","name","agent_type","updated_at","is_active"],"title":"AgentList"},"AgentPromptVariablesResponse":{"properties":{"variables":{"items":{"type":"string"},"type":"array","title":"Variables","description":"List of dynamic variables required by the agent prompt"}},"type":"object","required":["variables"],"title":"AgentPromptVariablesResponse"},"AgentResponse":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Agent name"},"prompt":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Prompt","description":"Agent instructions/prompt"},"hangup_prompt":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Hangup Prompt","description":"Call hangup instructions/prompt"},"is_hangup_prompt_enabled":{"type":"boolean","title":"Is Hangup Prompt Enabled","description":"Call hangup instructions/prompt toggle status","default":false},"welcome_message":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Welcome Message","description":"Welcome message for the agent"},"agent_type":{"$ref":"#/components/schemas/AgentType","description":"single_prompt | workflow"},"workflow_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id","description":"Linked workflow UUID"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config","description":"Resolved agent configuration (provider/model details for llm, stt, tts)","examples":[{"llm":{"model":"gpt-4.1","provider":"openai"}}]},"call_configuration":{"anyOf":[{"$ref":"#/components/schemas/AgentCallConfiguration-Output"},{"type":"null"}],"description":"Call configuration"},"status":{"$ref":"#/components/schemas/AgentStatus","description":"Agent status (draft | published)","default":"draft"},"version_title":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Version Title","description":"User-facing title for this version"},"version_description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Version Description","description":"User-facing description of what this version changed"},"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"is_active":{"type":"boolean","title":"Is Active","description":"Agent active status","default":true},"base_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Agent Id"},"parent_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Agent Id"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"is_current":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Current"},"knowledge_bases":{"items":{"$ref":"#/components/schemas/KnowledgeBaseSummary"},"type":"array","title":"Knowledge Bases","default":[]},"function_tools":{"items":{"$ref":"#/components/schemas/FunctionToolResponse"},"type":"array","title":"Function Tools","default":[]},"guardrails":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentGuardrail"},"type":"array"},{"type":"null"}],"title":"Guardrails","description":"Optional list of LLM guardrails"},"structured_output":{"anyOf":[{"items":{"$ref":"#/components/schemas/StructuredOutput-Output"},"type":"array"},{"type":"null"}],"title":"Structured Output","description":"Optional list of structured output variable schemas"},"custom_attributes":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAttribute-Output"},"type":"array"},{"type":"null"}],"title":"Custom Attributes","description":"Optional list of attributes saved on each call log"},"channel_settings":{"anyOf":[{"$ref":"#/components/schemas/AgentChannelSettings"},{"type":"null"}],"description":"Per-channel tools and instructions"},"estimated_cost":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Estimated Cost","description":"Reserved cost breakdown (currently always null)"},"language":{"anyOf":[{"$ref":"#/components/schemas/LanguageResponse"},{"type":"null"}],"description":"Agent language"}},"type":"object","required":["name","agent_type","id","created_at"],"title":"AgentResponse","description":"Schema returned to clients"},"AgentShareRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Name for the shared agent"},"workspace_project_ids":{"additionalProperties":{"items":{"type":"string","format":"uuid"},"type":"array"},"propertyNames":{"format":"uuid"},"type":"object","minProperties":1,"title":"Workspace Project Ids","description":"Map of workspace UUID to list of project UUIDs to import the agent into"}},"type":"object","required":["name","workspace_project_ids"],"title":"AgentShareRequest"},"AgentShareResponse":{"properties":{"agent_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Agent Ids","description":"UUIDs of the newly shared agents in the target workspaces"}},"type":"object","required":["agent_ids"],"title":"AgentShareResponse"},"AgentStatus":{"type":"string","enum":["draft","published"],"title":"AgentStatus"},"AgentTemplateListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","minLength":1,"title":"Name","description":"Template name"},"description":{"type":"string","title":"Description","description":"Template description"},"version":{"type":"integer","title":"Version","description":"Template version"}},"type":"object","required":["id","name","description","version"],"title":"AgentTemplateListItem"},"AgentTemplateListResponse":{"properties":{"agent_templates":{"items":{"$ref":"#/components/schemas/AgentTemplateListItem"},"type":"array","title":"Agent Templates"}},"type":"object","required":["agent_templates"],"title":"AgentTemplateListResponse"},"AgentType":{"type":"string","enum":["single_prompt","workflow"],"title":"AgentType"},"AgentUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name","description":"Agent name"},"prompt":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Prompt","description":"Agent instructions/prompt"},"hangup_prompt":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Hangup Prompt","description":"Instructions/Prompt for the agent to end a call"},"is_hangup_prompt_enabled":{"type":"boolean","title":"Is Hangup Prompt Enabled","description":"Call hangup instructions/prompt toggle status","default":false},"welcome_message":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Welcome Message","description":"Welcome message for the agent"},"language_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Language Id","description":"Language UUID"},"agent_type":{"anyOf":[{"$ref":"#/components/schemas/AgentType"},{"type":"null"}],"description":"single_prompt | workflow"},"workflow_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workflow Id","description":"Linked workflow UUID"},"knowledge_base_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Knowledge Base Ids","description":"Linked knowledge base UUIDs"},"function_tool_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Function Tool Ids","description":"Linked function tool UUIDs"},"guardrails":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentGuardrail"},"type":"array"},{"type":"null"}],"title":"Guardrails","description":"Optional list of LLM guardrails"},"structured_output":{"anyOf":[{"items":{"$ref":"#/components/schemas/StructuredOutput-Input"},"type":"array"},{"type":"null"}],"title":"Structured Output","description":"Optional list of structured output variable schemas for call-time variable collection"},"custom_attributes":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAttribute-Input"},"type":"array"},{"type":"null"}],"title":"Custom Attributes","description":"Optional list of attributes saved on each call log"},"channel_settings":{"anyOf":[{"$ref":"#/components/schemas/AgentChannelSettings"},{"type":"null"}],"description":"Per-channel tools and instructions"},"config":{"anyOf":[{"$ref":"#/components/schemas/AgentConfig"},{"type":"null"}],"description":"Agent configuration"},"call_configuration":{"anyOf":[{"$ref":"#/components/schemas/AgentCallConfiguration-Input"},{"type":"null"}],"description":"Call configuration"},"status":{"anyOf":[{"$ref":"#/components/schemas/AgentStatus"},{"type":"null"}],"description":"Agent status (draft | published)"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Filter by active status"}},"type":"object","title":"AgentUpdate","description":"All fields optional for update."},"AgentVersionListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id","description":"Agent version UUID"},"version":{"type":"integer","title":"Version","description":"Agent version number"},"status":{"$ref":"#/components/schemas/AgentStatus","description":"Agent status (draft | published)"},"is_current":{"type":"boolean","title":"Is Current","description":"Whether this version is the current one"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"Last update timestamp"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Agent name"},"version_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Title","description":"User-facing title for this version"},"version_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Description","description":"User-facing description of what this version changed"}},"type":"object","required":["id","version","status","is_current","created_at"],"title":"AgentVersionListItem"},"AgentVersionMetadataUpdate":{"properties":{"version_title":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Version Title","description":"User-facing title for this version"},"version_description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Version Description","description":"User-facing description of what this version changed"}},"type":"object","title":"AgentVersionMetadataUpdate"},"AmbientSoundConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Enable or disable ambient sound","default":false},"sound_type":{"$ref":"#/components/schemas/AmbientSoundType","description":"Ambient sound preset","default":"light_rain"},"volume":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Volume","description":"Ambient volume (0.0 – 1.0)","default":0.5}},"type":"object","title":"AmbientSoundConfig"},"AmbientSoundType":{"type":"string","enum":["light_rain","coffee_shop","keyboard_typing","white_noise","static_noise","call_center","office","mountain_outdoor","summer_outdoor","convention_hall","nature","cafe_chatter","hvac"],"title":"AmbientSoundType"},"AnthropicLLMConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default_name":"claude-opus-4-7"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"anthropic"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"AnthropicLLMConfig"},"AnthropicLLMExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default_name":"claude-opus-4-7"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"anthropic"},"top_k":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Top K","description":"Sample only from the K most likely tokens"},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Effort","description":"How much effort Claude spends on a reply (Claude 4.7 and later)"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"AnthropicLLMExtendedConfig"},"ApiRequestConfig":{"properties":{"method":{"type":"string","title":"Method","description":"Api endpoint method"},"endpoint":{"type":"string","minLength":10,"title":"Endpoint","description":"The API endpoint to be called."},"timeout":{"type":"integer","maximum":15000.0,"minimum":1000.0,"title":"Timeout","description":"Timeout (ms) for the api endpoint to execute","default":10000},"headers":{"additionalProperties":true,"type":"object","title":"Headers","description":"Headers for the endpoint in milisecond"},"query_parameters":{"additionalProperties":true,"type":"object","title":"Query Parameters","description":"Query parametes for the endpoint"},"payload":{"additionalProperties":true,"type":"object","title":"Payload","description":"Payload data for the endpoint"},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id","description":"Optional server credential used for authenticated custom function calls"}},"type":"object","required":["method","endpoint"],"title":"ApiRequestConfig","description":"HTTP request half shared by on-call custom functions and pre-call tools."},"ApiRequestTestInput":{"properties":{"config":{"$ref":"#/components/schemas/ApiRequestConfig"},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id"},"variables":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"}]},"type":"object","title":"Variables"},"mode":{"type":"string","enum":["custom_function","pre_call"],"title":"Mode","default":"custom_function"}},"type":"object","required":["config"],"title":"ApiRequestTestInput","description":"A draft request from the form; nothing needs to be saved first."},"ApiRequestTestResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"duration_ms":{"type":"integer","title":"Duration Ms","default":0},"error_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Kind"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"request":{"additionalProperties":true,"type":"object","title":"Request"},"response_headers":{"additionalProperties":true,"type":"object","title":"Response Headers"},"response_body":{"title":"Response Body"},"truncated":{"type":"boolean","title":"Truncated","default":false},"unresolved_variables":{"items":{"type":"string"},"type":"array","title":"Unresolved Variables"},"timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout Ms"}},"type":"object","required":["ok"],"title":"ApiRequestTestResponse"},"AsyncAITTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"async"},"model":{"type":"string","format":"uuid","title":"Model","default":"async_flash_v1.5"},"voice":{"type":"string","title":"Voice","default":"cca0e076-94b9-4c6d-86b7-546168f11174"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"AsyncAITTSConfig"},"AuthType":{"type":"string","enum":["OAUTH2","HMAC","BEARER_TOKEN"],"title":"AuthType"},"AuthURLResponse":{"properties":{"auth_url":{"type":"string","title":"Auth Url"}},"type":"object","required":["auth_url"],"title":"AuthURLResponse"},"AutoEvalRequest":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"description":{"type":"string","minLength":1,"title":"Description"},"count":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Count","default":5},"attacks_per_check":{"type":"integer","maximum":15.0,"minimum":1.0,"title":"Attacks Per Check","default":4},"judge_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Judge Config"},"provider_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Uuid"},"model_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Uuid"},"harden":{"type":"boolean","title":"Harden","default":false},"max_iters":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Max Iters","default":3},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},"type":"object","required":["agent_id","description"],"title":"AutoEvalRequest","description":"Describe-once eval: the operator says what the agent must do & uphold; the\nsystem derives the safety checks + attacks from that (+ the agent's prompt)."},"AzureLLMConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default_name":"gpt-4.1"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"azure"},"endpoint":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Endpoint","description":"Azure OpenAI endpoint"}},"additionalProperties":false,"type":"object","required":["model","provider","endpoint"],"title":"AzureLLMConfig"},"AzureLLMExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default_name":"gpt-4.1"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"azure"},"endpoint":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Endpoint","description":"Azure OpenAI endpoint"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling: only the most likely tokens summing to this probability are considered"},"frequency_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Frequency Penalty","description":"Penalise tokens by how often they already appeared"},"presence_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Presence Penalty","description":"Penalise tokens that already appeared at all"},"seed":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Seed","description":"Seed for best-effort deterministic sampling"}},"additionalProperties":false,"type":"object","required":["model","provider","endpoint"],"title":"AzureLLMExtendedConfig"},"AzureSTTConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"ink-whisper"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"cartesia"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"AzureSTTConfig"},"BatchCallResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"filename":{"type":"string","title":"Filename"},"user_uploaded_file":{"type":"string","title":"User Uploaded File"},"execution_type":{"$ref":"#/components/schemas/ExecutionType"},"processed_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Processed File"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"valid_rows":{"type":"integer","title":"Valid Rows"},"total_rows":{"type":"integer","title":"Total Rows"},"batch_status":{"$ref":"#/components/schemas/BatchStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"execution_status":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Execution Status","description":"Call counts keyed by call status","examples":[{"completed":90,"failed":10}]},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"webhooks":{"items":{"$ref":"#/components/schemas/WebhookSubscriptionList"},"type":"array","title":"Webhooks"}},"type":"object","required":["id","name","filename","user_uploaded_file","execution_type","valid_rows","total_rows","batch_status","created_at"],"title":"BatchCallResponse"},"BatchCreateResponse":{"properties":{"batch_id":{"type":"string","format":"uuid","title":"Batch Id","description":"Created batch UUID"},"name":{"type":"string","title":"Name","description":"Batch name"},"status":{"$ref":"#/components/schemas/BatchStatus","description":"Initial batch status"},"valid_count":{"type":"integer","title":"Valid Count","description":"CSV rows accepted for dialing"},"invalid_count":{"type":"integer","title":"Invalid Count","description":"CSV rows rejected during validation"}},"type":"object","required":["batch_id","name","status","valid_count","invalid_count"],"title":"BatchCreateResponse"},"BatchResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"BatchResponse"},"BatchStatus":{"type":"string","enum":["DRAFT","SCHEDULED","RUNNING","CANCELLED","FINISHED","FAILED"],"title":"BatchStatus"},"BatchTemplateURLResponse":{"properties":{"template_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Url"}},"type":"object","title":"BatchTemplateURLResponse"},"Body_create_batch_api_v1_workspaces__workspace_id__projects__project_id__batches_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id","description":"Agent UUID whose voice configuration handles the batch calls"},"name":{"type":"string","title":"Name","description":"Batch name"},"execution_type":{"$ref":"#/components/schemas/ExecutionType","description":"NOW to start immediately, SCHEDULED to start at scheduled_at"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At","description":"Start time for SCHEDULED batches"},"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id","description":"Phone number UUID used as caller ID"},"telephony_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Provider","description":"Telephony provider (twilio | plivo | exotel)"},"webhook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook","description":"Inline webhook subscription as a JSON string"}},"type":"object","required":["file","agent_id","name","execution_type"],"title":"Body_create_batch_api_v1_workspaces__workspace_id__projects__project_id__batches_post"},"Body_create_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"name":{"type":"string","title":"Name"},"weekdays":{"type":"string","title":"Weekdays","description":"Comma-separated day names"},"window_start":{"type":"string","format":"time","title":"Window Start"},"window_end":{"type":"string","format":"time","title":"Window End"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id","description":"The agent to call with, or give crew_id"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id","description":"The crew version to call with, or give agent_id"},"timezone":{"type":"string","title":"Timezone","default":"UTC"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"retry_attempts":{"type":"integer","title":"Retry Attempts","default":1},"request_callbacks_enabled":{"type":"boolean","title":"Request Callbacks Enabled","description":"Let the agent book a callback when the person asks for one. Needs the workspace feature.","default":true},"voicemail_detection_enabled":{"type":"boolean","title":"Voicemail Detection Enabled","description":"Detect answering machines on every call, so a voicemail is retried instead of counted as reached. Off follows the agent.","default":false},"transcript_callbacks_enabled":{"type":"boolean","title":"Transcript Callbacks Enabled","description":"Schedule a callback when a call's transcript shows the person asked for later or was cut off. Needs the workspace feature.","default":false},"transcript_callback_delay_minutes":{"type":"integer","title":"Transcript Callback Delay Minutes","description":"Minutes to wait before a transcript callback when the person named no time. One of 30, 60, 120, 240.","default":120},"max_callbacks_per_contact":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Max Callbacks Per Contact","description":"How many callbacks one person can get, both kinds together.","default":3},"max_new_contacts_per_day":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Max New Contacts Per Day","description":"The most people called for the first time in one day. Retries and callbacks to them do not count. Empty: no limit."},"start_mode":{"type":"string","enum":["NOW","SCHEDULED"],"title":"Start Mode","default":"NOW"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start At"},"ends_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ends On","description":"Target end date; see continue_after_end"},"continue_after_end":{"type":"boolean","title":"Continue After End","description":"Keep calling past ends_on. False stops planning at the date and reports contacts that will not be reached.","default":false},"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id"},"telephony_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Provider"},"sizing_basis_seconds":{"type":"integer","title":"Sizing Basis Seconds","description":"Typical call length in seconds. Decides how many calls fit in a calling day, and so how many days the campaign takes.","default":90},"column_mapping":{"type":"string","title":"Column Mapping","description":"JSON object of {prompt_variable: csv_column_header}. Every variable the agent's prompt declares must be mapped.","default":"{}"}},"type":"object","required":["file","name","weekdays","window_start","window_end"],"title":"Body_create_campaign_api_v1_workspaces__workspace_id__projects__project_id__campaigns_post"},"Body_create_knowledge_base_api_v1_workspaces__workspace_id__projects__project_id__knowledge_bases__post":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Urls"},"refresh_interval_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refresh Interval Days"},"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"}},"type":"object","required":["name"],"title":"Body_create_knowledge_base_api_v1_workspaces__workspace_id__projects__project_id__knowledge_bases__post"},"Body_resubmit_compliance_api_v1_workspaces__workspace_id__projects__project_id__compliance__clearance_id__resubmit_post":{"properties":{"data":{"type":"string","title":"Data","description":"JSON string with updated compliance details"},"documents":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Documents"}},"type":"object","required":["data"],"title":"Body_resubmit_compliance_api_v1_workspaces__workspace_id__projects__project_id__compliance__clearance_id__resubmit_post"},"Body_service_create_batch_api_v1_service_projects__project_id__batches_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id","description":"Agent UUID whose voice configuration handles the batch calls"},"name":{"type":"string","title":"Name","description":"Batch name"},"execution_type":{"$ref":"#/components/schemas/ExecutionType","description":"NOW to start immediately, SCHEDULED to start at scheduled_at"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At","description":"Start time for SCHEDULED batches"},"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id","description":"Phone number UUID used as caller ID"},"telephony_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Provider","description":"Telephony provider (twilio | plivo | exotel)"},"webhook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook","description":"Inline webhook subscription as a JSON string"}},"type":"object","required":["file","agent_id","name","execution_type"],"title":"Body_service_create_batch_api_v1_service_projects__project_id__batches_post"},"Body_service_create_knowledge_base_api_v1_service_projects__project_id__knowledge_bases_post":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Urls"},"refresh_interval_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Refresh Interval Days"},"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"}},"type":"object","required":["name"],"title":"Body_service_create_knowledge_base_api_v1_service_projects__project_id__knowledge_bases_post"},"Body_submit_compliance_api_v1_workspaces__workspace_id__projects__project_id__compliance__provider_name__submit_post":{"properties":{"data":{"type":"string","title":"Data","description":"JSON string with compliance details"},"documents":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Documents"}},"type":"object","required":["data"],"title":"Body_submit_compliance_api_v1_workspaces__workspace_id__projects__project_id__compliance__provider_name__submit_post"},"Body_submit_compliance_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace__provider_name__compliance_post":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country"},"number_type":{"type":"string","title":"Number Type"},"end_user_type":{"type":"string","title":"End User Type","default":"business"},"fields":{"type":"string","title":"Fields","default":"{}"},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Url"},"documents":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Documents","default":[]}},"type":"object","required":["country","number_type"],"title":"Body_submit_compliance_api_v1_workspaces__workspace_id__projects__project_id__number_marketplace__provider_name__compliance_post"},"Body_upload_campaign_contacts_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__contacts_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_campaign_contacts_api_v1_workspaces__workspace_id__projects__project_id__campaigns__campaign_id__contacts_post"},"BooleanConstraint":{"properties":{"type":{"type":"string","const":"boolean","title":"Type"},"default":{"type":"boolean","title":"Default"},"value_type":{"type":"string","const":"bool","title":"Value Type"}},"type":"object","required":["type","default","value_type"],"title":"BooleanConstraint"},"CalendarEventTypeListResponse":{"properties":{"event_types":{"items":{"$ref":"#/components/schemas/CalendarEventTypeResponse"},"type":"array","title":"Event Types","description":"Available calendar event types for the provider"},"timezones":{"items":{"$ref":"#/components/schemas/TimezoneTypeResponse"},"type":"array","title":"Timezones","description":"Searchable timezones matching the query"}},"type":"object","required":["event_types","timezones"],"title":"CalendarEventTypeListResponse"},"CalendarEventTypeResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Provider event type identifier"},"title":{"type":"string","title":"Title","description":"Event type title"},"lengthInMinutes":{"type":"integer","title":"Lengthinminutes","description":"Event duration in minutes"}},"type":"object","required":["id","title","lengthInMinutes"],"title":"CalendarEventTypeResponse"},"CalendarProvider":{"type":"string","enum":["calendly","calcom"],"title":"CalendarProvider"},"CallCostBreakdown":{"properties":{"currency":{"type":"string","title":"Currency","default":"USD"},"agents":{"items":{"$ref":"#/components/schemas/AgentCostBreakdown"},"type":"array","title":"Agents"},"post_call":{"items":{"$ref":"#/components/schemas/CostBreakdownItem"},"type":"array","title":"Post Call"},"telephony":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Telephony"},"platform_fee":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Platform Fee"},"billing_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Model"},"total":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Total"}},"type":"object","required":["agents","post_call","telephony"],"title":"CallCostBreakdown","description":"A call's cost per agent and model, beside what belongs to the call.\n\nThe same shape for every call: a single-agent call has one entry in\n``agents``, a crew call one per agent, main agent first."},"CallDirection":{"type":"string","enum":["inbound","outbound"],"title":"CallDirection","description":"Direction of a call."},"CallProvider":{"type":"string","enum":["exotel","plivo","twilio","vobiz"],"title":"CallProvider"},"CallSessionListDataResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"agent_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version"},"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number"},"to_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Number"},"current_status":{"type":"string","title":"Current Status"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"call_direction":{"type":"string","title":"Call Direction"},"call_durations":{"type":"number","title":"Call Durations"},"structured_output":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Output","description":"Variables collected during the call per the agent's structured output schemas","examples":[{"your_variable_name":"your_value"}]},"custom_attributes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Attributes","description":"Values saved on the call per the agent's custom attributes","examples":[{"user_id":"u-42"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"final_charge":{"type":"number","title":"Final Charge"},"call_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type"},"batch":{"anyOf":[{"$ref":"#/components/schemas/BatchResponse"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Url"},"ended_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ended By"},"termination_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Reason"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"},"fully_billed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fully Billed"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id"},"crew_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crew Name"},"crew_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Crew Version"}},"type":"object","required":["id","agent_name","from_number","to_number","current_status","connected_at","ended_at","call_direction","call_durations","summary","final_charge","call_type"],"title":"CallSessionListDataResponse"},"CallSessionListPage_CallSessionListDataResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CallSessionListDataResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"CallSessionListPage[CallSessionListDataResponse]"},"CallSessionRecordingActionRequest":{"properties":{"action":{"type":"string","enum":["download","play"],"title":"Action","description":"download returns a short-lived download URL, play returns a streamable URL"}},"type":"object","required":["action"],"title":"CallSessionRecordingActionRequest"},"CallSessionRecordingRequest":{"properties":{"call_session_id":{"type":"string","format":"uuid","title":"Call Session Id","description":"Call session UUID to generate a recording URL for"}},"type":"object","required":["call_session_id"],"title":"CallSessionRecordingRequest"},"CallSessionRecordingUrlResponse":{"properties":{"call_session_id":{"type":"string","format":"uuid","title":"Call Session Id","description":"Call session UUID the recording URL belongs to"},"audio_url":{"type":"string","title":"Audio Url","description":"Short-lived URL for the call recording audio"}},"type":"object","required":["call_session_id","audio_url"],"title":"CallSessionRecordingUrlResponse"},"CallSessionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"agent_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Version"},"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number"},"to_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Number"},"sip_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sip Call Id"},"direction":{"type":"string","title":"Direction"},"current_status":{"type":"string","title":"Current Status"},"voicemail_detected":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Voicemail Detected"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"call_durations":{"type":"number","title":"Call Durations"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Url"},"recording_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Url"},"transcript":{"anyOf":[{"items":{"$ref":"#/components/schemas/TranscriptionMessage"},"type":"array"},{"type":"null"}],"title":"Transcript"},"call_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"custom_attributes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Attributes","description":"Values saved on the call per the agent's custom attributes","examples":[{"user_id":"u-42"}]},"final_charge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Charge"},"ended_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ended By"},"termination_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termination Reason"},"billing_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Note"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"},"fully_billed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fully Billed"},"post_call":{"anyOf":[{"$ref":"#/components/schemas/PostCallPipelineStatusResponse"},{"type":"null"}]},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id"},"crew_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crew Name"},"crew_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Crew Version"},"handoff_timeline":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Handoff Timeline"},"cost_breakdown":{"anyOf":[{"$ref":"#/components/schemas/CallCostBreakdown"},{"type":"null"}]}},"type":"object","required":["id","agent_id","agent_name","from_number","to_number","direction","current_status","connected_at","call_durations","ended_at","audio_url","call_type","sentiment","summary","final_charge"],"title":"CallSessionResponse"},"CallStatus":{"type":"string","enum":["initiated","ringing","in_progress","completed","failed","missed"],"title":"CallStatus","description":"Represents the lifecycle state of a call.\n\nOrder matters semantically but is not enforced by DB.\nTransitions are validated at application level."},"CallbackResponse":{"properties":{"message":{"type":"string","title":"Message"},"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"is_active":{"type":"boolean","title":"Is Active"},"is_admin":{"type":"boolean","title":"Is Admin"},"phone_verified":{"type":"boolean","title":"Phone Verified"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","required":["message","access_token","refresh_token","is_active","is_admin","phone_verified","phone_number"],"title":"CallbackResponse"},"CampaignContactStatus":{"type":"string","enum":["PENDING","IN_PROGRESS","COMPLETED","MISSED","FAILED","VOICEMAIL","RESCHEDULED"],"title":"CampaignContactStatus"},"CampaignCreateResponse":{"properties":{"campaign_id":{"type":"string","format":"uuid","title":"Campaign Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"imported":{"type":"integer","title":"Imported"},"invalid":{"type":"integer","title":"Invalid"},"duplicates_in_file":{"type":"integer","title":"Duplicates In File"},"planned_batch_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Planned Batch Count"},"planned_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned End Date"},"unreachable_by_end_date":{"type":"integer","title":"Unreachable By End Date","default":0},"invalid_samples":{"items":{"type":"string"},"type":"array","title":"Invalid Samples"}},"type":"object","required":["campaign_id","name","status","imported","invalid","duplicates_in_file"],"title":"CampaignCreateResponse"},"CampaignDailyStat":{"properties":{"date":{"type":"string","format":"date-time","title":"Date"},"completed":{"type":"integer","title":"Completed","default":0},"missed":{"type":"integer","title":"Missed","default":0},"failed":{"type":"integer","title":"Failed","default":0}},"type":"object","required":["date"],"title":"CampaignDailyStat"},"CampaignProgress":{"properties":{"total":{"type":"integer","title":"Total","default":0},"completed":{"type":"integer","title":"Completed","default":0},"failed":{"type":"integer","title":"Failed","default":0},"pending":{"type":"integer","title":"Pending","default":0}},"type":"object","title":"CampaignProgress"},"CampaignResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"timezone":{"type":"string","title":"Timezone"},"weekdays":{"items":{"type":"string"},"type":"array","title":"Weekdays"},"window_start":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Window Start"},"window_end":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Window End"},"retry_attempts":{"type":"integer","title":"Retry Attempts"},"request_callbacks_enabled":{"type":"boolean","title":"Request Callbacks Enabled","default":true},"voicemail_detection_enabled":{"type":"boolean","title":"Voicemail Detection Enabled","default":false},"transcript_callbacks_enabled":{"type":"boolean","title":"Transcript Callbacks Enabled","default":false},"transcript_callback_delay_minutes":{"type":"integer","title":"Transcript Callback Delay Minutes","default":120},"max_callbacks_per_contact":{"type":"integer","title":"Max Callbacks Per Contact","default":3},"max_new_contacts_per_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max New Contacts Per Day"},"new_contacts_today":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"New Contacts Today"},"sizing_basis_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sizing Basis Seconds"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start At"},"ends_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ends On"},"continue_after_end":{"type":"boolean","title":"Continue After End","default":false},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id"},"crew_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crew Name"},"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"telephony_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Provider"},"campaign_status":{"type":"string","title":"Campaign Status"},"progress":{"$ref":"#/components/schemas/CampaignProgress"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"total_contacts":{"type":"integer","title":"Total Contacts","default":0},"planned_batch_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Planned Batch Count"},"planned_end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned End Date"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","timezone","retry_attempts","campaign_status","created_at"],"title":"CampaignResponse"},"CampaignStartBlockers":{"properties":{"blockers":{"items":{"type":"string"},"type":"array","title":"Blockers"}},"type":"object","title":"CampaignStartBlockers","description":"Why a campaign cannot start yet.\n\nA list, not the first failure: the operator is looking at a form and\nwants to know everything left to fill in, not to discover it one save at\na time."},"CampaignStatsResponse":{"properties":{"totals":{"$ref":"#/components/schemas/CampaignTotals"},"daily":{"items":{"$ref":"#/components/schemas/CampaignDailyStat"},"type":"array","title":"Daily"},"bucket":{"type":"string","enum":["minute","hour","day"],"title":"Bucket","default":"day"},"range":{"type":"string","enum":["today","7d","30d","all"],"title":"Range","default":"all"},"connect_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Connect Rate"},"avg_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Avg Duration Seconds"},"total_duration_seconds":{"type":"integer","title":"Total Duration Seconds","default":0},"billable_minutes":{"type":"number","title":"Billable Minutes","default":0},"attempts_used":{"type":"integer","title":"Attempts Used","default":0},"still_to_call":{"type":"integer","title":"Still To Call","default":0},"calling_now":{"type":"integer","title":"Calling Now","default":0},"callbacks_booked":{"type":"integer","title":"Callbacks Booked","default":0},"next_callback_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Callback At"}},"type":"object","required":["totals"],"title":"CampaignStatsResponse"},"CampaignTotals":{"properties":{"total":{"type":"integer","title":"Total","default":0},"completed":{"type":"integer","title":"Completed","default":0},"missed":{"type":"integer","title":"Missed","default":0},"voicemail":{"type":"integer","title":"Voicemail","default":0},"failed":{"type":"integer","title":"Failed","default":0},"rescheduled":{"type":"integer","title":"Rescheduled","default":0},"pending":{"type":"integer","title":"Pending","default":0}},"type":"object","title":"CampaignTotals"},"CanvasPosition":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"}},"type":"object","required":["x","y"],"title":"CanvasPosition"},"CartesiaSTTConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"ink-whisper"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"cartesia"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"CartesiaSTTConfig"},"CartesiaSTTExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"ink-whisper"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"cartesia"},"keyterm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyterm","description":"Comma-separated terms to boost in transcription"},"turn_end_threshold":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Turn End Threshold","description":"Turn-continuation likelihood below which the turn ends"},"turn_end_timeout_ms":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Turn End Timeout Ms","description":"Ms to wait after speech stops before forcing the turn to end"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"CartesiaSTTExtendedConfig"},"CartesiaTTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"cartesia"},"model":{"type":"string","format":"uuid","title":"Model","default":"sonic-3"},"voice":{"type":"string","title":"Voice","default":"498e7f37-7fa3-4e2c-b8e2-8b6e9276f956"},"speed_rate":{"type":"number","maximum":1.5,"minimum":0.6,"title":"Speed Rate","description":"Optional speed rate","default":1.0}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"CartesiaTTSConfig"},"CartesiaTTSExtendedConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"cartesia"},"model":{"type":"string","format":"uuid","title":"Model","default":"sonic-3"},"voice":{"type":"string","title":"Voice","default":"498e7f37-7fa3-4e2c-b8e2-8b6e9276f956"},"speed_rate":{"type":"number","maximum":1.5,"minimum":0.6,"title":"Speed Rate","description":"Optional speed rate","default":1.0},"volume":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.5},{"type":"null"}],"title":"Volume","description":"Volume multiplier"},"emotion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emotion","description":"Emotion guiding the delivery, e.g. neutral, excited, content"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"CartesiaTTSExtendedConfig"},"CerebrasLLMConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"gpt-oss-120b"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"cerebras"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"CerebrasLLMConfig"},"CerebrasLLMExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"gpt-oss-120b"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"cerebras"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling: only the most likely tokens summing to this probability are considered"},"frequency_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Frequency Penalty","description":"Penalise tokens by how often they already appeared"},"presence_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Presence Penalty","description":"Penalise tokens that already appeared at all"},"seed":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Seed","description":"Seed for best-effort deterministic sampling"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"CerebrasLLMExtendedConfig"},"Channel":{"type":"string","enum":["voice","webchat","whatsapp"],"title":"Channel"},"ComplianceApplicationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"provider":{"type":"string","title":"Provider"},"country":{"type":"string","title":"Country"},"number_type":{"type":"string","title":"Number Type"},"end_user_type":{"type":"string","title":"End User Type"},"status":{"type":"string","title":"Status"},"provider_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"provider_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Ref"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence","default":{}},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Url"}},"type":"object","required":["id","provider","country","number_type","end_user_type","status","created_at","updated_at"],"title":"ComplianceApplicationResponse","description":"Response for compliance application operations."},"ContactBase":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"lists":{"items":{"$ref":"#/components/schemas/ListRef"},"type":"array","title":"Lists"},"custom_fields":{"additionalProperties":true,"type":"object","title":"Custom Fields"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","company","role","lists","custom_fields","source","created_at"],"title":"ContactBase"},"ContactDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"lists":{"items":{"$ref":"#/components/schemas/ListRef"},"type":"array","title":"Lists"},"custom_fields":{"additionalProperties":true,"type":"object","title":"Custom Fields"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"identities":{"items":{"$ref":"#/components/schemas/IdentityOut"},"type":"array","title":"Identities"},"linked_contacts":{"items":{"$ref":"#/components/schemas/LinkedContactOut"},"type":"array","title":"Linked Contacts"}},"type":"object","required":["id","name","company","role","lists","custom_fields","source","created_at","identities","linked_contacts"],"title":"ContactDetail","description":"The person page. `linked_contacts` keep their own profiles; only\ncontext is shared with the primary."},"ContactInput":{"properties":{"name":{"type":"string","maxLength":150,"minLength":1,"title":"Name"},"company":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Company"},"role":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Role"},"phones":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Phones"},"emails":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Emails"},"list_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":50,"title":"List Ids"},"custom_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Custom Fields"}},"type":"object","required":["name"],"title":"ContactInput"},"ContactListInput":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"ContactListInput"},"ContactListOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"member_count":{"type":"integer","title":"Member Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","description","member_count","created_at"],"title":"ContactListOut"},"ContactListPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"}},"type":"object","title":"ContactListPatch"},"ContactPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":150,"minLength":1},{"type":"null"}],"title":"Name"},"company":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Company"},"role":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Role"},"phones":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Phones"},"emails":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Emails"},"list_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":50},{"type":"null"}],"title":"List Ids"},"custom_fields":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Custom Fields"}},"type":"object","title":"ContactPatch"},"ContactSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"lists":{"items":{"$ref":"#/components/schemas/ListRef"},"type":"array","title":"Lists"},"custom_fields":{"additionalProperties":true,"type":"object","title":"Custom Fields"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"identities":{"items":{"$ref":"#/components/schemas/IdentityOut"},"type":"array","title":"Identities"},"linked_count":{"type":"integer","title":"Linked Count"},"has_suggestions":{"type":"boolean","title":"Has Suggestions"}},"type":"object","required":["id","name","company","role","lists","custom_fields","source","created_at","identities","linked_count","has_suggestions"],"title":"ContactSummary","description":"A person in the list: the primary contact, with every identity of its\ngroup (each identity says which contact it belongs to)."},"ConversationChannel":{"type":"string","enum":["webchat","whatsapp","voice"],"title":"ConversationChannel"},"ConversationContact":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id","name"],"title":"ConversationContact"},"ConversationHandler":{"type":"string","enum":["ai","human"],"title":"ConversationHandler","description":"Who answers the customer: the agent, or people from the inbox."},"ConversationStatus":{"type":"string","enum":["open","closed"],"title":"ConversationStatus"},"ConversationSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"person_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Person Id"},"channels":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConversationChannel"},"type":"array"},{"type":"null"}],"title":"Channels"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"call_session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Call Session Id"},"channel":{"$ref":"#/components/schemas/ConversationChannel"},"status":{"$ref":"#/components/schemas/ConversationStatus"},"contact":{"anyOf":[{"$ref":"#/components/schemas/ConversationContact"},{"type":"null"}]},"external_id":{"type":"string","title":"External Id"},"base_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Agent Id"},"last_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Message"},"last_message_at":{"type":"string","format":"date-time","title":"Last Message At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"summary":{"type":"string","title":"Summary","default":""},"message_count":{"type":"integer","title":"Message Count","default":0},"last_message_role":{"anyOf":[{"$ref":"#/components/schemas/MessageRole"},{"type":"null"}]},"handled_by":{"$ref":"#/components/schemas/ConversationHandler","default":"ai"},"assignee":{"anyOf":[{"$ref":"#/components/schemas/MessageAuthor"},{"type":"null"}]},"assigned_to_me":{"type":"boolean","title":"Assigned To Me","default":false},"handover_reason":{"anyOf":[{"$ref":"#/components/schemas/HandoverReason"},{"type":"null"}]},"handover_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handover Note"},"handed_over_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Handed Over At"}},"type":"object","required":["id","channel","status","contact","external_id","base_agent_id","last_message","last_message_at","created_at"],"title":"ConversationSummary","description":"One conversation on one channel. In the inbox list, a person's row:\ntheir first conversation in that tab."},"ConversationThread":{"properties":{"conversations":{"items":{"$ref":"#/components/schemas/ConversationSummary"},"type":"array","title":"Conversations"},"messages":{"items":{"$ref":"#/components/schemas/MessageOut"},"type":"array","title":"Messages"}},"type":"object","required":["conversations","messages"],"title":"ConversationThread","description":"One person across channels: their conversations, newest first, and\nthe messages of all of them, oldest first."},"ConversationUpdate":{"properties":{"handled_by":{"anyOf":[{"$ref":"#/components/schemas/ConversationHandler"},{"type":"null"}]},"assignee_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assignee Id"},"status":{"anyOf":[{"type":"string","const":"closed"},{"type":"null"}],"title":"Status"}},"type":"object","title":"ConversationUpdate","description":"Take over / hand back (handled_by), assign (assignee_id; null\nunassigns), or resolve (status=closed). Send only what changes."},"CopyCodeButton":{"properties":{"type":{"type":"string","const":"COPY_CODE","title":"Type"},"example":{"type":"string","maxLength":20,"minLength":1,"title":"Example"},"text":{"type":"string","title":"Text","default":"Copy offer code"}},"type":"object","required":["type","example"],"title":"CopyCodeButton","description":"Marketing only. Meta names the button; the real code is given per send."},"CostBreakdownItem":{"properties":{"service":{"type":"string","title":"Service"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice"},"metric":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metric"},"unit":{"type":"string","title":"Unit"},"quantity":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Quantity"},"cost":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Cost"}},"type":"object","required":["service","unit","quantity","cost"],"title":"CostBreakdownItem","description":"One service and model's usage, summed over the call (or the post-call work)."},"Country":{"properties":{"name":{"type":"string","title":"Name"},"iso2":{"type":"string","title":"Iso2"},"phone_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Code"},"flag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flag"}},"type":"object","required":["name","iso2","phone_code","flag"],"title":"Country"},"CoverageOut":{"properties":{"category":{"type":"string","title":"Category"},"resist_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Resist Rate"},"checks_run":{"type":"integer","title":"Checks Run"}},"type":"object","required":["category","resist_rate","checks_run"],"title":"CoverageOut","description":"Resist-rate per attack-type category, aggregated across completed runs."},"CreateCampaignDraftPayload":{"properties":{"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"CreateCampaignDraftPayload","description":"Everything a campaign needs to exist: a name.\n\nDeliberately not the create payload with optional fields. A draft is\nstarted from a name and filled in by PATCH, so offering the whole form\nhere would be two ways to do the same thing."},"CreateDefaultAgent":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Agent name"},"agent_type":{"$ref":"#/components/schemas/AgentType","description":"single_prompt | workflow"}},"type":"object","required":["name","agent_type"],"title":"CreateDefaultAgent"},"CreateProjectForWorkspaceRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["workspace_id","name"],"title":"CreateProjectForWorkspaceRequest"},"CreateProjectPayload":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"CreateProjectPayload"},"CreateSessionRequest":{"properties":{"parent_origin":{"type":"string","maxLength":300,"minLength":1,"title":"Parent Origin"},"visitor_id":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{16,64}$"},{"type":"null"}],"title":"Visitor Id"}},"type":"object","required":["parent_origin"],"title":"CreateSessionRequest"},"CreateSessionResponse":{"properties":{"session_token":{"type":"string","title":"Session Token"},"visitor_id":{"type":"string","title":"Visitor Id"},"messages":{"items":{"$ref":"#/components/schemas/SessionMessage"},"type":"array","title":"Messages"},"with_team":{"type":"boolean","title":"With Team","default":false}},"type":"object","required":["session_token","visitor_id","messages"],"title":"CreateSessionResponse"},"CreateUserRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"name":{"type":"string","title":"Name"}},"type":"object","required":["email","name"],"title":"CreateUserRequest"},"CreateWorkspaceForUserRequest":{"properties":{"currency":{"$ref":"#/components/schemas/WorkspaceCurrency","default":"USD"},"fx_rate":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Fx Rate","description":"Local units per 1 USD, fixed for this workspace -- not the market rate. Must be 1 for USD.","default":"1"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["user_id","name"],"title":"CreateWorkspaceForUserRequest"},"CreateWorkspacePayload":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"CreateWorkspacePayload"},"CredentialFieldSchema":{"properties":{"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"type":{"type":"string","enum":["text","password","number","boolean","select"],"title":"Type"},"required":{"type":"boolean","title":"Required","default":true},"placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeholder"},"help_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help Text"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"}},"type":"object","required":["name","label","type"],"title":"CredentialFieldSchema"},"CustomAttribute-Input":{"properties":{"key":{"type":"string","title":"Key","description":"Attribute key saved on the call log"},"type":{"type":"string","enum":["string","number","integer","boolean","object"],"title":"Type"},"source":{"anyOf":[{"type":"string","enum":["dynamic_variable","system_variable","pre_call_tool","on_call_tool","static"]},{"type":"null"}],"title":"Source","description":"Where the value comes from (leaf attributes only)"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Variable name, or 'toolName.path' for tool sources, or a literal for static (leaf attributes only)"},"properties":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAttribute-Input"},"type":"array"},{"type":"null"}],"title":"Properties","description":"Nested attributes for object type"}},"type":"object","required":["key","type"],"title":"CustomAttribute","description":"Agent-defined key saved on each call log; resolved at call end."},"CustomAttribute-Output":{"properties":{"key":{"type":"string","title":"Key","description":"Attribute key saved on the call log"},"type":{"type":"string","enum":["string","number","integer","boolean","object"],"title":"Type"},"source":{"anyOf":[{"type":"string","enum":["dynamic_variable","system_variable","pre_call_tool","on_call_tool","static"]},{"type":"null"}],"title":"Source","description":"Where the value comes from (leaf attributes only)"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Variable name, or 'toolName.path' for tool sources, or a literal for static (leaf attributes only)"},"properties":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomAttribute-Output"},"type":"array"},{"type":"null"}],"title":"Properties","description":"Nested attributes for object type"}},"type":"object","required":["key","type"],"title":"CustomAttribute","description":"Agent-defined key saved on each call log; resolved at call end."},"DayAvailability":{"properties":{"day":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],"title":"Day"},"enabled":{"type":"boolean","title":"Enabled","default":false},"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):([0-5]\\d)$","title":"Start","default":"09:00"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):([0-5]\\d)$","title":"End","default":"17:00"}},"type":"object","required":["day"],"title":"DayAvailability"},"DeclineWorkspaceInvitationPayload":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"token":{"type":"string","minLength":1,"title":"Token"}},"type":"object","required":["workspace_id","token"],"title":"DeclineWorkspaceInvitationPayload"},"DeepgramSTTConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"nova-2"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"deepgram"},"keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keywords","nullable":true}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"DeepgramSTTConfig"},"DeepgramSTTExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"nova-2"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"deepgram"},"keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keywords","nullable":true},"keyterm":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyterm","description":"Comma-separated key terms to boost (Nova-3)"},"endpointing":{"anyOf":[{"type":"integer","maximum":5000.0,"minimum":10.0},{"type":"null"}],"title":"Endpointing","description":"Silence in ms before Deepgram finalises speech"},"utterance_end_ms":{"anyOf":[{"type":"integer","maximum":5000.0,"minimum":1000.0},{"type":"null"}],"title":"Utterance End Ms","description":"Gap in ms between words that ends an utterance"},"smart_format":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"Smart Format","description":"Format numbers, dates and currency"},"numerals":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"Numerals","description":"Write spoken numbers as digits"},"profanity_filter":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"Profanity Filter","description":"Mask profanity in transcripts; on unless turned off"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"DeepgramSTTExtendedConfig"},"DeepgramTTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"deepgram"},"model":{"type":"string","format":"uuid","title":"Model","default":"aura"},"voice":{"type":"string","title":"Voice","default":"aura-2-agathe-fr"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"DeepgramTTSConfig"},"DeepgramTTSExtendedConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"deepgram"},"model":{"type":"string","format":"uuid","title":"Model","default":"aura"},"voice":{"type":"string","title":"Voice","default":"aura-2-agathe-fr"},"speed_rate":{"anyOf":[{"type":"number","maximum":1.5,"minimum":0.7},{"type":"null"}],"title":"Speed Rate","description":"Optional speed rate"},"expressivity":{"anyOf":[{"type":"integer","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Expressivity","description":"Flux expressiveness, from -2 (flat) to 2 (lively)"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"DeepgramTTSExtendedConfig"},"DeleteUserRequest":{"properties":{"user_emails":{"items":{"type":"string","format":"email"},"type":"array","minItems":1,"title":"User Emails"}},"type":"object","required":["user_emails"],"title":"DeleteUserRequest"},"DeleteUserResponse":{"properties":{"deleted_count":{"type":"integer","title":"Deleted Count"},"message":{"type":"string","title":"Message"}},"type":"object","required":["deleted_count","message"],"title":"DeleteUserResponse"},"DirectionAvailability-Input":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"days":{"items":{"$ref":"#/components/schemas/DayAvailability"},"type":"array","title":"Days"},"unavailable_transfer":{"anyOf":[{"$ref":"#/components/schemas/UnavailableTransfer-Input"},{"type":"null"}]}},"type":"object","title":"DirectionAvailability","description":"When enabled is false, that call direction is always available."},"DirectionAvailability-Output":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"days":{"items":{"$ref":"#/components/schemas/DayAvailability"},"type":"array","title":"Days"},"unavailable_transfer":{"anyOf":[{"$ref":"#/components/schemas/UnavailableTransfer-Output"},{"type":"null"}]}},"type":"object","title":"DirectionAvailability","description":"When enabled is false, that call direction is always available."},"ElevenLabsSTTConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"scribe_v2"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"elevenlabs"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"ElevenLabsSTTConfig"},"ElevenLabsSTTExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"scribe_v2"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"elevenlabs"},"keyterms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keyterms","description":"Comma-separated terms to boost in transcription"},"no_verbatim":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"No Verbatim","description":"Drop filler words and false starts"},"vad_silence_threshold_secs":{"anyOf":[{"type":"number","maximum":3.0,"minimum":0.3},{"type":"null"}],"title":"Vad Silence Threshold Secs","description":"Seconds of silence before the turn is committed"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"ElevenLabsSTTExtendedConfig"},"ElevenLabsTTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"elevenlabs"},"model":{"type":"string","format":"uuid","title":"Model","default":"eleven_multilingual_v2"},"voice":{"type":"string","title":"Voice","default":"hpp4J3VqNfWAUOO0d1Us"},"similarity_boost":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Similarity Boost","description":"Optional similarity boost","default":0.7},"style_exaggeration":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Style Exaggeration","description":"Optional style exaggeration","default":0.0},"speed_rate":{"type":"number","maximum":1.2,"minimum":0.7,"title":"Speed Rate","description":"Optional speed rate","default":1.0},"stability":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Stability","description":"Optional stability","default":0.5}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"ElevenLabsTTSConfig"},"ElevenLabsTTSExtendedConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"elevenlabs"},"model":{"type":"string","format":"uuid","title":"Model","default":"eleven_multilingual_v2"},"voice":{"type":"string","title":"Voice","default":"hpp4J3VqNfWAUOO0d1Us"},"similarity_boost":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Similarity Boost","description":"Optional similarity boost","default":0.7},"style_exaggeration":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Style Exaggeration","description":"Optional style exaggeration","default":0.0},"speed_rate":{"type":"number","maximum":1.2,"minimum":0.7,"title":"Speed Rate","description":"Optional speed rate","default":1.0},"stability":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Stability","description":"Optional stability","default":0.5},"use_speaker_boost":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"Use Speaker Boost","description":"Boost similarity to the original speaker"},"apply_text_normalization":{"anyOf":[{"type":"string","enum":["auto","on","off"]},{"type":"null"}],"title":"Apply Text Normalization","description":"Spell out numbers and abbreviations before speaking"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"ElevenLabsTTSExtendedConfig"},"EmbeddedSignupRequest":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id","description":"Optional: the number can be connected first and given an agent later."},"code":{"type":"string","maxLength":2048,"minLength":1,"title":"Code"},"waba_id":{"type":"string","pattern":"^\\d{1,32}$","title":"Waba Id"},"phone_number_id":{"type":"string","pattern":"^\\d{1,32}$","title":"Phone Number Id"}},"type":"object","required":["code","waba_id","phone_number_id"],"title":"EmbeddedSignupRequest","description":"What Meta's signup popup hands the page on FINISH."},"EmbeddedSignupSettings":{"properties":{"app_id":{"type":"string","title":"App Id"},"config_id":{"type":"string","title":"Config Id"},"graph_api_version":{"type":"string","title":"Graph Api Version"}},"type":"object","required":["app_id","config_id","graph_api_version"],"title":"EmbeddedSignupSettings","description":"What the page needs to open the signup popup."},"EnumConstraint":{"properties":{"type":{"type":"string","const":"enum","title":"Type"},"allowed":{"items":{},"type":"array","title":"Allowed"},"default":{"title":"Default"},"value_type":{"type":"string","enum":["int","float","str","bool"],"title":"Value Type"}},"type":"object","required":["type","allowed","default","value_type"],"title":"EnumConstraint"},"ErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"ErrorResponse"},"ExecutionType":{"type":"string","enum":["NOW","SCHEDULED"],"title":"ExecutionType"},"ExtractionMethod":{"type":"string","enum":["ai_extraction","regex_extraction"],"title":"ExtractionMethod"},"FeatureDefinitionResponse":{"properties":{"key":{"type":"string","title":"Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"value_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Type"},"default_value":{"title":"Default Value"},"allowed_values":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Values"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["key"],"title":"FeatureDefinitionResponse"},"FillerPhraseConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Play a short pre-synthesized filler clip immediately after the user's turn ends, to mask LLM time-to-first-token latency","default":false},"confidence_threshold":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence Threshold","description":"Minimum cosine-similarity score to select a non-fallback filler category; below this, general_acknowledgment is used","default":0.6}},"type":"object","title":"FillerPhraseConfig"},"FishAudioTTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"fishaudio"},"model":{"type":"string","format":"uuid","title":"Model","default":"s1"},"voice":{"type":"string","title":"Voice","default":"72b13fac590a482d89b8ea25bb3eb572"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"FishAudioTTSConfig"},"FishAudioTTSExtendedConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"fishaudio"},"model":{"type":"string","format":"uuid","title":"Model","default":"s1"},"voice":{"type":"string","title":"Voice","default":"72b13fac590a482d89b8ea25bb3eb572"},"speed_rate":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.5},{"type":"null"}],"title":"Speed Rate","description":"Optional speed rate"},"prosody_volume":{"anyOf":[{"type":"integer","maximum":20.0,"minimum":-20.0},{"type":"null"}],"title":"Prosody Volume","description":"Volume adjustment in dB"},"latency":{"anyOf":[{"type":"string","enum":["normal","balanced"]},{"type":"null"}],"title":"Latency","description":"balanced trades a little quality for lower latency"},"normalize":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"Normalize","description":"Normalise numbers and text before speaking"},"temperature":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Temperature","description":"Randomness of speech generation"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling for speech generation"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"FishAudioTTSExtendedConfig"},"FixedConstraint":{"properties":{"type":{"type":"string","const":"fixed","title":"Type"},"value":{"title":"Value"},"value_type":{"type":"string","enum":["int","float","str","bool"],"title":"Value Type"}},"type":"object","required":["type","value","value_type"],"title":"FixedConstraint"},"FunctionCallLogResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"call_session_id":{"type":"string","format":"uuid","title":"Call Session Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"function_name":{"type":"string","title":"Function Name"},"function_type":{"type":"string","title":"Function Type"},"run":{"$ref":"#/components/schemas/FunctionCallRun","default":"on_call"},"status":{"type":"string","title":"Status"},"input_params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Params","description":"Arguments the function was invoked with","examples":[{"your_argument_name":"your_value"}]},"output_result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Result","description":"Structured result returned by the function","examples":[{"your_result_key":"your_value"}]},"execution_time_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Execution Time Ms"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"execution_details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Execution Details","description":"Provider-level execution metadata (timings, retries, raw status)","examples":[{"target_number":"+12025551234"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","call_session_id","workspace_id","function_name","function_type","status","created_at"],"title":"FunctionCallLogResponse"},"FunctionCallRun":{"type":"string","enum":["pre_call","on_call"],"title":"FunctionCallRun","description":"When a logged function ran relative to the call."},"FunctionToolCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"function_type":{"$ref":"#/components/schemas/AgentFunctionType","description":"transfer_call | custom_function | check_slot_availability | book_appointment | sound_effect | end_call | agent_transfer"},"trigger":{"$ref":"#/components/schemas/FunctionToolTrigger","description":"on_call | pre_call | both","default":"on_call"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"config":{"additionalProperties":true,"type":"object","title":"Config","description":"Function-type-specific configuration (e.g. transfer destinations, custom HTTP endpoint, calendar event type). Shape depends on function_type.","examples":[{"event_type_id":"123e4567-e89b-12d3-a456-426614174000"}]},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["name","function_type"],"title":"FunctionToolCreate"},"FunctionToolResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"function_type":{"$ref":"#/components/schemas/AgentFunctionType"},"trigger":{"$ref":"#/components/schemas/FunctionToolTrigger","default":"on_call"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"is_active":{"type":"boolean","title":"Is Active"},"config":{"additionalProperties":true,"type":"object","title":"Config","description":"Function-type-specific configuration (e.g. transfer destinations, custom HTTP endpoint, calendar event type). Shape depends on function_type.","examples":[{"event_type_id":"123e4567-e89b-12d3-a456-426614174000"}]},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"channels":{"items":{"$ref":"#/components/schemas/Channel"},"type":"array","title":"Channels","readOnly":true}},"type":"object","required":["id","name","function_type","is_active","created_at","channels"],"title":"FunctionToolResponse"},"FunctionToolTrigger":{"type":"string","enum":["on_call","pre_call","both"],"title":"FunctionToolTrigger","description":"When a function tool runs: before the call, during it, or both."},"FunctionToolUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"function_type":{"anyOf":[{"$ref":"#/components/schemas/AgentFunctionType"},{"type":"null"}]},"trigger":{"anyOf":[{"$ref":"#/components/schemas/FunctionToolTrigger"},{"type":"null"}]},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config","description":"Function-type-specific configuration (e.g. transfer destinations, custom HTTP endpoint, calendar event type). Shape depends on function_type.","examples":[{"event_type_id":"123e4567-e89b-12d3-a456-426614174000"}]},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"additionalProperties":false,"type":"object","title":"FunctionToolUpdate"},"GeminiTTSExtendedConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"google"},"model":{"type":"string","format":"uuid","title":"Model","default":"gemini-2.5-flash-tts"},"voice":{"type":"string","title":"Voice","default":"Kore"},"speed_rate":{"type":"number","maximum":2.0,"minimum":0.5,"title":"Speed Rate","description":"Optional speed rate","default":1.0},"style_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style Prompt","description":"Natural-language direction for tone, pace and delivery"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"GeminiTTSExtendedConfig"},"GenerateScenariosRequest":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instruction"},"count":{"type":"integer","maximum":15.0,"minimum":1.0,"title":"Count","default":5}},"type":"object","required":["agent_id"],"title":"GenerateScenariosRequest"},"GoogleLLMConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"gemini-1.5-pro"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"google"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"GoogleLLMConfig"},"GoogleLLMExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"gemini-1.5-pro"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"google"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling: only the most likely tokens summing to this probability are considered"},"top_k":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Top K","description":"Sample only from the K most likely tokens"},"seed":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Seed","description":"Seed for best-effort deterministic sampling"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"GoogleLLMExtendedConfig"},"GoogleVertexLLMConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"gemini-2.5-flash"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"google-vertex"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"GoogleVertexLLMConfig"},"GoogleVertexLLMExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"gemini-2.5-flash"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"google-vertex"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling: only the most likely tokens summing to this probability are considered"},"top_k":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Top K","description":"Sample only from the K most likely tokens"},"seed":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Seed","description":"Seed for best-effort deterministic sampling"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"GoogleVertexLLMExtendedConfig"},"GoogleVertexSTTConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"chirp_2"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"google-vertex"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"GoogleVertexSTTConfig"},"GoogleVertexSTTExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"chirp_2"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"google-vertex"},"enable_automatic_punctuation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"Enable Automatic Punctuation","description":"Add punctuation to transcripts"},"profanity_filter":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"Profanity Filter","description":"Mask profanity in transcripts"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"GoogleVertexSTTExtendedConfig"},"GoogleVertexTTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"google-vertex"},"model":{"type":"string","format":"uuid","title":"Model","default":"chirp_3"},"voice":{"type":"string","title":"Voice","default":"en-AU-Chirp3-HD-Achernar"},"speed_rate":{"type":"number","maximum":4.0,"minimum":0.25,"title":"Speed Rate","description":"Optional speaking rate","default":1.0}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"GoogleVertexTTSConfig"},"GoogleVertexTTSExtendedConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"google-vertex"},"model":{"type":"string","format":"uuid","title":"Model","default":"chirp_3"},"voice":{"type":"string","title":"Voice","default":"en-AU-Chirp3-HD-Achernar"},"speed_rate":{"type":"number","maximum":4.0,"minimum":0.25,"title":"Speed Rate","description":"Optional speaking rate","default":1.0},"style_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style Prompt","description":"Natural-language direction for tone, pace and delivery"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"GoogleVertexTTSExtendedConfig"},"GroqLLMConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"llama-3.3-70b-versatile"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"groq"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["low","medium","high","default"]},{"type":"null"}],"title":"Reasoning Effort","description":"Reasoning effort level for Groq models (low | medium | high)"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"GroqLLMConfig"},"GroqLLMExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"llama-3.3-70b-versatile"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"groq"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["none","default","low","medium","high"]},{"type":"null"}],"title":"Reasoning Effort","description":"Reasoning effort level for Groq reasoning models"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling: only the most likely tokens summing to this probability are considered"},"seed":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Seed","description":"Seed for best-effort deterministic sampling"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"GroqLLMExtendedConfig"},"GroqSTTExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"whisper-large-v3-turbo"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"groq"},"transcription_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcription Prompt","description":"Text that primes the transcriber with expected vocabulary or style"},"temperature":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Temperature","description":"Sampling temperature for transcription"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"GroqSTTExtendedConfig"},"GroqTTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"groq"},"model":{"type":"string","format":"uuid","title":"Model","default":"canopylabs/orpheus-v1-english"},"voice":{"type":"string","title":"Voice","default":"autumn"},"speed_rate":{"type":"number","maximum":2.0,"minimum":0.5,"title":"Speed Rate","description":"Optional speed rate","default":1.0}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"GroqTTSConfig"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandoverReason":{"type":"string","enum":["asked_for_person","ai_unsure","sensitive","frustrated","taken_over","auto_reply_off"],"title":"HandoverReason","description":"Why a conversation needs a person. The first four come from the AI's\nhand_over_to_team tool."},"IVRNavigationConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Enable IVR navigation mode","default":false},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal","description":"Navigation goal for the IVR system (required when enabled)"}},"type":"object","title":"IVRNavigationConfig","description":"Configuration for IVR navigation mode."},"IdentityInput":{"properties":{"kind":{"$ref":"#/components/schemas/IdentityKind"},"value":{"type":"string","maxLength":320,"minLength":1,"title":"Value"},"system":{"type":"string","maxLength":64,"title":"System","default":""}},"type":"object","required":["kind","value"],"title":"IdentityInput"},"IdentityKind":{"type":"string","enum":["phone","whatsapp","email","webchat","instagram","linkedin","external","custom"],"title":"IdentityKind","description":"How a contact can be addressed. A new channel adds a kind, not a column."},"IdentityOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"kind":{"$ref":"#/components/schemas/IdentityKind"},"system":{"type":"string","title":"System"},"value":{"type":"string","title":"Value"},"status":{"$ref":"#/components/schemas/IdentityStatus"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"linked_at":{"type":"string","format":"date-time","title":"Linked At"}},"type":"object","required":["id","contact_id","kind","system","value","status","source","linked_at"],"title":"IdentityOut"},"IdentityPatch":{"properties":{"status":{"$ref":"#/components/schemas/IdentityStatus"}},"type":"object","required":["status"],"title":"IdentityPatch"},"IdentityStatus":{"type":"string","enum":["verified","claimed"],"title":"IdentityStatus","description":"verified: proven by the channel (they called or messaged from it, OTP).\nclaimed: given to us but unproven (uploaded, typed, extracted).\n\nOnly a verified identity may attach a new interaction to an existing\ncontact; a claimed one can only raise a merge suggestion."},"ImportPayload":{"properties":{"rows":{"items":{"$ref":"#/components/schemas/ImportRow"},"type":"array","maxItems":5000,"title":"Rows"},"mode":{"type":"string","enum":["fill_blanks","update","new_only"],"title":"Mode","default":"fill_blanks"},"list_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":20,"title":"List Ids"},"new_list_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"New List Name"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","required":["rows"],"title":"ImportPayload"},"ImportResult":{"properties":{"created":{"type":"integer","title":"Created"},"updated":{"type":"integer","title":"Updated"},"unchanged":{"type":"integer","title":"Unchanged"},"skipped":{"type":"integer","title":"Skipped"},"suggestions":{"type":"integer","title":"Suggestions"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","required":["created","updated","unchanged","skipped","suggestions"],"title":"ImportResult"},"ImportRow":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Name"},"company":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Company"},"role":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Role"},"phones":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Phones"},"emails":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Emails"},"lists":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Lists"},"custom_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Custom Fields"}},"type":"object","title":"ImportRow"},"InboxCounts":{"properties":{"needs_you":{"type":"integer","title":"Needs You"},"mine":{"type":"integer","title":"Mine"},"ai":{"type":"integer","title":"Ai"}},"type":"object","required":["needs_you","mine","ai"],"title":"InboxCounts"},"InitiateCallRequest":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id","description":"Agent UUID whose voice configuration handles the call. Give this or crew_id.","examples":["123e4567-e89b-12d3-a456-426614174000"]},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id","description":"Crew version id; the call starts on its main agent. Give this or agent_id."},"target_region":{"anyOf":[{"type":"string","pattern":"^[a-z]{2}(?:-[a-z0-9]+)+-[0-9]+$"},{"type":"null"}],"title":"Target Region","description":"AWS region whose bifrost runners should take the call; defaults to the platform region","examples":["ap-south-1"]},"destination_number":{"type":"string","title":"Destination Number","description":"Destination phone number in E.164 format","examples":["+12025551234"]},"telephony_provider":{"$ref":"#/components/schemas/CallProvider","description":"Telephony provider used to place the call","examples":["twilio"]},"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number","description":"Caller ID number in E.164 format. Required when is_platform_number is false; must be omitted when is_platform_number is true.","examples":["+12025550123"]},"is_platform_number":{"type":"boolean","title":"Is Platform Number","description":"Indicates if the destination number is a platform-managed number","default":false},"dynamic_variables":{"additionalProperties":{"type":"string"},"type":"object","title":"Dynamic Variables","description":"Dynamic prompt variables injected into the agent's prompt and welcome message. Keys must exactly match the agent's {{variable}} placeholders.","examples":[{"your_variable_name":"your_value"}]},"override_availability":{"type":"boolean","title":"Override Availability","description":"Allow outbound call even when the agent is outside its availability window","default":false}},"type":"object","required":["destination_number","telephony_provider"],"title":"InitiateCallRequest"},"IntegrationCatalogCategory":{"properties":{"category_key":{"type":"string","title":"Category Key"},"category_name":{"type":"string","title":"Category Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"providers":{"items":{"$ref":"#/components/schemas/IntegrationCatalogProvider"},"type":"array","title":"Providers"}},"type":"object","required":["category_key","category_name"],"title":"IntegrationCatalogCategory"},"IntegrationCatalogProvider":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"integration_name":{"type":"string","title":"Integration Name"},"display_name":{"type":"string","title":"Display Name"},"type":{"$ref":"#/components/schemas/IntegrationType"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logourl"},"consoleUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consoleurl"}},"type":"object","required":["id","integration_name","display_name","type"],"title":"IntegrationCatalogProvider"},"IntegrationCatalogResponse":{"properties":{"integrations":{"items":{"$ref":"#/components/schemas/IntegrationCatalogCategory"},"type":"array","title":"Integrations"}},"type":"object","title":"IntegrationCatalogResponse"},"IntegrationCredentialListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"is_active":{"type":"boolean","title":"Is Active"},"credentials":{"additionalProperties":true,"type":"object","title":"Credentials","description":"Credential payload. Shape depends on the integration type (e.g. {api_key} for API-key integrations, provider account fields for telephony integrations).","examples":[{"api_key":"sk-..."}]},"integration":{"$ref":"#/components/schemas/IntegrationInfoResponse"}},"type":"object","required":["id","label","is_active","credentials","integration"],"title":"IntegrationCredentialListResponse"},"IntegrationCredentialRequest":{"properties":{"integration_id":{"type":"string","format":"uuid","title":"Integration Id"},"label":{"type":"string","title":"Label"},"credentials":{"additionalProperties":true,"type":"object","title":"Credentials","description":"Credential payload. Shape depends on the integration type (e.g. {api_key} for API-key integrations, provider account fields for telephony integrations).","examples":[{"api_key":"sk-..."}]},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["integration_id","label","credentials"],"title":"IntegrationCredentialRequest"},"IntegrationCredentialResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"is_active":{"type":"boolean","title":"Is Active"},"credentials":{"additionalProperties":true,"type":"object","title":"Credentials","description":"Credential payload. Shape depends on the integration type (e.g. {api_key} for API-key integrations, provider account fields for telephony integrations).","examples":[{"api_key":"sk-..."}]},"integration":{"$ref":"#/components/schemas/IntegrationInfoResponse"}},"type":"object","required":["id","label","is_active","credentials","integration"],"title":"IntegrationCredentialResponse"},"IntegrationCredentialSchema":{"properties":{"fields":{"items":{"$ref":"#/components/schemas/CredentialFieldSchema"},"type":"array","title":"Fields"}},"type":"object","required":["fields"],"title":"IntegrationCredentialSchema"},"IntegrationCredentialUpdateRequest":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"credentials":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Credentials","description":"Credential payload. Shape depends on the integration type (e.g. {api_key} for API-key integrations, provider account fields for telephony integrations).","examples":[{"api_key":"sk-..."}]},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"IntegrationCredentialUpdateRequest"},"IntegrationDefaultItemResponse":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/IntegrationType"}},"type":"object","required":["id","name","type"],"title":"IntegrationDefaultItemResponse"},"IntegrationDefinitionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/IntegrationType"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logourl"},"consoleUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consoleurl"},"schema":{"anyOf":[{"$ref":"#/components/schemas/IntegrationCredentialSchema"},{"$ref":"#/components/schemas/ServerCredentialSchemaResponse"}],"title":"Schema"}},"type":"object","required":["id","name","type","schema"],"title":"IntegrationDefinitionResponse"},"IntegrationInfoResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/IntegrationType"}},"type":"object","required":["id","name","type"],"title":"IntegrationInfoResponse"},"IntegrationLanguageDefaultResponse":{"properties":{"provider":{"$ref":"#/components/schemas/IntegrationDefaultItemResponse"},"model":{"$ref":"#/components/schemas/IntegrationDefaultItemResponse"},"voice":{"anyOf":[{"$ref":"#/components/schemas/IntegrationDefaultItemResponse"},{"type":"null"}]}},"type":"object","required":["provider","model"],"title":"IntegrationLanguageDefaultResponse"},"IntegrationListItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/IntegrationType"}},"type":"object","required":["id","name","type"],"title":"IntegrationListItemResponse"},"IntegrationListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/IntegrationType"}},"type":"object","required":["id","name","type"],"title":"IntegrationListResponse"},"IntegrationModelResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/IntegrationType"},"tag_metadata":{"additionalProperties":true,"type":"object","title":"Tag Metadata"}},"type":"object","required":["id","name","type"],"title":"IntegrationModelResponse"},"IntegrationType":{"type":"string","enum":["ai_provider","telephony","calendar","server_credential","object_storage"],"title":"IntegrationType","description":"Top-level grouping for UI and business logic routing."},"KBDiscoverRequest":{"properties":{"url":{"type":"string","minLength":1,"title":"Url","description":"Root URL to discover internal pages from"}},"type":"object","required":["url"],"title":"KBDiscoverRequest"},"KBDiscoverResponse":{"properties":{"root_url":{"type":"string","title":"Root Url"},"pages_found":{"items":{"type":"string"},"type":"array","title":"Pages Found"},"total_found":{"type":"integer","title":"Total Found"}},"type":"object","required":["root_url","pages_found","total_found"],"title":"KBDiscoverResponse"},"KeypadInputDetectionConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Enable DTMF keypad input detection during a call","default":false},"timeout_secs":{"type":"number","maximum":30.0,"minimum":0.5,"title":"Timeout Secs","description":"Seconds of no keypad input after which the agent responds","default":2.0},"termination_key_enabled":{"type":"boolean","title":"Termination Key Enabled","description":"Respond immediately when the user presses the termination key","default":false},"termination_key":{"type":"string","title":"Termination Key","description":"Key that ends digit collection immediately (0-9, #, *)","default":"#"},"digit_limit_enabled":{"type":"boolean","title":"Digit Limit Enabled","description":"Respond immediately once the configured number of digits is entered","default":false},"digit_limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Digit Limit","description":"Number of digits after which the agent responds immediately","default":5}},"type":"object","title":"KeypadInputDetectionConfig","description":"Configuration for DTMF keypad input detection during a call."},"KnowledgeBaseCreateResponse":{"properties":{"knowledge_base":{"$ref":"#/components/schemas/KnowledgeBaseResponse"},"failed_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Failed Urls"},"successful_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Successful Urls"},"type":{"type":"string","title":"Type"}},"type":"object","required":["knowledge_base","type"],"title":"KnowledgeBaseCreateResponse"},"KnowledgeBaseResponse":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"string","format":"uuid","title":"Id"},"is_active":{"type":"boolean","title":"Is Active","description":"Whether the knowledge base is active or archived"},"status":{"type":"string","title":"Status","description":"Ingestion lifecycle: pending | processing | ready | failed | cancelled","default":"ready"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","id","created_at","updated_at"],"title":"KnowledgeBaseResponse"},"KnowledgeBaseSingleResponse":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"string","format":"uuid","title":"Id"},"is_active":{"type":"boolean","title":"Is Active","description":"Whether the knowledge base is active or archived"},"status":{"type":"string","title":"Status","description":"Ingestion lifecycle: pending | processing | ready | failed | cancelled","default":"ready"},"ingestion_meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ingestion Meta","description":"URL ingestion outcome: {failed_urls, successful_urls, embedded_chars}","examples":[{"embedded_chars":1200,"failed_urls":[],"successful_urls":["https://example.com"]}]},"successful_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Successful Urls","description":"URLs that were crawled and embedded successfully."},"failed_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Failed Urls","description":"URLs that failed to crawl or embed."},"ingestion_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingestion Error","description":"User-facing error when status is failed"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"scraped_pages":{"items":{"$ref":"#/components/schemas/ScrapedPageResponse"},"type":"array","title":"Scraped Pages"}},"type":"object","required":["name","id","created_at","updated_at","scraped_pages"],"title":"KnowledgeBaseSingleResponse"},"KnowledgeBaseSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["id","name"],"title":"KnowledgeBaseSummary"},"KnowledgeBaseUpdateIsActive":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Set knowledge base active status"}},"type":"object","title":"KnowledgeBaseUpdateIsActive"},"LanguageResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"code":{"type":"string","title":"Code"}},"type":"object","required":["id","name","code"],"title":"LanguageResponse"},"LinkPayload":{"properties":{"other_contact_id":{"type":"string","format":"uuid","title":"Other Contact Id"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["other_contact_id"],"title":"LinkPayload"},"LinkedContactOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"lists":{"items":{"$ref":"#/components/schemas/ListRef"},"type":"array","title":"Lists"},"custom_fields":{"additionalProperties":true,"type":"object","title":"Custom Fields"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"identities":{"items":{"$ref":"#/components/schemas/IdentityOut"},"type":"array","title":"Identities"}},"type":"object","required":["id","name","company","role","lists","custom_fields","source","created_at","identities"],"title":"LinkedContactOut"},"ListMembersPayload":{"properties":{"contact_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":1000,"minItems":1,"title":"Contact Ids"}},"type":"object","required":["contact_ids"],"title":"ListMembersPayload"},"ListRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"ListRef"},"LogoutRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"LogoutRequest"},"MeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"is_admin":{"type":"boolean","title":"Is Admin"},"onboarding_tour_progress":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Onboarding Tour Progress"},"last_seen_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Seen Version"}},"type":"object","required":["id","name","email","is_active","is_admin"],"title":"MeResponse"},"MergeSuggestionStatus":{"type":"string","enum":["open","merged","dismissed"],"title":"MergeSuggestionStatus"},"MessageAuthor":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"MessageAuthor"},"MessageMedia":{"properties":{"type":{"type":"string","title":"Type"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"available":{"type":"boolean","title":"Available"}},"type":"object","required":["type","mime_type","available"],"title":"MessageMedia"},"MessageOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"role":{"$ref":"#/components/schemas/MessageRole"},"content":{"type":"string","title":"Content"},"status":{"anyOf":[{"$ref":"#/components/schemas/MessageStatus"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"author":{"anyOf":[{"$ref":"#/components/schemas/MessageAuthor"},{"type":"null"}]},"media":{"anyOf":[{"$ref":"#/components/schemas/MessageMedia"},{"type":"null"}]},"reaction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reaction"}},"type":"object","required":["id","role","content","status","created_at"],"title":"MessageOut"},"MessageRole":{"type":"string","enum":["user","assistant","staff","note","event"],"title":"MessageRole"},"MessageStatus":{"type":"string","enum":["pending","sent","delivered","read","failed"],"title":"MessageStatus","description":"Delivery of an outbound message on a channel that sends separately\n(WhatsApp). Null for inbound messages and streamed webchat replies."},"MistralLLMExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"mistral-small-2603"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"mistral"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling: only the most likely tokens summing to this probability are considered"},"frequency_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Frequency Penalty","description":"Penalise tokens by how often they already appeared"},"presence_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Presence Penalty","description":"Penalise tokens that already appeared at all"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"MistralLLMExtendedConfig"},"ModelComputedTagBadge":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"color":{"type":"string","title":"Color"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"source":{"type":"string","title":"Source"},"status":{"type":"string","title":"Status"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"}},"type":"object","required":["color","source","status"],"title":"ModelComputedTagBadge"},"ModelCreate":{"properties":{"name":{"type":"string","title":"Name"},"model_type":{"$ref":"#/components/schemas/ModelType"},"is_active":{"type":"boolean","title":"Is Active","default":true},"provider_id":{"type":"string","format":"uuid","title":"Provider Id"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"tag_metadata":{"$ref":"#/components/schemas/ModelTagMetadata"}},"type":"object","required":["name","model_type","provider_id"],"title":"ModelCreate"},"ModelGeneralTagBadge":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"color":{"type":"string","title":"Color"},"priority":{"type":"integer","title":"Priority"},"source":{"type":"string","title":"Source"}},"type":"object","required":["key","label","color","priority","source"],"title":"ModelGeneralTagBadge"},"ModelProviderCreate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ModelProviderCreate"},"ModelProviderRead":{"properties":{"name":{"type":"string","title":"Name"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["name","id"],"title":"ModelProviderRead"},"ModelProviderType":{"type":"string","enum":["AI","TELEPHONY"],"title":"ModelProviderType"},"ModelProviderUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"ModelProviderUpdate"},"ModelRead":{"properties":{"name":{"type":"string","title":"Name"},"model_type":{"$ref":"#/components/schemas/ModelType"},"is_active":{"type":"boolean","title":"Is Active","default":true},"provider_id":{"type":"string","format":"uuid","title":"Provider Id"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"tag_metadata":{"$ref":"#/components/schemas/ModelTagMetadata"},"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["name","model_type","provider_id","id"],"title":"ModelRead"},"ModelSchemaResponse":{"properties":{"type":{"type":"string","title":"Type"},"provider":{"type":"string","title":"Provider"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"fields":{"additionalProperties":true,"type":"object","title":"Fields"},"required":{"items":{"type":"string"},"type":"array","title":"Required"}},"type":"object","required":["type","provider","fields","required"],"title":"ModelSchemaResponse"},"ModelTagMetadata":{"properties":{"general":{"items":{"$ref":"#/components/schemas/ModelGeneralTagBadge"},"type":"array","title":"General"},"price":{"$ref":"#/components/schemas/ModelComputedTagBadge"},"latency":{"$ref":"#/components/schemas/ModelComputedTagBadge"}},"type":"object","title":"ModelTagMetadata"},"ModelType":{"type":"string","enum":["llm","stt","tts"],"title":"ModelType"},"ModelUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"model_type":{"anyOf":[{"$ref":"#/components/schemas/ModelType"},{"type":"null"}]},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Id"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"tag_metadata":{"anyOf":[{"$ref":"#/components/schemas/ModelTagMetadata"},{"type":"null"}]}},"type":"object","title":"ModelUpdate"},"ModelVoiceDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"voice_id":{"type":"string","title":"Voice Id"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"voice_metadata":{"additionalProperties":true,"type":"object","title":"Voice Metadata"},"provider_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Id"}},"type":"object","required":["id","name","voice_id","preview_url","gender","accent","voice_metadata"],"title":"ModelVoiceDetailOut"},"ModelVoiceOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"voice_id":{"type":"string","title":"Voice Id"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"accent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["id","name","voice_id","preview_url","gender","accent"],"title":"ModelVoiceOut"},"ModelsDataResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"constraints":{"additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/FixedConstraint"},{"$ref":"#/components/schemas/RangeConstraint"},{"$ref":"#/components/schemas/EnumConstraint"},{"$ref":"#/components/schemas/BooleanConstraint"}],"discriminator":{"propertyName":"type","mapping":{"boolean":"#/components/schemas/BooleanConstraint","enum":"#/components/schemas/EnumConstraint","fixed":"#/components/schemas/FixedConstraint","range":"#/components/schemas/RangeConstraint"}}},"type":"object","title":"Constraints"}},"type":"object","required":["id","name","constraints"],"title":"ModelsDataResponse"},"NoiseCancellationFilterType":{"type":"string","enum":["RNN"],"title":"NoiseCancellationFilterType"},"NumberBuyRequest":{"properties":{"number":{"type":"string","title":"Number","description":"Phone number to purchase (E.164 format)"},"clearance_id":{"type":"string","format":"uuid","title":"Clearance Id","description":"ID of an accepted (CLEARED) compliance application"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","description":"ISO 3166-1 alpha-2 country code"},"number_type":{"type":"string","title":"Number Type","description":"Number type (e.g. local, toll_free, mobile)","default":"local"}},"type":"object","required":["number","clearance_id","country"],"title":"NumberBuyRequest","description":"Request body for buying a phone number."},"NumberBuyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"string","title":"Number"},"provider_name":{"type":"string","title":"Provider Name"},"provider_number_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Number Sid"},"monthly_rental_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monthly Rental Rate"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["id","number","provider_name","status","message"],"title":"NumberBuyResponse","description":"Response after successfully purchasing a number."},"NumberClearanceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"provider":{"type":"string","title":"Provider"},"country":{"type":"string","title":"Country"},"number_type":{"type":"string","title":"Number Type"},"end_user_type":{"type":"string","title":"End User Type"},"status":{"type":"string","title":"Status"},"provider_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","provider","country","number_type","end_user_type","status","created_at"],"title":"NumberClearanceResponse"},"NumberClearanceSubmitResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"provider":{"type":"string","title":"Provider"},"country":{"type":"string","title":"Country"},"number_type":{"type":"string","title":"Number Type"},"end_user_type":{"type":"string","title":"End User Type"},"status":{"type":"string","title":"Status"},"provider_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Url"}},"type":"object","required":["id","provider","country","number_type","end_user_type","status","created_at"],"title":"NumberClearanceSubmitResponse"},"NumberReleaseRequest":{"properties":{"phone_number_id":{"type":"string","format":"uuid","title":"Phone Number Id","description":"ID of the phone number to release"}},"type":"object","required":["phone_number_id"],"title":"NumberReleaseRequest","description":"Request body for releasing a phone number."},"NumberSearchRequest":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","description":"ISO 3166-1 alpha-2 country code"},"number_type":{"type":"string","title":"Number Type","description":"Number type (e.g. local, toll_free, mobile)","default":"local"},"area_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area Code","description":"Area code / region filter"},"contains":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contains","description":"Pattern to match (e.g. 415)"},"limit":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Limit","description":"Max results per page","default":20}},"type":"object","required":["country"],"title":"NumberSearchRequest","description":"Request body for searching available phone numbers."},"NumberSearchResponse":{"properties":{"numbers":{"items":{"$ref":"#/components/schemas/heimdall__schemas__compliance__AvailableNumberResponse"},"type":"array","title":"Numbers"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["numbers","total"],"title":"NumberSearchResponse","description":"Response for number search."},"OpenAILLMConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"gpt-4.1"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"openai"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"OpenAILLMConfig"},"OpenAILLMExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"gpt-4.1"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"openai"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling: only the most likely tokens summing to this probability are considered"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Reasoning Effort","description":"Reasoning effort for OpenAI reasoning models; defaults to low"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"OpenAILLMExtendedConfig"},"OpenAISTTConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"gpt-4o-mini-transcribe"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"openai"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"OpenAISTTConfig"},"OpenAISTTExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"gpt-4o-mini-transcribe"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"openai"},"transcription_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcription Prompt","description":"Text that primes the transcriber with expected vocabulary or style"},"noise_reduction":{"anyOf":[{"type":"string","enum":["near_field","far_field"]},{"type":"null"}],"title":"Noise Reduction","description":"near_field for headsets, far_field for speakerphones"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"OpenAISTTExtendedConfig"},"OpenAITTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"openai"},"model":{"type":"string","format":"uuid","title":"Model","default":"gpt-4o-mini-tts"},"voice":{"type":"string","title":"Voice","default":"alloy"},"speed_rate":{"type":"number","maximum":4.0,"minimum":0.2,"title":"Speed Rate","description":"Optional speed rate","default":1.0}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"OpenAITTSConfig"},"OpenAITTSExtendedConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"openai"},"model":{"type":"string","format":"uuid","title":"Model","default":"gpt-4o-mini-tts"},"voice":{"type":"string","title":"Voice","default":"alloy"},"speed_rate":{"type":"number","maximum":4.0,"minimum":0.2,"title":"Speed Rate","description":"Optional speed rate","default":1.0},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions","description":"Direction for tone, accent and delivery"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"OpenAITTSExtendedConfig"},"OpenRouterLLMExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default_name":"google/gemma-3-27b-it"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"openrouter"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling: only the most likely tokens summing to this probability are considered"},"frequency_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Frequency Penalty","description":"Penalise tokens by how often they already appeared"},"presence_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Presence Penalty","description":"Penalise tokens that already appeared at all"},"seed":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Seed","description":"Seed for best-effort deterministic sampling"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"OpenRouterLLMExtendedConfig"},"OptimizeRequest":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"scenario_id":{"type":"string","format":"uuid","title":"Scenario Id"},"from_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"From Run Id"},"max_iters":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Max Iters","default":5},"train_count":{"type":"integer","maximum":15.0,"minimum":1.0,"title":"Train Count","default":5},"heldout_count":{"type":"integer","maximum":15.0,"minimum":0.0,"title":"Heldout Count","default":3},"provider_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Uuid"},"model_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Uuid"}},"type":"object","required":["agent_id","scenario_id"],"title":"OptimizeRequest"},"OptimizeRunRequest":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"from_run_id":{"type":"string","format":"uuid","title":"From Run Id"},"max_iters":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Max Iters","default":5},"heldout_count":{"type":"integer","maximum":15.0,"minimum":0.0,"title":"Heldout Count","default":3},"provider_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Uuid"},"model_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Uuid"}},"type":"object","required":["agent_id","from_run_id"],"title":"OptimizeRunRequest","description":"Harden the prompt against a whole prior run at once — every check it ran,\nreusing the exact attacks — producing one proposal."},"OriginateSipCallRequest":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id","description":"Agent UUID whose voice configuration handles the call. Give this or crew_id.","examples":["123e4567-e89b-12d3-a456-426614174000"]},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id","description":"Crew version id; the call starts on its main agent. Give this or agent_id."},"target_region":{"anyOf":[{"type":"string","pattern":"^[a-z]{2}(?:-[a-z0-9]+)+-[0-9]+$"},{"type":"null"}],"title":"Target Region","description":"AWS region whose bifrost runners should take the call; defaults to the platform region","examples":["ap-south-1"]},"destination_number":{"type":"string","title":"Destination Number","description":"Destination: E.164 number, extension (1-6 digits) or SIP URI (sip:user@host[:port])","examples":["+12025551234","1001","sip:1001@pbx.example.com"]},"destination_extension":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[0-9#*]+$"},{"type":"null"}],"title":"Destination Extension","description":"Optional extension sent as DTMF digits once the SIP call connects (e.g. to reach a person behind an IVR). Only valid when destination_number is a SIP URI.","examples":["1234"]},"destination_extension_duration":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Destination Extension Duration","description":"Seconds to wait after the call connects before sending destination_extension","default":2},"destination_username":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Destination Username","description":"Optional digest-auth username for the destination SIP server. Only valid when destination_number is a SIP URI.","examples":["agent7"]},"destination_password":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Destination Password","description":"Optional digest-auth password for the destination SIP server. Requires destination_username. Never returned or logged."},"caller_id":{"type":"string","title":"Caller Id","description":"Caller ID phone number in E.164 format. Must be registered in the project with SIP trunk credentials (terminate_uri, sip_user, sip_password).","examples":["+12025550123"]},"timeout":{"type":"integer","title":"Timeout","description":"Reserved client-side timeout hint in milliseconds. Accepted for compatibility; currently unused by the server.","default":30000},"variables":{"additionalProperties":{"type":"string"},"type":"object","title":"Variables","description":"Dynamic prompt variables injected into the agent's prompt and welcome message. Keys must exactly match the agent's {{variable}} placeholders.","examples":[{"your_variable_name":"your_value"}]},"override_availability":{"type":"boolean","title":"Override Availability","description":"Allow the outbound call even when the agent is outside its availability window","default":false}},"type":"object","required":["destination_number","caller_id"],"title":"OriginateSipCallRequest","description":"Request body for POST .../calls/originate (SIP outbound call).","example":{"agent_id":"123e4567-e89b-12d3-a456-426614174000","caller_id":"+12025550123","destination_number":"+12025551234","override_availability":false,"timeout":30000,"variables":{"your_variable_name":"your_value"}}},"OriginateSipCallResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Call session UUID"},"crew_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crew Id","description":"The crew version the call runs, if any"},"status":{"type":"string","title":"Status","description":"Call initiation status","examples":["initiated"]},"destination":{"type":"string","title":"Destination","description":"Destination number the call was placed to"},"created_at":{"type":"string","title":"Created At","description":"ISO-8601 timestamp of call creation"}},"type":"object","required":["id","status","destination","created_at"],"title":"OriginateSipCallResponse","description":"Response for POST .../calls/originate."},"Page_APIKeyListResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/APIKeyListResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[APIKeyListResponse]"},"Page_AdminCallPricingResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminCallPricingResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AdminCallPricingResponse]"},"Page_AdminIntegrationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminIntegrationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AdminIntegrationResponse]"},"Page_AdminProjectMemberResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminProjectMemberResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AdminProjectMemberResponse]"},"Page_AdminProjectResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminProjectResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AdminProjectResponse]"},"Page_AdminTransactionResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminTransactionResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AdminTransactionResponse]"},"Page_AdminUserResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminUserResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AdminUserResponse]"},"Page_AdminWorkspaceMemberResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminWorkspaceMemberResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AdminWorkspaceMemberResponse]"},"Page_AdminWorkspaceResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminWorkspaceResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AdminWorkspaceResponse]"},"Page_AgentList_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentList"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AgentList]"},"Page_AgentVersionListItem_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentVersionListItem"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[AgentVersionListItem]"},"Page_BatchCallResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BatchCallResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[BatchCallResponse]"},"Page_CallSessionListDataResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CallSessionListDataResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[CallSessionListDataResponse]"},"Page_ComplianceApplicationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ComplianceApplicationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ComplianceApplicationResponse]"},"Page_ContactSummary_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContactSummary"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ContactSummary]"},"Page_ConversationSummary_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ConversationSummary"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ConversationSummary]"},"Page_Country_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Country"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[Country]"},"Page_FunctionCallLogResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FunctionCallLogResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[FunctionCallLogResponse]"},"Page_FunctionToolResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FunctionToolResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[FunctionToolResponse]"},"Page_IntegrationCredentialListResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IntegrationCredentialListResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[IntegrationCredentialListResponse]"},"Page_IntegrationListItemResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IntegrationListItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[IntegrationListItemResponse]"},"Page_IntegrationListResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IntegrationListResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[IntegrationListResponse]"},"Page_IntegrationModelResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IntegrationModelResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[IntegrationModelResponse]"},"Page_KnowledgeBaseResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/KnowledgeBaseResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[KnowledgeBaseResponse]"},"Page_LanguageResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LanguageResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[LanguageResponse]"},"Page_ModelVoiceOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ModelVoiceOut"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ModelVoiceOut]"},"Page_PhoneNumberList_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PhoneNumberList"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[PhoneNumberList]"},"Page_PhoneNumberResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PhoneNumberResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[PhoneNumberResponse]"},"Page_ProjectResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProjectResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ProjectResponse]"},"Page_ProviderDefaultItemResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProviderDefaultItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ProviderDefaultItemResponse]"},"Page_ProviderListItemResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProviderListItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ProviderListItemResponse]"},"Page_ProviderModels_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProviderModels"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[ProviderModels]"},"Page_SecretKeyListItem_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SecretKeyListItem"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[SecretKeyListItem]"},"Page_TemplateOut_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TemplateOut"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[TemplateOut]"},"Page_WalletTransaction_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WalletTransaction"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WalletTransaction]"},"Page_WebhookDeliveryLogResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WebhookDeliveryLogResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WebhookDeliveryLogResponse]"},"Page_WebhookSubscriptionListResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WebhookSubscriptionListResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WebhookSubscriptionListResponse]"},"Page_WhatsappConfigResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WhatsappConfigResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WhatsappConfigResponse]"},"Page_WorkspaceInvitationListItemResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkspaceInvitationListItemResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WorkspaceInvitationListItemResponse]"},"Page_WorkspaceMemberResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkspaceMemberResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WorkspaceMemberResponse]"},"Page_WorkspaceResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkspaceResponse"},"type":"array","title":"Items"},"total":{"type":"integer","minimum":0.0,"title":"Total"},"page":{"type":"integer","minimum":1.0,"title":"Page"},"size":{"type":"integer","minimum":1.0,"title":"Size"},"pages":{"type":"integer","minimum":0.0,"title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[WorkspaceResponse]"},"PhoneButton":{"properties":{"type":{"type":"string","const":"PHONE_NUMBER","title":"Type"},"text":{"type":"string","maxLength":25,"minLength":1,"title":"Text"},"phone_number":{"type":"string","maxLength":20,"minLength":1,"title":"Phone Number"}},"type":"object","required":["type","text","phone_number"],"title":"PhoneButton"},"PhoneNumberCreate":{"properties":{"number":{"type":"string","maxLength":32,"minLength":1,"title":"Number","description":"Phone number"},"provider_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Provider Name","description":"Optional name for the phone number"},"sip_user":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Sip User","description":"SIP username"},"sip_password":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Sip Password","description":"SIP password (will be encrypted)"},"terminate_uri":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Terminate Uri","description":"Termination URI"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id","description":"Associated inbound agent UUID"},"outbound_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Outbound Agent Id","description":"Associated outbound agent UUID"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id","description":"Crew version id that answers inbound calls, on its main agent; instead of agent_id."},"outbound_crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Outbound Crew Id","description":"Crew version id for outbound calls from this number; instead of outbound_agent_id."},"type":{"$ref":"#/components/schemas/PhoneNumberType"}},"type":"object","required":["number","type"],"title":"PhoneNumberCreate","description":"Schema for creating a new phone number"},"PhoneNumberList":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"string","title":"Number"}},"type":"object","required":["id","number"],"title":"PhoneNumberList","description":"Schema for listing phone numbers paginated response"},"PhoneNumberResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"number":{"type":"string","title":"Number"},"is_active":{"type":"boolean","title":"Is Active"},"is_rented":{"type":"boolean","title":"Is Rented","default":false},"released_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Released At"},"suspended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Suspended At"},"provider_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Name"},"type":{"$ref":"#/components/schemas/PhoneNumberType"},"sip_user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sip User"},"terminate_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terminate Uri"},"is_registered":{"$ref":"#/components/schemas/PhoneNumberSIPRegistrationStatus","default":"f"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"outbound_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Outbound Agent Id"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id"},"crew_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crew Name"},"outbound_crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Outbound Crew Id"},"outbound_crew_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outbound Crew Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","user_id","number","is_active","type","created_at","updated_at"],"title":"PhoneNumberResponse","description":"Schema for phone number response"},"PhoneNumberSIPRegistrationStatus":{"type":"string","enum":["f","o","t"],"title":"PhoneNumberSIPRegistrationStatus"},"PhoneNumberSyncRequest":{"properties":{"provider_name":{"$ref":"#/components/schemas/CallProvider","description":"Provider name (e.g., 'exotel')"}},"type":"object","required":["provider_name"],"title":"PhoneNumberSyncRequest","description":"Schema for manually syncing phone numbers by provider."},"PhoneNumberType":{"type":"string","enum":["SIP","TELEPHONY"],"title":"PhoneNumberType"},"PhoneNumberUpdate":{"properties":{"number":{"anyOf":[{"type":"string","maxLength":32,"minLength":1},{"type":"null"}],"title":"Number","description":"Phone number"},"provider_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Provider Name","description":"Optional name for the phone number"},"sip_user":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Sip User","description":"SIP username"},"sip_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sip Password","description":"SIP password (will be encrypted)"},"terminate_uri":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Terminate Uri","description":"Termination URI"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id","description":"Associated inbound agent UUID"},"outbound_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Outbound Agent Id","description":"Associated outbound agent UUID"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id","description":"Crew version id that answers inbound calls, on its main agent; instead of agent_id. Setting one clears agent_id, and setting agent_id clears this."},"outbound_crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Outbound Crew Id","description":"Crew version id for outbound calls from this number; instead of outbound_agent_id. Setting one clears outbound_agent_id, and setting outbound_agent_id clears this."},"type":{"anyOf":[{"$ref":"#/components/schemas/PhoneNumberType"},{"type":"null"}]},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"PhoneNumberUpdate","description":"Schema for updating a phone number"},"PhoneOTPRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"country_code":{"type":"string","title":"Country Code"}},"type":"object","required":["phone_number","country_code"],"title":"PhoneOTPRequest"},"PhoneVerificationRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"otp":{"type":"string","title":"Otp"}},"type":"object","required":["phone_number","otp"],"title":"PhoneVerificationRequest"},"PlatformCredentialStatus":{"type":"string","enum":["not_set","active","inactive"],"title":"PlatformCredentialStatus"},"PostCallJobStatus":{"type":"string","enum":["PENDING","RUNNING","DONE","FAILED"],"title":"PostCallJobStatus"},"PostCallPipelineStatusResponse":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/PostCallJobStatus"},{"type":"null"}]},"stages":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Stages","description":"Post-call pipeline stage completion flags keyed by stage name","examples":[{"billing_done":false,"summary_done":true}]},"result":{"additionalProperties":true,"type":"object","title":"Result","description":"Post-call pipeline stage results keyed by stage name","examples":[{"summary":"Billing enquiry resolved"}]},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","title":"PostCallPipelineStatusResponse","description":"Current durable post-call pipeline state for frontend progress UI."},"PricingPreviewResponse":{"properties":{"llm_cost":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Llm Cost","description":"Estimated cost for LLM usage"},"stt_cost":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Stt Cost","description":"Estimated cost for STT usage"},"tts_cost":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Tts Cost","description":"Estimated cost for TTS usage"},"platform_cost":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Platform Cost","description":"Estimated platform margin"},"total_cost":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Total Cost","description":"Total estimated cost for the agent configuration"},"is_fixed_rate":{"type":"boolean","title":"Is Fixed Rate","description":"True when the workspace pays one all-in rate per minute. The per-component costs are then what the call costs US, not what the customer is charged -- only total_cost is their price.","default":false}},"type":"object","required":["llm_cost","stt_cost","tts_cost","platform_cost","total_cost"],"title":"PricingPreviewResponse"},"ProjectMemberResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"}},"type":"object","required":["user_id","name","email","joined_at"],"title":"ProjectMemberResponse"},"ProjectResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"is_default":{"type":"boolean","title":"Is Default"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"}},"type":"object","required":["id","name","is_default","created_at","created_by"],"title":"ProjectResponse"},"ProposalOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"run_id":{"type":"string","format":"uuid","title":"Run Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"baseline_prompt":{"type":"string","title":"Baseline Prompt"},"proposed_prompt":{"type":"string","title":"Proposed Prompt"},"baseline_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Baseline Score"},"proposed_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Proposed Score"},"heldout_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Heldout Score"},"status":{"type":"string","title":"Status"},"history":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"History"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","run_id","agent_id","baseline_prompt","proposed_prompt","baseline_score","proposed_score","heldout_score","status","history","created_at"],"title":"ProposalOut"},"ProposalSummaryOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"run_id":{"type":"string","format":"uuid","title":"Run Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"baseline_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Baseline Score"},"proposed_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Proposed Score"},"heldout_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Heldout Score"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","run_id","agent_id","baseline_score","proposed_score","heldout_score","status","created_at"],"title":"ProposalSummaryOut","description":"Lightweight proposal row for the dashboard (no prompts/history)."},"ProviderCapabilities":{"properties":{"provider":{"type":"string","title":"Provider"},"enabled":{"type":"boolean","title":"Enabled"},"description":{"type":"string","title":"Description"},"countries":{"items":{"$ref":"#/components/schemas/ProviderCountry"},"type":"array","title":"Countries"}},"type":"object","required":["provider","enabled","description","countries"],"title":"ProviderCapabilities","description":"What a supplier can sell. Drives the buying screen with no UI changes."},"ProviderCidrsUpdate":{"properties":{"cidrs":{"items":{"type":"string","format":"ipv4network"},"type":"array","maxItems":20,"title":"Cidrs"},"version":{"type":"integer","minimum":1.0,"title":"Version"}},"type":"object","required":["cidrs","version"],"title":"ProviderCidrsUpdate"},"ProviderCountry":{"properties":{"iso":{"type":"string","title":"Iso"},"number_types":{"items":{"type":"string"},"type":"array","title":"Number Types"}},"type":"object","required":["iso","number_types"],"title":"ProviderCountry"},"ProviderDefaultItemResponse":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/ModelProviderType"}},"type":"object","required":["id","name","type"],"title":"ProviderDefaultItemResponse"},"ProviderLanguageDefaultResponse":{"properties":{"provider":{"$ref":"#/components/schemas/ProviderDefaultItemResponse"},"model":{"$ref":"#/components/schemas/ProviderDefaultItemResponse"},"voice":{"anyOf":[{"$ref":"#/components/schemas/ProviderDefaultItemResponse"},{"type":"null"}]}},"type":"object","required":["provider","model"],"title":"ProviderLanguageDefaultResponse"},"ProviderListItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"ProviderListItemResponse"},"ProviderModels":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string"}],"title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/ModelProviderType"},"tag_metadata":{"$ref":"#/components/schemas/ModelTagMetadata"}},"type":"object","required":["id","name","type"],"title":"ProviderModels"},"PurchasedPhoneNumberResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"number":{"type":"string","title":"Number"},"is_active":{"type":"boolean","title":"Is Active"},"is_rented":{"type":"boolean","title":"Is Rented"},"monthly_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Monthly Price"},"provider_number_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Number Sid"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","number","is_active","is_rented","created_at"],"title":"PurchasedPhoneNumberResponse"},"QuickReplyButton":{"properties":{"type":{"type":"string","const":"QUICK_REPLY","title":"Type"},"text":{"type":"string","maxLength":25,"minLength":1,"title":"Text"}},"type":"object","required":["type","text"],"title":"QuickReplyButton"},"RangeConstraint":{"properties":{"type":{"type":"string","const":"range","title":"Type"},"min":{"type":"number","title":"Min"},"max":{"type":"number","title":"Max"},"default":{"type":"number","title":"Default"},"value_type":{"type":"string","enum":["int","float"],"title":"Value Type"}},"type":"object","required":["type","min","max","default","value_type"],"title":"RangeConstraint"},"RecallCallResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"New call session UUID (absent when recall is skipped)"},"status":{"type":"string","title":"Status","description":"initiated when the recall call was placed, skipped when recall is disabled","examples":["initiated"]},"destination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination","description":"Destination number recalled (absent when skipped)"},"recalled_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recalled From","description":"Original call session UUID (absent when skipped)"}},"additionalProperties":true,"type":"object","required":["status"],"title":"RecallCallResponse","description":"Response for POST .../call-sessions/{call_session_id}/recall."},"RefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshRequest"},"RefreshResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"}},"type":"object","required":["access_token"],"title":"RefreshResponse"},"ReleaseResponse":{"properties":{"release":{"type":"string","title":"Release","description":"Latest release tag in production, otherwise the environment name"},"changes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changes","description":"Release notes of the latest release; null outside production"}},"type":"object","required":["release","changes"],"title":"ReleaseResponse"},"RentableNumber":{"properties":{"provider":{"type":"string","title":"Provider"},"number":{"type":"string","title":"Number"},"friendly_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Friendly Name"},"locality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locality"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"country":{"type":"string","title":"Country"},"number_type":{"$ref":"#/components/schemas/RentableNumberType"},"monthly_price":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Monthly Price","description":"What the customer pays per month, in USD"},"setup_fee":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Setup Fee","description":"One-off provider setup fee charged with the first month, in USD","default":"0"},"lockin_months":{"type":"integer","title":"Lockin Months","description":"Months charged upfront at purchase, and at each renewal: the customer pays monthly_price x lockin_months per period","default":1}},"type":"object","required":["provider","number","country","number_type","monthly_price"],"title":"RentableNumber","description":"A number available to buy, priced the way the customer will be charged."},"RentableNumberType":{"type":"string","enum":["local","toll_free"],"title":"RentableNumberType"},"RerunRequest":{"properties":{"mode":{"type":"string","title":"Mode","default":"same"}},"type":"object","title":"RerunRequest"},"RevokeWorkspaceInvitationPayload":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"invitation_id":{"type":"string","format":"uuid","title":"Invitation Id"}},"type":"object","required":["workspace_id","invitation_id"],"title":"RevokeWorkspaceInvitationPayload"},"RumikTTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"rumik"},"model":{"type":"string","format":"uuid","title":"Model","default":"mulberry"},"description":{"type":"string","title":"Description","description":"Text description used to guide the voice characteristics during speech generation.","default":"warm expressive Indian woman with clear Hinglish diction, natural pauses, gentle energy, and a friendly conversational delivery","tooltip":"Describe the desired voice style, tone, accent, speaking pace, and personality."},"f0_up_key":{"type":"integer","maximum":12.0,"minimum":-12.0,"title":"F0 Up Key","description":"Adjusts the pitch of the generated voice.","default":0,"tooltip":"Range: -12 to +12. Negative values lower the pitch, positive values raise it. 0 keeps the original pitch."}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"RumikTTSConfig"},"RumikTTSExtendedConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"rumik"},"model":{"type":"string","format":"uuid","title":"Model","default":"mulberry"},"description":{"type":"string","title":"Description","description":"Text description used to guide the voice characteristics during speech generation.","default":"warm expressive Indian woman with clear Hinglish diction, natural pauses, gentle energy, and a friendly conversational delivery","tooltip":"Describe the desired voice style, tone, accent, speaking pace, and personality."},"f0_up_key":{"type":"integer","maximum":12.0,"minimum":-12.0,"title":"F0 Up Key","description":"Adjusts the pitch of the generated voice.","default":0,"tooltip":"Range: -12 to +12. Negative values lower the pitch, positive values raise it. 0 keeps the original pitch."},"temperature":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Temperature","description":"Randomness of speech generation"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling for speech generation"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"RumikTTSExtendedConfig"},"RunCreate":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id"},"scenario_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scenario Ids","default":[]},"replay_run_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Replay Run Ids","default":[]},"repeat_count":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Repeat Count","default":1},"judge_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Judge Config"},"provider_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Provider Uuid"},"model_uuid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Model Uuid"}},"type":"object","required":["agent_id"],"title":"RunCreate"},"RunDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"status":{"type":"string","title":"Status"},"overall_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Score"},"passed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Passed"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"repeat_count":{"type":"integer","title":"Repeat Count"},"scenario_ids":{"items":{},"type":"array","title":"Scenario Ids"},"frozen_attacks":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Frozen Attacks"},"optimize":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Optimize"},"judge_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Judge Config"},"token_usage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Token Usage"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"results":{"items":{"$ref":"#/components/schemas/RunResultOut"},"type":"array","title":"Results","default":[]},"auto_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Auto Config"}},"type":"object","required":["id","agent_id","status","overall_score","passed","total","repeat_count","scenario_ids","frozen_attacks","optimize","judge_config","token_usage","started_at","finished_at","error","created_at"],"title":"RunDetailOut"},"RunOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"status":{"type":"string","title":"Status"},"overall_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Score"},"passed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Passed"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"repeat_count":{"type":"integer","title":"Repeat Count"},"scenario_ids":{"items":{},"type":"array","title":"Scenario Ids"},"frozen_attacks":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Frozen Attacks"},"optimize":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Optimize"},"judge_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Judge Config"},"token_usage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Token Usage"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","agent_id","status","overall_score","passed","total","repeat_count","scenario_ids","frozen_attacks","optimize","judge_config","token_usage","started_at","finished_at","error","created_at"],"title":"RunOut"},"RunResultOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"scenario_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Scenario Id"},"scenario_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenario Name"},"status":{"type":"string","title":"Status"},"pass_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pass Rate"},"passed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Passed"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"elapsed_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Elapsed Ms"},"transcript":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Transcript"},"verdicts":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Verdicts"}},"type":"object","required":["id","scenario_id","scenario_name","status","pass_rate","passed","total","elapsed_ms","transcript","verdicts"],"title":"RunResultOut"},"SarvamLLMConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"sarvam-105b"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"sarvam"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Reasoning Effort","description":"Reasoning effort level for Sarvam models (low | medium | high)"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"SarvamLLMConfig"},"SarvamLLMExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"sarvam-105b"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"temperature":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Temperature","description":"Optional temperature override","default":0.7},"is_default":{"type":"boolean","title":"Is Default","default":false},"output_token_limit":{"type":"integer","maximum":4096.0,"minimum":1.0,"title":"Output Token Limit","description":"Optional max output tokens override","default":2048},"provider":{"type":"string","format":"uuid","title":"Provider","default":"sarvam"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Reasoning Effort","description":"Reasoning effort level for Sarvam models (low | medium | high)"},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"Nucleus sampling: only the most likely tokens summing to this probability are considered"},"wiki_grounding":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"Wiki Grounding","description":"Ground answers in Sarvam's Wikipedia index"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"SarvamLLMExtendedConfig"},"SarvamSTTConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","description":"STT model id","default":"saaras:v3"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"sarvam"},"stream_type":{"anyOf":[{"type":"string","enum":["fast","balanced","simulated"]},{"type":"null"}],"title":"Stream Type","description":"Sarvam realtime streaming cadence; only applied for the saaras:v3-realtime model","x_model_scoped":true}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"SarvamSTTConfig"},"SarvamSTTExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","description":"STT model id","default":"saaras:v3"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"sarvam"},"stream_type":{"anyOf":[{"type":"string","enum":["fast","balanced","simulated"]},{"type":"null"}],"title":"Stream Type","description":"Sarvam realtime streaming cadence; only applied for the saaras:v3-realtime model","x_model_scoped":true},"mode":{"anyOf":[{"type":"string","enum":["transcribe","translate","verbatim","translit","codemix"]},{"type":"null"}],"title":"Mode","description":"Realtime task: transcribe, translate to English, verbatim, transliterate or code-mixed"},"transcription_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcription Prompt","description":"Text that primes the transcriber with expected vocabulary or style"},"high_vad_sensitivity":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"High Vad Sensitivity","description":"Detect quieter speech"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"SarvamSTTExtendedConfig"},"SarvamTTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"sarvam"},"model":{"type":"string","format":"uuid","title":"Model","default":"bulbul:v3"},"voice":{"type":"string","title":"Voice","default":"ritu"},"buffer_size":{"type":"integer","maximum":400.0,"minimum":1.0,"title":"Buffer Size","description":"Optional buffer size override","default":50},"speed_rate":{"type":"number","maximum":2.0,"minimum":0.5,"title":"Speed Rate","description":"Optional speed rate","default":1.0}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"SarvamTTSConfig"},"SarvamTTSExtendedConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"sarvam"},"model":{"type":"string","format":"uuid","title":"Model","default":"bulbul:v3"},"voice":{"type":"string","title":"Voice","default":"ritu"},"buffer_size":{"type":"integer","maximum":400.0,"minimum":1.0,"title":"Buffer Size","description":"Optional buffer size override","default":50},"speed_rate":{"type":"number","maximum":2.0,"minimum":0.5,"title":"Speed Rate","description":"Optional speed rate","default":1.0},"temperature":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.01},{"type":"null"}],"title":"Temperature","description":"Randomness of speech generation"}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"SarvamTTSExtendedConfig"},"ScenarioCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"mode":{"type":"string","title":"Mode","default":"static"},"turns":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Turns"},"adversarial":{"anyOf":[{"$ref":"#/components/schemas/AdversarialConfig"},{"type":"null"}]},"judge_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Judge Config"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["name"],"title":"ScenarioCreate"},"ScenarioDraft":{"properties":{"name":{"type":"string","title":"Name"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"turns":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Turns"}},"type":"object","required":["name","turns"],"title":"ScenarioDraft"},"ScenarioOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"source":{"type":"string","title":"Source"},"mode":{"type":"string","title":"Mode"},"turns":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Turns"},"adversarial":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Adversarial"},"judge_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Judge Config"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","description","category","agent_id","source","mode","turns","adversarial","is_active","created_at"],"title":"ScenarioOut"},"ScenarioUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"turns":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Turns"},"adversarial":{"anyOf":[{"$ref":"#/components/schemas/AdversarialConfig"},{"type":"null"}]},"judge_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Judge Config"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"ScenarioUpdate"},"ScrapedPageResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"file_path_presigned":{"type":"string","title":"File Path Presigned"},"type":{"type":"string","title":"Type"}},"type":"object","required":["id","file_path_presigned","type"],"title":"ScrapedPageResponse"},"SdkScope":{"type":"string","enum":["read","write"],"title":"SdkScope"},"SdkTokenRequest":{"properties":{"scopes":{"items":{"$ref":"#/components/schemas/SdkScope"},"type":"array","minItems":1,"title":"Scopes","description":"Scopes the token grants. `read` for GET-style access, `write` to also change data."}},"type":"object","title":"SdkTokenRequest"},"SdkTokenResponse":{"properties":{"token":{"type":"string","title":"Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["token","expires_at"],"title":"SdkTokenResponse"},"SecretKeyCreateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"SecretKeyCreateRequest"},"SecretKeyCreateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key"},"key_prefix":{"type":"string","title":"Key Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["id","name","key","key_prefix","created_at"],"title":"SecretKeyCreateResponse"},"SecretKeyListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"}},"type":"object","required":["id","name","key_prefix","is_active","created_at"],"title":"SecretKeyListItem"},"ServerCredentialSchemaResponse":{"properties":{"auth_type_schemas":{"additionalProperties":{"$ref":"#/components/schemas/IntegrationCredentialSchema"},"propertyNames":{"$ref":"#/components/schemas/AuthType"},"type":"object","title":"Auth Type Schemas"}},"type":"object","required":["auth_type_schemas"],"title":"ServerCredentialSchemaResponse"},"SessionMessage":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"by_team":{"type":"boolean","title":"By Team","default":false}},"type":"object","required":["role","content","created_at"],"title":"SessionMessage"},"SmallestaiSTTConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"pulse"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"smallestai"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"SmallestaiSTTConfig"},"SmallestaiSTTExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"pulse"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"smallestai"},"keywords":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Keywords","description":"Comma-separated keywords to boost"},"redact_pii":{"anyOf":[{"type":"boolean"},{"type":"null"}],"enum":[true,false],"title":"Redact Pii","description":"Redact personal information from transcripts"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"SmallestaiSTTExtendedConfig"},"SmallestaiTTSConfig":{"properties":{"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"smallestai"},"model":{"type":"string","format":"uuid","title":"Model","default":"lightning-v2"},"voice":{"type":"string","title":"Voice","default":"aarushi"},"speed_rate":{"type":"number","maximum":2.0,"minimum":0.5,"title":"Speed Rate","description":"Optional speed rate","default":1.0}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"SmallestaiTTSConfig"},"SonioxSTTConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"stt-rt-v5"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"soniox"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"SonioxSTTConfig"},"SonioxSTTExtendedConfig":{"properties":{"model":{"type":"string","format":"uuid","title":"Model","default":"stt-rt-v5"},"api_key":{"type":"string","format":"uuid","title":"Api Key","description":"Provider API key id"},"is_default":{"type":"boolean","title":"Is Default","default":false},"provider":{"type":"string","format":"uuid","title":"Provider","default":"soniox"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context","description":"Domain text, names or terms that guide transcription"},"max_endpoint_delay_ms":{"anyOf":[{"type":"integer","maximum":3000.0,"minimum":500.0},{"type":"null"}],"title":"Max Endpoint Delay Ms","description":"Max ms before endpoint detection finalises the turn"},"endpoint_sensitivity":{"anyOf":[{"type":"number","maximum":1.0,"minimum":-1.0},{"type":"null"}],"title":"Endpoint Sensitivity","description":"Endpoint sensitivity; higher finalises sooner"}},"additionalProperties":false,"type":"object","required":["model","provider"],"title":"SonioxSTTExtendedConfig"},"StartImpersonationRequest":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["user_id","refresh_token"],"title":"StartImpersonationRequest"},"StartWebAgentSessionRequest":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id","description":"Agent ID"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id","description":"Crew version id; the call starts on its main agent. Give this or agent_id."},"target_region":{"anyOf":[{"type":"string","pattern":"^[a-z]{2}(?:-[a-z0-9]+)+-[0-9]+$"},{"type":"null"}],"title":"Target Region"},"variables":{"additionalProperties":{"type":"string"},"type":"object","title":"Variables","description":"Runtime prompt variables"}},"type":"object","title":"StartWebAgentSessionRequest"},"StopImpersonationRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"StopImpersonationRequest"},"StructuredOutput-Input":{"properties":{"name":{"type":"string","title":"Name","description":"Variable name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Variable description","default":""},"method":{"$ref":"#/components/schemas/ExtractionMethod","description":"Extraction method: ai_extraction or regex_extraction","default":"ai_extraction"},"structured_schema":{"$ref":"#/components/schemas/StructuredOutputSchema-Input","description":"Schema defining the variable type and constraints"}},"type":"object","required":["name","structured_schema"],"title":"StructuredOutput"},"StructuredOutput-Output":{"properties":{"name":{"type":"string","title":"Name","description":"Variable name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Variable description","default":""},"method":{"$ref":"#/components/schemas/ExtractionMethod","description":"Extraction method: ai_extraction or regex_extraction","default":"ai_extraction"},"structured_schema":{"$ref":"#/components/schemas/StructuredOutputSchema-Output","description":"Schema defining the variable type and constraints"}},"type":"object","required":["name","structured_schema"],"title":"StructuredOutput"},"StructuredOutputSchema-Input":{"properties":{"type":{"type":"string","enum":["boolean","number","integer","string","array","object"],"title":"Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the variable's expected value"},"properties":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/StructuredOutputSchema-Input"},"type":"object"},{"type":"null"}],"title":"Properties","description":"Property definitions for object type"},"required":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required","description":"Required property names for object type"},"items":{"anyOf":[{"$ref":"#/components/schemas/StructuredOutputSchema-Input"},{"type":"null"}],"description":"Item schema for array type"},"minimum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minimum","description":"Minimum allowed value (number/integer type only)"},"maximum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maximum","description":"Maximum allowed value (number/integer type only)"}},"type":"object","required":["type"],"title":"StructuredOutputSchema"},"StructuredOutputSchema-Output":{"properties":{"type":{"type":"string","enum":["boolean","number","integer","string","array","object"],"title":"Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the variable's expected value"},"properties":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/StructuredOutputSchema-Output"},"type":"object"},{"type":"null"}],"title":"Properties","description":"Property definitions for object type"},"required":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required","description":"Required property names for object type"},"items":{"anyOf":[{"$ref":"#/components/schemas/StructuredOutputSchema-Output"},{"type":"null"}],"description":"Item schema for array type"},"minimum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minimum","description":"Minimum allowed value (number/integer type only)"},"maximum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maximum","description":"Maximum allowed value (number/integer type only)"}},"type":"object","required":["type"],"title":"StructuredOutputSchema"},"SuggestionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"reason":{"type":"string","title":"Reason"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"},"status":{"$ref":"#/components/schemas/MergeSuggestionStatus"},"other":{"$ref":"#/components/schemas/ContactBase"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","reason","evidence","status","other","created_at"],"title":"SuggestionOut"},"SwitchWorkspacePayload":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"}},"type":"object","required":["workspace_id"],"title":"SwitchWorkspacePayload"},"TTSPauseConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Allow the caller to pause the agent's speech","default":false},"default_duration_seconds":{"type":"integer","maximum":600.0,"minimum":1.0,"title":"Default Duration Seconds","description":"Pause length used when the caller does not say how long","default":30},"minimum_duration_seconds":{"type":"integer","maximum":600.0,"minimum":1.0,"title":"Minimum Duration Seconds","description":"Shortest pause allowed; shorter requests are raised to this","default":5},"maximum_duration_seconds":{"type":"integer","maximum":600.0,"minimum":1.0,"title":"Maximum Duration Seconds","description":"Longest pause allowed; longer requests are capped to this","default":300},"allow_manual_resume":{"type":"boolean","title":"Allow Manual Resume","description":"Let the caller resume the agent's speech before the pause expires","default":true},"auto_resume":{"type":"boolean","title":"Auto Resume","description":"Resume the agent's speech automatically when the pause expires","default":true}},"type":"object","title":"TTSPauseConfig","description":"Lets the caller ask the agent to stop speaking for a while.\n\nWhile paused the agent keeps listening and thinking; only its speech is\nsuppressed. It resumes when asked (``start_tts``) or when the pause expires."},"TemplateOut":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"category":{"type":"string","title":"Category"},"icon":{"type":"string","title":"Icon"},"description":{"type":"string","title":"Description"}},"type":"object","required":["id","title","category","icon","description"],"title":"TemplateOut","description":"A platform-provided eval template (general safety property to run)."},"TemplateSend":{"properties":{"id":{"type":"string","title":"Id"},"header":{"anyOf":[{"type":"string","maxLength":1024,"minLength":1},{"type":"null"}],"title":"Header"},"body":{"items":{"type":"string","maxLength":1024,"minLength":1},"type":"array","title":"Body","default":[]},"button_url":{"anyOf":[{"type":"string","maxLength":1024,"minLength":1},{"type":"null"}],"title":"Button Url"},"coupon_code":{"anyOf":[{"type":"string","maxLength":15,"minLength":1},{"type":"null"}],"title":"Coupon Code"}},"type":"object","required":["id"],"title":"TemplateSend","description":"An approved template and the values for its variables."},"TimezoneListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TimezoneOption"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"TimezoneListResponse"},"TimezoneOption":{"properties":{"value":{"type":"string","title":"Value","description":"IANA timezone identifier"},"label":{"type":"string","title":"Label","description":"Human-readable timezone label"},"aliases":{"items":{"type":"string"},"type":"array","title":"Aliases","description":"Legacy IANA names this zone replaced. A browser's Intl can still report one of these -- Asia/Calcutta for Asia/Kolkata -- and the list no longer offers them, so a client matching a detected zone has to check here too."}},"type":"object","required":["value","label"],"title":"TimezoneOption"},"TimezoneTypeResponse":{"properties":{"label":{"type":"string","title":"Label","description":"Human-readable timezone label"},"value":{"type":"string","title":"Value","description":"IANA timezone value"}},"type":"object","required":["label","value"],"title":"TimezoneTypeResponse"},"TokenPair":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["access_token","refresh_token"],"title":"TokenPair"},"ToolOverride":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled","description":"False switches the tool off for this member in this crew"},"pre_execution_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Execution Message","description":"What the member says before running the tool"},"function_call_sound":{"anyOf":[{"$ref":"#/components/schemas/AmbientSoundConfig"},{"type":"null"}],"description":"Ambient sound while the tool runs"}},"additionalProperties":false,"type":"object","title":"ToolOverride","description":"What a crew changes about one of a member's tools. A key left out (or\nnull) leaves the tool's own value."},"TranscriptionMessage":{"properties":{"type":{"type":"string","enum":["transcription","call_ended","error","function_call","handoff"],"title":"Type","default":"transcription"},"role":{"anyOf":[{"type":"string","enum":["user","assistant"]},{"type":"null"}],"title":"Role"},"content":{"anyOf":[{},{"type":"null"}],"title":"Content","description":"Message payload. Shape depends on type: transcript text for transcription, error details for error, function name/arguments for function_call","examples":["Hello, how can I help you today?"]},"is_final":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Final"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"service":{"anyOf":[{"type":"string","enum":["llm","stt","tts","voice"]},{"type":"null"}],"title":"Service"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp"},"turn_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turn Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"from_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Agent"},"to_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Agent"}},"type":"object","title":"TranscriptionMessage"},"UnavailableTransfer-Input":{"properties":{"destinations":{"items":{"$ref":"#/components/schemas/UnavailableTransferTarget-Input"},"type":"array","title":"Destinations"},"closing_message":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Closing Message"},"ring_timeout_seconds":{"type":"integer","maximum":120.0,"minimum":5.0,"title":"Ring Timeout Seconds","default":30}},"type":"object","title":"UnavailableTransfer","description":"Ordered cold-transfer fallback list used for inbound calls outside hours."},"UnavailableTransfer-Output":{"properties":{"destinations":{"items":{"$ref":"#/components/schemas/UnavailableTransferTarget-Output"},"type":"array","title":"Destinations"},"closing_message":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Closing Message"},"ring_timeout_seconds":{"type":"integer","maximum":120.0,"minimum":5.0,"title":"Ring Timeout Seconds","default":30}},"type":"object","title":"UnavailableTransfer","description":"Ordered cold-transfer fallback list used for inbound calls outside hours."},"UnavailableTransferTarget-Input":{"properties":{"transfer_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Number"},"sip_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sip Uri"},"extension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extension"},"extension_duration":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Extension Duration","default":2},"sip_trunk_selection":{"anyOf":[{"type":"string","enum":["current_call","phone_number_id"]},{"type":"null"}],"title":"Sip Trunk Selection"},"sip_trunk_phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sip Trunk Phone Number Id"},"sip_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sip Username"},"sip_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sip Password"},"clear_sip_password":{"type":"boolean","title":"Clear Sip Password","default":false},"sip_password_encrypted":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sip Password Encrypted"},"has_sip_password":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Sip Password"}},"type":"object","title":"UnavailableTransferTarget","description":"One cold-transfer destination tried when the agent is unavailable.\n\nA trimmed ``TransferDestination``: no LLM prompt, no pre-execution message\n(``unavailable_message`` plays instead) and no warm-transfer fields.\nCross-field destination rules (number or SIP URI, credentials) are enforced\nin ``heimdall.schemas.agent`` by reusing ``TransferDestination``."},"UnavailableTransferTarget-Output":{"properties":{"transfer_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer Number"},"sip_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sip Uri"},"extension":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extension"},"extension_duration":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Extension Duration","default":2},"sip_trunk_selection":{"anyOf":[{"type":"string","enum":["current_call","phone_number_id"]},{"type":"null"}],"title":"Sip Trunk Selection"},"sip_trunk_phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sip Trunk Phone Number Id"},"sip_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sip Username"},"sip_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sip Password"},"clear_sip_password":{"type":"boolean","title":"Clear Sip Password","default":false},"has_sip_password":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Sip Password"}},"type":"object","title":"UnavailableTransferTarget","description":"One cold-transfer destination tried when the agent is unavailable.\n\nA trimmed ``TransferDestination``: no LLM prompt, no pre-execution message\n(``unavailable_message`` plays instead) and no warm-transfer fields.\nCross-field destination rules (number or SIP URI, credentials) are enforced\nin ``heimdall.schemas.agent`` by reusing ``TransferDestination``."},"UpdateBatchCallPayload":{"properties":{"execution_type":{"anyOf":[{"type":"string","const":"NOW"},{"type":"null"}],"title":"Execution Type","description":"Set to NOW to start a scheduled batch immediately"},"batch_status":{"anyOf":[{"type":"string","const":"CANCELLED"},{"type":"null"}],"title":"Batch Status","description":"Set to CANCELLED to cancel the batch"},"name":{"anyOf":[{"type":"string","maxLength":150,"minLength":1},{"type":"null"}],"title":"Name","description":"New batch name"}},"type":"object","title":"UpdateBatchCallPayload"},"UpdateCampaignPayload":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"weekdays":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Weekdays"},"window_start":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Window Start"},"window_end":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Window End"},"request_callbacks_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Request Callbacks Enabled"},"transcript_callbacks_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Transcript Callbacks Enabled"},"voicemail_detection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Voicemail Detection Enabled"},"transcript_callback_delay_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Transcript Callback Delay Minutes"},"max_callbacks_per_contact":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Max Callbacks Per Contact"},"max_new_contacts_per_day":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Max New Contacts Per Day"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id"},"column_mapping":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Column Mapping"},"retry_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry Attempts"},"sizing_basis_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sizing Basis Seconds"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start At"},"ends_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Ends On"},"continue_after_end":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Continue After End"},"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id"},"telephony_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Provider"}},"additionalProperties":false,"type":"object","title":"UpdateCampaignPayload","description":"The only fields a campaign may change after it exists.\n\nDeliberately short, and the omissions are the design. Everything else is\neither copied onto each batch as it is emitted -- agent, number,\ncolumn_mapping -- so changing it would split the campaign between two\nconfigurations rather than move it to one; or it was consumed once by the\nplanner -- start_at, ends_on, sizing_basis_seconds, retry_attempts -- so\nchanging it would save a number that no longer decides anything.\n\nWhat is here is safe because the dispatcher re-reads it on every tick:\nget_campaign_window() selects weekdays/window/timezone from this row each\ntime it considers dialling, and a batch whose window has moved waits for\nthe next opening rather than being dropped.\n\nextra=\"forbid\" so a client sending `agent_id` is told no, instead of\nhaving it quietly ignored and believing the swap worked."},"UpdateIsActiveRequest":{"properties":{"user_emails":{"items":{"type":"string","format":"email"},"type":"array","minItems":1,"title":"User Emails"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["user_emails"],"title":"UpdateIsActiveRequest"},"UpdateIsActiveResponse":{"properties":{"updated_count":{"type":"integer","title":"Updated Count"},"is_active":{"type":"boolean","title":"Is Active"},"message":{"type":"string","title":"Message"}},"type":"object","required":["updated_count","is_active","message"],"title":"UpdateIsActiveResponse"},"UpdateMeRequest":{"properties":{"onboarding_tour_progress":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Onboarding Tour Progress"},"last_seen_version":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Last Seen Version"}},"additionalProperties":false,"type":"object","title":"UpdateMeRequest"},"UpdateWorkspacePayload":{"properties":{"name":{"type":"string","title":"Name"},"settings":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceSettings"},{"type":"null"}],"description":"Full replacement for workspace settings. Omit to leave settings unchanged."}},"type":"object","required":["name"],"title":"UpdateWorkspacePayload"},"UrlButton":{"properties":{"type":{"type":"string","const":"URL","title":"Type"},"text":{"type":"string","maxLength":25,"minLength":1,"title":"Text"},"url":{"type":"string","maxLength":2000,"minLength":1,"title":"Url"},"example":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Example"}},"type":"object","required":["type","text","url"],"title":"UrlButton"},"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"},"ValidationErrorItem":{"properties":{"field":{"type":"string","title":"Field"},"message":{"type":"string","title":"Message"}},"type":"object","required":["field","message"],"title":"ValidationErrorItem"},"ValidationErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail"},"errors":{"items":{"$ref":"#/components/schemas/ValidationErrorItem"},"type":"array","title":"Errors"}},"type":"object","required":["detail","errors"],"title":"ValidationErrorResponse"},"VariableCoverageResponse":{"properties":{"variable":{"type":"string","title":"Variable"},"column":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Column"},"missing_for":{"type":"integer","title":"Missing For","default":0}},"type":"object","required":["variable"],"title":"VariableCoverageResponse"},"VerifiableScopeResponse":{"properties":{"provider":{"type":"string","title":"Provider"},"country":{"type":"string","title":"Country"},"mode":{"type":"string","title":"Mode"}},"type":"object","required":["provider","country","mode"],"title":"VerifiableScopeResponse","description":"A provider/country pair that needs a verification before numbers can be\nbought there. Pairs needing nothing are omitted, so an empty list means\neverything on offer is buyable straight away."},"VoiceCallButton":{"properties":{"type":{"type":"string","const":"VOICE_CALL","title":"Type"},"text":{"type":"string","maxLength":25,"minLength":1,"title":"Text"}},"type":"object","required":["type","text"],"title":"VoiceCallButton","description":"Calls the business on WhatsApp; needs calling on for the number."},"WalletBalance":{"properties":{"credits":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Credits"},"reserved":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Reserved","default":"0"},"available":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Available"}},"type":"object","required":["credits"],"title":"WalletBalance"},"WalletTransaction":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"source":{"type":"string","title":"Source"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","type","source","amount","created_at"],"title":"WalletTransaction","description":"One ledger row as the CUSTOMER sees it.\n\nDeliberately not the admin shape. `meta_data` is omitted entirely: an\nadmin grant carries dollars_received and discount_percent, and showing a\ncustomer their discount reveals that a list price exists and invites a\nnegotiation. Date, direction, a friendly label and the amount is all they\nneed to reconcile their own balance."},"WebchatWidgetFields":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id","description":"Any version of the agent; the widget binds to its family."},"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"Internal label, e.g. 'Main site'."},"display_name":{"type":"string","maxLength":60,"minLength":1,"title":"Display Name","description":"Shown in the chat header."},"brand_color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","title":"Brand Color","default":"#6366F1"},"welcome_message":{"type":"string","maxLength":500,"title":"Welcome Message","default":""},"position":{"type":"string","enum":["right","left"],"title":"Position","default":"right"},"allowed_domains":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Allowed Domains"}},"type":"object","required":["name","display_name"],"title":"WebchatWidgetFields"},"WebchatWidgetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"public_id":{"type":"string","title":"Public Id"},"base_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Agent Id"},"name":{"type":"string","title":"Name"},"display_name":{"type":"string","title":"Display Name"},"brand_color":{"type":"string","title":"Brand Color"},"welcome_message":{"type":"string","title":"Welcome Message"},"position":{"type":"string","title":"Position"},"allowed_domains":{"items":{"type":"string"},"type":"array","title":"Allowed Domains"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"}},"type":"object","required":["id","public_id","base_agent_id","name","display_name","brand_color","welcome_message","position","allowed_domains","is_active","created_at"],"title":"WebchatWidgetResponse"},"WebchatWidgetUpdate":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"display_name":{"anyOf":[{"type":"string","maxLength":60,"minLength":1},{"type":"null"}],"title":"Display Name"},"brand_color":{"anyOf":[{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$"},{"type":"null"}],"title":"Brand Color"},"welcome_message":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Welcome Message"},"position":{"anyOf":[{"type":"string","enum":["right","left"]},{"type":"null"}],"title":"Position"},"allowed_domains":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Allowed Domains"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"}},"type":"object","title":"WebchatWidgetUpdate","description":"Only the fields sent change. `agent_id: null` unassigns the agent."},"WebhookDeliveryLogResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"subscription_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Subscription Id"},"call_session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Call Session Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"event":{"type":"string","title":"Event"},"url":{"type":"string","title":"Url"},"attempt_number":{"type":"integer","title":"Attempt Number"},"succeeded":{"type":"boolean","title":"Succeeded"},"http_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http Status Code"},"response_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Body"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","event","url","attempt_number","succeeded","created_at"],"title":"WebhookDeliveryLogResponse"},"WebhookEventTypeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source":{"type":"string","title":"Source"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","source","name","is_active"],"title":"WebhookEventTypeResponse"},"WebhookSubscriptionCreate":{"properties":{"scope":{"$ref":"#/components/schemas/WebhookSubscriptionScope"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id","description":"Optional server credential used for authenticated webhook delivery"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"custom_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Custom Headers","description":"Custom HTTP headers sent with each webhook delivery","examples":[{"your_header_name":"your_value"}]},"query_params":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Query Params","description":"Custom query parameters appended to the webhook URL on delivery","examples":[{"your_param_name":"your_value"}]}},"type":"object","required":["scope","url","events"],"title":"WebhookSubscriptionCreate"},"WebhookSubscriptionCreateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"scope":{"$ref":"#/components/schemas/WebhookSubscriptionScope"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id"},"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"custom_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Custom Headers","description":"Custom HTTP headers sent with each webhook delivery","examples":[{"your_header_name":"your_value"}]},"query_params":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Query Params","description":"Custom query parameters appended to the webhook URL on delivery","examples":[{"your_param_name":"your_value"}]},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","workspace_id","scope","url","events","is_active"],"title":"WebhookSubscriptionCreateResponse"},"WebhookSubscriptionList":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"scope":{"$ref":"#/components/schemas/WebhookSubscriptionScope"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"custom_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Custom Headers","description":"Custom HTTP headers sent with each webhook delivery","examples":[{"your_header_name":"your_value"}]},"query_params":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Query Params","description":"Custom query parameters appended to the webhook URL on delivery","examples":[{"your_param_name":"your_value"}]},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","url","scope","events","is_active"],"title":"WebhookSubscriptionList"},"WebhookSubscriptionListResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"scope":{"$ref":"#/components/schemas/WebhookSubscriptionScope"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"custom_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Custom Headers","description":"Custom HTTP headers sent with each webhook delivery","examples":[{"your_header_name":"your_value"}]},"query_params":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Query Params","description":"Custom query parameters appended to the webhook URL on delivery","examples":[{"your_param_name":"your_value"}]},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id"},"is_active":{"type":"boolean","title":"Is Active"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","required":["id","url","scope","events","is_active"],"title":"WebhookSubscriptionListResponse"},"WebhookSubscriptionScope":{"type":"string","enum":["agent","phone_number","batch"],"title":"WebhookSubscriptionScope"},"WebhookSubscriptionUpdate":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Url"},"events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Events"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"custom_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Custom Headers","description":"Custom HTTP headers sent with each webhook delivery","examples":[{"your_header_name":"your_value"}]},"query_params":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Query Params","description":"Custom query parameters appended to the webhook URL on delivery","examples":[{"your_param_name":"your_value"}]},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id"}},"type":"object","title":"WebhookSubscriptionUpdate"},"WebhookTestInput":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"event":{"type":"string","minLength":1,"title":"Event"},"custom_headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Custom Headers"},"query_params":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Query Params"},"integration_credential_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Integration Credential Id"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret","description":"Signing secret for X-Webhook-Signature"},"webhook_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Webhook Id","description":"Saved webhook whose secret signs the test when `secret` is omitted"}},"type":"object","required":["url","event"],"title":"WebhookTestInput","description":"A draft webhook from the form; nothing needs to be saved first."},"WhatsappBusinessProfile":{"properties":{"about":{"type":"string","maxLength":139,"title":"About","default":""},"description":{"type":"string","maxLength":512,"title":"Description","default":""},"address":{"type":"string","maxLength":256,"title":"Address","default":""},"email":{"type":"string","maxLength":128,"title":"Email","default":""},"websites":{"items":{"type":"string"},"type":"array","maxItems":2,"title":"Websites","default":[]},"vertical":{"type":"string","title":"Vertical","default":""}},"type":"object","title":"WhatsappBusinessProfile","description":"What customers see on the number in WhatsApp; Meta's fields and limits."},"WhatsappConfigCreate":{"properties":{"agent_id":{"type":"string","format":"uuid","title":"Agent Id","description":"Any version of the agent; the config binds to its whole family."},"phone_number_id":{"type":"string","maxLength":64,"minLength":1,"title":"Phone Number Id"},"display_phone_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Display Phone Number"},"access_token":{"type":"string","minLength":1,"title":"Access Token"},"app_secret":{"type":"string","minLength":1,"title":"App Secret"}},"type":"object","required":["agent_id","phone_number_id","access_token","app_secret"],"title":"WhatsappConfigCreate"},"WhatsappConfigResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"base_agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Base Agent Id"},"phone_number_id":{"type":"string","title":"Phone Number Id"},"display_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Phone Number"},"waba_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waba Id"},"verify_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verify Token"},"auto_reply":{"type":"boolean","title":"Auto Reply","default":true},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"verified_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified Name","description":"Meta's approved business name, from the last daily check.","readOnly":true},"webhook_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Path","description":"Bring-your-own-app numbers only; Embedded Signup numbers use our\napp's webhook and need nothing pasted into Meta.","readOnly":true}},"type":"object","required":["id","project_id","base_agent_id","phone_number_id","display_phone_number","waba_id","verify_token","is_active","created_at","updated_at","verified_name","webhook_path"],"title":"WhatsappConfigResponse","description":"Never includes access_token / app_secret. webhook_path and\nverify_token are exactly what the customer pastes into Meta's\nwebhook settings."},"WhatsappConfigUpdate":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id","description":"Any version of the agent; the config binds to its whole family."},"phone_number_id":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Phone Number Id"},"display_phone_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Display Phone Number"},"access_token":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Access Token"},"app_secret":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"App Secret"},"waba_id":{"anyOf":[{"type":"string","pattern":"^\\d{1,32}$"},{"type":"null"}],"title":"Waba Id"},"auto_reply":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Reply"}},"additionalProperties":false,"type":"object","title":"WhatsappConfigUpdate","description":"Every field the customer controls. The webhook URL carries the\nconfig id, not the number, so nothing changes on Meta's side -- but a\nnew number from a different Meta app also needs that app's\naccess_token and app_secret in the same request, or its webhooks fail\nsignature verification. Conversations already in progress keep the\nagent they started with until they go idle."},"WhatsappConnectionStatus":{"properties":{"display_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Phone Number"},"verified_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified Name"},"name_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Status"},"quality_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Rating"},"messaging_limit_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messaging Limit Tier"},"can_send_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Can Send Message"},"issues":{"items":{"type":"string"},"type":"array","title":"Issues","default":[]},"conversations_7d":{"type":"integer","title":"Conversations 7D","default":0},"meta_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Error"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"}},"type":"object","title":"WhatsappConnectionStatus","description":"A connected number's live state, mostly straight from Meta."},"WhatsappTemplateCreate":{"properties":{"name":{"type":"string","pattern":"^[a-z0-9_]{1,512}$","title":"Name"},"language":{"type":"string","maxLength":15,"minLength":2,"title":"Language"},"category":{"type":"string","enum":["MARKETING","UTILITY","AUTHENTICATION"],"title":"Category"},"header":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Header"},"header_example":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Example"},"body":{"type":"string","maxLength":1024,"title":"Body","default":""},"body_examples":{"items":{"type":"string"},"type":"array","title":"Body Examples","default":[]},"footer":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Footer"},"buttons":{"items":{"oneOf":[{"$ref":"#/components/schemas/QuickReplyButton"},{"$ref":"#/components/schemas/UrlButton"},{"$ref":"#/components/schemas/PhoneButton"},{"$ref":"#/components/schemas/CopyCodeButton"},{"$ref":"#/components/schemas/VoiceCallButton"}],"discriminator":{"propertyName":"type","mapping":{"COPY_CODE":"#/components/schemas/CopyCodeButton","PHONE_NUMBER":"#/components/schemas/PhoneButton","QUICK_REPLY":"#/components/schemas/QuickReplyButton","URL":"#/components/schemas/UrlButton","VOICE_CALL":"#/components/schemas/VoiceCallButton"}}},"type":"array","maxItems":10,"title":"Buttons","default":[]},"add_security_recommendation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Add Security Recommendation"},"code_expiration_minutes":{"anyOf":[{"type":"integer","maximum":90.0,"minimum":1.0},{"type":"null"}],"title":"Code Expiration Minutes"},"waba_id":{"type":"string","pattern":"^\\d{1,32}$","title":"Waba Id"}},"type":"object","required":["name","language","category","waba_id"],"title":"WhatsappTemplateCreate"},"WhatsappTemplateInput":{"properties":{"name":{"type":"string","pattern":"^[a-z0-9_]{1,512}$","title":"Name"},"language":{"type":"string","maxLength":15,"minLength":2,"title":"Language"},"category":{"type":"string","enum":["MARKETING","UTILITY","AUTHENTICATION"],"title":"Category"},"header":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Header"},"header_example":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Example"},"body":{"type":"string","maxLength":1024,"title":"Body","default":""},"body_examples":{"items":{"type":"string"},"type":"array","title":"Body Examples","default":[]},"footer":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Footer"},"buttons":{"items":{"oneOf":[{"$ref":"#/components/schemas/QuickReplyButton"},{"$ref":"#/components/schemas/UrlButton"},{"$ref":"#/components/schemas/PhoneButton"},{"$ref":"#/components/schemas/CopyCodeButton"},{"$ref":"#/components/schemas/VoiceCallButton"}],"discriminator":{"propertyName":"type","mapping":{"COPY_CODE":"#/components/schemas/CopyCodeButton","PHONE_NUMBER":"#/components/schemas/PhoneButton","QUICK_REPLY":"#/components/schemas/QuickReplyButton","URL":"#/components/schemas/UrlButton","VOICE_CALL":"#/components/schemas/VoiceCallButton"}}},"type":"array","maxItems":10,"title":"Buttons","default":[]},"add_security_recommendation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Add Security Recommendation"},"code_expiration_minutes":{"anyOf":[{"type":"integer","maximum":90.0,"minimum":1.0},{"type":"null"}],"title":"Code Expiration Minutes"}},"type":"object","required":["name","language","category"],"title":"WhatsappTemplateInput","description":"Variables are positional, {{1}}, {{2}}…; one example per variable."},"WhatsappTemplateResponse":{"properties":{"name":{"type":"string","pattern":"^[a-z0-9_]{1,512}$","title":"Name"},"language":{"type":"string","maxLength":15,"minLength":2,"title":"Language"},"category":{"type":"string","enum":["MARKETING","UTILITY","AUTHENTICATION"],"title":"Category"},"header":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Header"},"header_example":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Example"},"body":{"type":"string","maxLength":1024,"title":"Body","default":""},"body_examples":{"items":{"type":"string"},"type":"array","title":"Body Examples","default":[]},"footer":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Footer"},"buttons":{"items":{"oneOf":[{"$ref":"#/components/schemas/QuickReplyButton"},{"$ref":"#/components/schemas/UrlButton"},{"$ref":"#/components/schemas/PhoneButton"},{"$ref":"#/components/schemas/CopyCodeButton"},{"$ref":"#/components/schemas/VoiceCallButton"}],"discriminator":{"propertyName":"type","mapping":{"COPY_CODE":"#/components/schemas/CopyCodeButton","PHONE_NUMBER":"#/components/schemas/PhoneButton","QUICK_REPLY":"#/components/schemas/QuickReplyButton","URL":"#/components/schemas/UrlButton","VOICE_CALL":"#/components/schemas/VoiceCallButton"}}},"type":"array","maxItems":10,"title":"Buttons","default":[]},"add_security_recommendation":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Add Security Recommendation"},"code_expiration_minutes":{"anyOf":[{"type":"integer","maximum":90.0,"minimum":1.0},{"type":"null"}],"title":"Code Expiration Minutes"},"id":{"type":"string","title":"Id"},"waba_id":{"type":"string","title":"Waba Id"},"status":{"type":"string","enum":["PENDING","APPROVED","REJECTED","PAUSED","DISABLED"],"title":"Status"},"rejected_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejected Reason"}},"type":"object","required":["name","language","category","id","waba_id","status"],"title":"WhatsappTemplateResponse"},"WidgetPublicConfig":{"properties":{"display_name":{"type":"string","title":"Display Name"},"brand_color":{"type":"string","title":"Brand Color"},"welcome_message":{"type":"string","title":"Welcome Message"},"position":{"type":"string","title":"Position"}},"type":"object","required":["display_name","brand_color","welcome_message","position"],"title":"WidgetPublicConfig"},"WorkspaceCurrency":{"type":"string","enum":["USD","INR"],"title":"WorkspaceCurrency"},"WorkspaceFeaturesResponse":{"properties":{"features":{"additionalProperties":true,"type":"object","title":"Features"}},"type":"object","required":["features"],"title":"WorkspaceFeaturesResponse"},"WorkspaceInvitationListItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"project":{"$ref":"#/components/schemas/WorkspaceInvitationProjectResponse"},"invite_url":{"type":"string","title":"Invite Url"},"status":{"type":"string","title":"Status"},"expires_on":{"type":"string","format":"date-time","title":"Expires On"}},"type":"object","required":["id","email","workspace_id","project","invite_url","status","expires_on"],"title":"WorkspaceInvitationListItemResponse"},"WorkspaceInvitationProjectResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"WorkspaceInvitationProjectResponse"},"WorkspaceInvitePayload":{"properties":{"emails":{"items":{"type":"string","format":"email"},"type":"array","minItems":1,"title":"Emails"},"project_id":{"type":"string","format":"uuid","title":"Project Id"}},"type":"object","required":["emails","project_id"],"title":"WorkspaceInvitePayload"},"WorkspaceMemberResponse":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"}},"type":"object","required":["user_id","name","email","role","joined_at"],"title":"WorkspaceMemberResponse"},"WorkspaceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"is_system_default":{"type":"boolean","title":"Is System Default"},"role":{"type":"string","title":"Role"},"team_members_count":{"type":"integer","title":"Team Members Count"},"settings":{"$ref":"#/components/schemas/WorkspaceSettings"}},"type":"object","required":["id","name","is_system_default","role","team_members_count"],"title":"WorkspaceResponse"},"WorkspaceSettings":{"properties":{"live_transcription_streaming_enabled":{"type":"boolean","title":"Live Transcription Streaming Enabled","description":"Stream live transcript turns word-by-word as they arrive. When disabled, each user/assistant turn's transcript is sent as one complete message instead.","default":true}},"type":"object","title":"WorkspaceSettings"},"heimdall__schemas__compliance__AvailableNumberResponse":{"properties":{"number":{"type":"string","title":"Number"},"country":{"type":"string","title":"Country"},"number_type":{"type":"string","title":"Number Type"},"friendly_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Friendly Name"},"locality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locality"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"monthly_rental_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Monthly Rental Rate"},"setup_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Setup Rate"},"voice_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Rate"}},"type":"object","required":["number","country","number_type"],"title":"AvailableNumberResponse","description":"A single available phone number from search results."},"heimdall__schemas__compliance__ComplianceDocumentSchema":{"properties":{"type":{"type":"string","title":"Type"},"label":{"type":"string","title":"Label"},"file_required":{"type":"boolean","title":"File Required","default":true},"help":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help"},"fields":{"items":{"$ref":"#/components/schemas/heimdall__schemas__compliance__ComplianceFieldSchema"},"type":"array","title":"Fields","default":[]}},"type":"object","required":["type","label"],"title":"ComplianceDocumentSchema","description":"A document type required for compliance."},"heimdall__schemas__compliance__ComplianceFieldSchema":{"properties":{"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"required":{"type":"boolean","title":"Required","default":true},"help":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help"}},"type":"object","required":["name","label"],"title":"ComplianceFieldSchema","description":"A single field required by a compliance document."},"heimdall__schemas__compliance__ComplianceRequirementsResponse":{"properties":{"mode":{"type":"string","title":"Mode"},"end_user_types":{"items":{"type":"string"},"type":"array","title":"End User Types","default":["business"]},"fields":{"items":{"$ref":"#/components/schemas/heimdall__schemas__compliance__ComplianceFieldSchema"},"type":"array","title":"Fields","default":[]},"documents":{"items":{"$ref":"#/components/schemas/heimdall__schemas__compliance__ComplianceDocumentSchema"},"type":"array","title":"Documents","default":[]},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"}},"type":"object","required":["mode"],"title":"ComplianceRequirementsResponse","description":"Response for GET /compliance/{provider_name}/requirements"},"heimdall__schemas__conversation__SendMessageRequest":{"properties":{"kind":{"type":"string","enum":["reply","note","template"],"title":"Kind"},"content":{"anyOf":[{"type":"string","maxLength":4096,"minLength":1},{"type":"null"}],"title":"Content"},"template":{"anyOf":[{"$ref":"#/components/schemas/TemplateSend"},{"type":"null"}]}},"type":"object","required":["kind"],"title":"SendMessageRequest","description":"A reply or note (`content`), or a WhatsApp template (`template`), which\ncan go out after the 24-hour window has closed."},"heimdall__schemas__number_marketplace__AvailableNumberResponse":{"properties":{"number":{"type":"string","title":"Number"},"country":{"type":"string","title":"Country"},"number_type":{"type":"string","title":"Number Type"},"friendly_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Friendly Name"},"locality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locality"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"monthly_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Monthly Price"},"setup_fee":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Setup Fee"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"}},"type":"object","required":["number","country","number_type"],"title":"AvailableNumberResponse"},"heimdall__schemas__number_marketplace__BuyNumberRequest":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country"},"number_type":{"type":"string","title":"Number Type"},"end_user_type":{"type":"string","title":"End User Type","default":"business"},"number":{"type":"string","maxLength":32,"minLength":1,"title":"Number"}},"type":"object","required":["country","number_type","number"],"title":"BuyNumberRequest"},"heimdall__schemas__number_marketplace__ComplianceDocumentSchema":{"properties":{"type":{"type":"string","title":"Type"},"label":{"type":"string","title":"Label"},"file_required":{"type":"boolean","title":"File Required","default":true},"help":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help"},"accept":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept"},"fields":{"items":{"$ref":"#/components/schemas/heimdall__schemas__number_marketplace__ComplianceFieldSchema"},"type":"array","title":"Fields","default":[]}},"type":"object","required":["type","label"],"title":"ComplianceDocumentSchema"},"heimdall__schemas__number_marketplace__ComplianceFieldSchema":{"properties":{"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"required":{"type":"boolean","title":"Required","default":true},"help":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help"}},"type":"object","required":["name","label"],"title":"ComplianceFieldSchema"},"heimdall__schemas__number_marketplace__ComplianceRequirementsResponse":{"properties":{"mode":{"type":"string","title":"Mode"},"end_user_types":{"items":{"type":"string"},"type":"array","title":"End User Types","default":["business"]},"fields":{"items":{"$ref":"#/components/schemas/heimdall__schemas__number_marketplace__ComplianceFieldSchema"},"type":"array","title":"Fields","default":[]},"documents":{"items":{"$ref":"#/components/schemas/heimdall__schemas__number_marketplace__ComplianceDocumentSchema"},"type":"array","title":"Documents","default":[]},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"}},"type":"object","required":["mode"],"title":"ComplianceRequirementsResponse"},"heimdall__schemas__phone_number__BuyNumberRequest":{"properties":{"provider":{"type":"string","maxLength":32,"title":"Provider","default":"twilio"},"number":{"type":"string","maxLength":32,"minLength":1,"title":"Number"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country"},"number_type":{"$ref":"#/components/schemas/RentableNumberType"},"purchase_key":{"type":"string","maxLength":64,"minLength":8,"title":"Purchase Key","description":"Client-generated key. Replaying it returns the first purchase."},"clearance_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Clearance Id","description":"Verification to buy under. Required where the country needs one."},"expected_monthly_price":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Expected Monthly Price","description":"The monthly price search showed. The purchase is refused if the live price is now materially higher, so nobody pays more than shown."}},"type":"object","required":["number","country","number_type","purchase_key"],"title":"BuyNumberRequest","description":"A number the customer picked from search, plus a key to stop double-buys."},"heimdall__schemas__telephony__StartSessionResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Call session UUID"},"agent_id":{"type":"string","format":"uuid","title":"Agent Id","description":"Agent UUID handling the call"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id","description":"Crew version id, on a crew call"},"user_id":{"type":"string","format":"uuid","title":"User Id","description":"User UUID that owns the call"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id","description":"Workspace UUID the call belongs to"},"project_id":{"type":"string","format":"uuid","title":"Project Id","description":"Project UUID the call belongs to"},"status":{"type":"string","title":"Status","description":"Current call status","examples":["initiated"]}},"type":"object","required":["id","agent_id","user_id","workspace_id","project_id","status"],"title":"StartSessionResponse"},"heimdall__schemas__web_agent__StartSessionResponse":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id","description":"The agent the call starts on (a crew's main agent)"},"crew_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Crew Id","description":"The crew version, on a crew call"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["session_id","status"],"title":"StartSessionResponse"},"heimdall__schemas__webchat__SendMessageRequest":{"properties":{"content":{"type":"string","maxLength":4000,"minLength":1,"title":"Content"}},"type":"object","required":["content"],"title":"SendMessageRequest"}},"securitySchemes":{"HTTPBasic":{"type":"http","scheme":"basic"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}