{"openapi":"3.1.0","info":{"title":"ScaleAI","version":"1.0.0"},"paths":{"/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/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/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/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/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/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/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/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/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/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/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/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":[]}]}}},"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"},"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."},"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"},{"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"},{"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"},{"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"},{"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"},{"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"},{"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"},"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","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"},{"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"},{"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"},{"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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."},"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"},"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"},"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"},"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"},"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"},"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"},"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"}},"type":"object","required":["id","name","function_type","is_active","created_at"],"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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."},"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"},"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"},"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"},"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"},"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"},"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"},"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_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_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]"},"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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"},"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)."},"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"},"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."},"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."},"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"}},"type":"object","required":["url","event"],"title":"WebhookTestInput","description":"A draft webhook from the form; nothing needs to be saved first."},"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__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"}},"securitySchemes":{"HTTPBasic":{"type":"http","scheme":"basic"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}}}