{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/api/ask-ai/transcribe":{"post":{"tags":["ask-ai"],"summary":"Transcribe Ask Ai Recording","operationId":"transcribe_ask_ai_recording_api_ask_ai_transcribe_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_transcribe_ask_ai_recording_api_ask_ai_transcribe_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/jobs/{job_handle}":{"get":{"tags":["ask-ai"],"summary":"Get Ask Ai Job","description":"Return a workspace-scoped durable job without exposing cross-workspace records.","operationId":"get_ask_ai_job_api_ask_ai_jobs__job_handle__get","parameters":[{"name":"job_handle","in":"path","required":true,"schema":{"type":"string","title":"Job Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/attachments":{"post":{"tags":["ask-ai"],"summary":"Create Ask Ai Attachment","operationId":"create_ask_ai_attachment_api_ask_ai_attachments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUploadHandleRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskAiUploadHandle"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/attachments/{upload_id}/finalize":{"post":{"tags":["ask-ai"],"summary":"Finalize Ask Ai Attachment","operationId":"finalize_ask_ai_attachment_api_ask_ai_attachments__upload_id__finalize_post","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/attachments/{upload_id}/upload":{"post":{"tags":["ask-ai"],"summary":"Upload Ask Ai Attachment","operationId":"upload_ask_ai_attachment_api_ask_ai_attachments__upload_id__upload_post","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_ask_ai_attachment_api_ask_ai_attachments__upload_id__upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/attachments/{upload_id}/content":{"get":{"tags":["ask-ai"],"summary":"Get Ask Ai Attachment Content","description":"Same-origin inline file bytes for chat image previews after refresh.","operationId":"get_ask_ai_attachment_content_api_ask_ai_attachments__upload_id__content_get","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/artifacts/{artifact_id}/download":{"get":{"tags":["ask-ai"],"summary":"Download Ask Ai Artifact","operationId":"download_ask_ai_artifact_api_ask_ai_artifacts__artifact_id__download_get","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/artifacts/{artifact_id}":{"get":{"tags":["ask-ai"],"summary":"Get Ask Ai Artifact","operationId":"get_ask_ai_artifact_api_ask_ai_artifacts__artifact_id__get","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/artifacts/{artifact_id}/retry":{"post":{"tags":["ask-ai"],"summary":"Retry Ask Ai Artifact","description":"Retry a failed report using its persisted, workspace-scoped request filters.","operationId":"retry_ask_ai_artifact_api_ask_ai_artifacts__artifact_id__retry_post","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/conversations":{"get":{"tags":["ask-ai"],"summary":"List Conversations","operationId":"list_conversations_api_ask_ai_conversations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["ask-ai"],"summary":"Create Conversation","operationId":"create_conversation_api_ask_ai_conversations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/conversations/{conversation_id}":{"get":{"tags":["ask-ai"],"summary":"Get Conversation","operationId":"get_conversation_api_ask_ai_conversations__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ask-ai"],"summary":"Archive Conversation","operationId":"archive_conversation_api_ask_ai_conversations__conversation_id__delete","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/conversations/{conversation_id}/messages":{"post":{"tags":["ask-ai"],"summary":"Create Message","operationId":"create_message_api_ask_ai_conversations__conversation_id__messages_post","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/actions/confirm":{"post":{"tags":["ask-ai"],"summary":"Confirm Action","operationId":"confirm_action_api_ask_ai_actions_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/actions/{action_id}/reject":{"post":{"tags":["ask-ai"],"summary":"Reject Action","operationId":"reject_action_api_ask_ai_actions__action_id__reject_post","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/actions/{action_id}/dismiss":{"post":{"tags":["ask-ai"],"summary":"Dismiss Action","description":"Mark a proposed action succeeded after the client applied it locally (form draft).","operationId":"dismiss_action_api_ask_ai_actions__action_id__dismiss_post","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DismissActionRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ask-ai/usage":{"get":{"tags":["ask-ai"],"summary":"Get Usage","operationId":"get_usage_api_ask_ai_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/airtable/oauth/start":{"get":{"tags":["airtable"],"summary":"Start Airtable Oauth","operationId":"start_airtable_oauth_api_integrations_airtable_oauth_start_get","parameters":[{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"/integrations","title":"Callbackurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/airtable/oauth/callback":{"get":{"tags":["airtable"],"summary":"Complete Airtable Oauth","operationId":"complete_airtable_oauth_api_integrations_airtable_oauth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/airtable/configuration":{"get":{"tags":["airtable"],"summary":"Get Configuration","operationId":"get_configuration_api_workspaces__workspace_id__integrations_airtable_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/airtable/bases":{"get":{"tags":["airtable"],"summary":"List Bases","operationId":"list_bases_api_workspaces__workspace_id__integrations_airtable_bases_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/airtable/bases/{base_id}/schema":{"get":{"tags":["airtable"],"summary":"Get Schema","operationId":"get_schema_api_workspaces__workspace_id__integrations_airtable_bases__base_id__schema_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"base_id","in":"path","required":true,"schema":{"type":"string","title":"Base Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/airtable/configure":{"post":{"tags":["airtable"],"summary":"Configure","operationId":"configure_api_workspaces__workspace_id__integrations_airtable_configure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AirtablePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/register":{"post":{"summary":"Register Auth","operationId":"register_auth_api_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"summary":"Login Auth","operationId":"login_auth_api_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/start":{"get":{"summary":"Start Google Oauth","operationId":"start_google_oauth_api_auth_google_start_get","parameters":[{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callbackurl"}},{"name":"integration","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"google-workspace","title":"Integration"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/callback":{"get":{"summary":"Complete Google Oauth","operationId":"complete_google_oauth_api_auth_google_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/forgot-password":{"post":{"summary":"Forgot Password Auth","operationId":"forgot_password_auth_api_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset-password":{"post":{"summary":"Reset Password Auth","operationId":"reset_password_auth_api_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/refresh":{"post":{"summary":"Refresh Auth","operationId":"refresh_auth_api_auth_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}}}}},"/api/auth/logout":{"post":{"summary":"Logout Auth","operationId":"logout_auth_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}}}},"/api/auth/me":{"get":{"summary":"Get Me","operationId":"get_me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthSessionResponse"}}}}}}},"/api/auth/verify-status":{"get":{"summary":"Get Verify Status","operationId":"get_verify_status_api_auth_verify_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyStatusResponse"}}}}}}},"/api/auth/resend-otp":{"post":{"summary":"Resend Otp Auth","operationId":"resend_otp_auth_api_auth_resend_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendOtpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify-otp":{"post":{"summary":"Verify Otp Auth","operationId":"verify_otp_auth_api_auth_verify_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOtpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login/{provider}/start":{"get":{"summary":"Start Provider Login","operationId":"start_provider_login_api_auth_login__provider__start_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callbackurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login/{provider}/callback":{"get":{"summary":"Complete Provider Login","operationId":"complete_provider_login_api_auth_login__provider__callback_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/drive/status":{"get":{"summary":"Get Drive Status","operationId":"get_drive_status_api_workspaces__workspace_id__integrations_drive_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/drive/picker-token":{"get":{"summary":"Get Drive Picker Token","operationId":"get_drive_picker_token_api_workspaces__workspace_id__integrations_drive_picker_token_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/drive":{"delete":{"summary":"Disconnect Drive Account","operationId":"disconnect_drive_account_api_workspaces__workspace_id__integrations_drive_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/drive/spreadsheet":{"get":{"summary":"Get Drive Spreadsheet","operationId":"get_drive_spreadsheet_api_workspaces__workspace_id__integrations_drive_spreadsheet_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Configure Drive Spreadsheet","operationId":"configure_drive_spreadsheet_api_workspaces__workspace_id__integrations_drive_spreadsheet_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Drive Spreadsheet","operationId":"delete_drive_spreadsheet_api_workspaces__workspace_id__integrations_drive_spreadsheet_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/drive/spreadsheet/sync":{"post":{"summary":"Sync Drive Spreadsheet","operationId":"sync_drive_spreadsheet_api_workspaces__workspace_id__integrations_drive_spreadsheet_sync_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/drive":{"post":{"summary":"Google Drive Webhook","operationId":"google_drive_webhook_api_webhooks_drive_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/dropbox/oauth/start":{"get":{"summary":"Start Dropbox Oauth","operationId":"start_dropbox_oauth_api_integrations_dropbox_oauth_start_get","parameters":[{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"/integrations","title":"Callbackurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/dropbox/oauth/callback":{"get":{"summary":"Complete Dropbox Oauth","operationId":"complete_dropbox_oauth_api_integrations_dropbox_oauth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/dropbox/status":{"get":{"summary":"Get Dropbox Status","operationId":"get_dropbox_status_api_workspaces__workspace_id__integrations_dropbox_status_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/dropbox/configure":{"post":{"summary":"Configure Dropbox File","operationId":"configure_dropbox_file_api_workspaces__workspace_id__integrations_dropbox_configure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/dropbox/headers":{"post":{"summary":"Get Dropbox File Headers","operationId":"get_dropbox_file_headers_api_workspaces__workspace_id__integrations_dropbox_headers_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/dropbox/files":{"get":{"summary":"List Dropbox Files","operationId":"list_dropbox_files_api_workspaces__workspace_id__integrations_dropbox_files_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/dropbox/kb-files":{"get":{"summary":"List Dropbox Kb Files","description":"Browse Dropbox folders for knowledge-base-compatible files.","operationId":"list_dropbox_kb_files_api_workspaces__workspace_id__integrations_dropbox_kb_files_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/dropbox/resources":{"get":{"summary":"List Dropbox Resources","description":"Search Dropbox files available to attach as knowledge-base sources.","operationId":"list_dropbox_resources_api_workspaces__workspace_id__integrations_dropbox_resources_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/dropbox/sync":{"post":{"summary":"Sync Dropbox File","operationId":"sync_dropbox_file_api_workspaces__workspace_id__integrations_dropbox_sync_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/dropbox":{"get":{"summary":"Dropbox Webhook Verify","description":"Dropbox webhook verification: echo back the challenge parameter.","operationId":"dropbox_webhook_verify_api_webhooks_dropbox_get","parameters":[{"name":"challenge","in":"query","required":true,"schema":{"type":"string","title":"Challenge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Dropbox Webhook Notification","description":"Receive file change notifications from Dropbox.","operationId":"dropbox_webhook_notification_api_webhooks_dropbox_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspaces/{workspace_id}/integrations/tally/forms":{"get":{"summary":"List Tally Forms","operationId":"list_tally_forms_api_workspaces__workspace_id__integrations_tally_forms_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/tally/forms/{form_id}/fields":{"get":{"summary":"List Tally Form Fields","operationId":"list_tally_form_fields_api_workspaces__workspace_id__integrations_tally_forms__form_id__fields_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/tally/configuration":{"get":{"summary":"Get Tally Configuration","operationId":"get_tally_configuration_api_workspaces__workspace_id__integrations_tally_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/tally/configure":{"post":{"summary":"Configure Tally Integration","operationId":"configure_tally_integration_api_workspaces__workspace_id__integrations_tally_configure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/tally/{workspace_id}/{webhook_secret}":{"post":{"summary":"Tally Webhook","operationId":"tally_webhook_api_webhooks_tally__workspace_id___webhook_secret__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"webhook_secret","in":"path","required":true,"schema":{"type":"string","title":"Webhook Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/typeform/forms":{"get":{"summary":"List Typeform Forms","operationId":"list_typeform_forms_api_workspaces__workspace_id__integrations_typeform_forms_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/typeform/forms/{form_id}/fields":{"get":{"summary":"List Typeform Form Fields","operationId":"list_typeform_form_fields_api_workspaces__workspace_id__integrations_typeform_forms__form_id__fields_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/typeform/configuration":{"get":{"summary":"Get Typeform Configuration","operationId":"get_typeform_configuration_api_workspaces__workspace_id__integrations_typeform_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/typeform/configure":{"post":{"summary":"Configure Typeform Integration","operationId":"configure_typeform_integration_api_workspaces__workspace_id__integrations_typeform_configure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/typeform/{workspace_id}":{"post":{"summary":"Typeform Webhook","operationId":"typeform_webhook_api_webhooks_typeform__workspace_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/jotform/forms":{"get":{"summary":"List Jotform Forms","operationId":"list_jotform_forms_api_workspaces__workspace_id__integrations_jotform_forms_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/jotform/forms/{form_id}/fields":{"get":{"summary":"List Jotform Form Fields","operationId":"list_jotform_form_fields_api_workspaces__workspace_id__integrations_jotform_forms__form_id__fields_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/jotform/configuration":{"get":{"summary":"Get Jotform Configuration","operationId":"get_jotform_configuration_api_workspaces__workspace_id__integrations_jotform_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/jotform/configure":{"post":{"summary":"Configure Jotform Integration","operationId":"configure_jotform_integration_api_workspaces__workspace_id__integrations_jotform_configure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/jotform/{workspace_id}/{webhook_secret}":{"post":{"summary":"Jotform Webhook","operationId":"jotform_webhook_api_webhooks_jotform__workspace_id___webhook_secret__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"webhook_secret","in":"path","required":true,"schema":{"type":"string","title":"Webhook Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/fillout/forms":{"get":{"summary":"List Fillout Forms","operationId":"list_fillout_forms_api_workspaces__workspace_id__integrations_fillout_forms_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/fillout/forms/{form_id}/fields":{"get":{"summary":"List Fillout Form Fields","operationId":"list_fillout_form_fields_api_workspaces__workspace_id__integrations_fillout_forms__form_id__fields_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/fillout/configuration":{"get":{"summary":"Get Fillout Configuration","operationId":"get_fillout_configuration_api_workspaces__workspace_id__integrations_fillout_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/fillout/configure":{"post":{"summary":"Configure Fillout Integration","operationId":"configure_fillout_integration_api_workspaces__workspace_id__integrations_fillout_configure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/fillout/{workspace_id}/{webhook_secret}":{"post":{"summary":"Fillout Webhook","operationId":"fillout_webhook_api_webhooks_fillout__workspace_id___webhook_secret__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"webhook_secret","in":"path","required":true,"schema":{"type":"string","title":"Webhook Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/hubspot/oauth/start":{"get":{"summary":"Start Hubspot Oauth","operationId":"start_hubspot_oauth_api_integrations_hubspot_oauth_start_get","parameters":[{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"/integrations","title":"Callbackurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/hubspot/oauth/callback":{"get":{"summary":"Complete Hubspot Oauth","operationId":"complete_hubspot_oauth_api_integrations_hubspot_oauth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/hubspot/configuration":{"get":{"summary":"Get Hubspot Configuration","operationId":"get_hubspot_configuration_api_workspaces__workspace_id__integrations_hubspot_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/hubspot/properties":{"get":{"summary":"List Hubspot Contact Properties","operationId":"list_hubspot_contact_properties_api_workspaces__workspace_id__integrations_hubspot_properties_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/hubspot/configure":{"post":{"summary":"Configure Hubspot Integration","operationId":"configure_hubspot_integration_api_workspaces__workspace_id__integrations_hubspot_configure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/hubspot/preview":{"post":{"summary":"Preview Hubspot Contacts","operationId":"preview_hubspot_contacts_api_workspaces__workspace_id__integrations_hubspot_preview_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/hubspot/import":{"post":{"summary":"Import Hubspot Contacts","operationId":"import_hubspot_contacts_api_workspaces__workspace_id__integrations_hubspot_import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/hubspot/sync-call/{call_id}":{"post":{"summary":"Sync Hubspot Call Result","operationId":"sync_hubspot_call_result_api_workspaces__workspace_id__integrations_hubspot_sync_call__call_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/hubspot/webhook":{"post":{"summary":"Hubspot Webhook","operationId":"hubspot_webhook_api_integrations_hubspot_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/notion/oauth/start":{"get":{"summary":"Start Notion Oauth","operationId":"start_notion_oauth_api_integrations_notion_oauth_start_get","parameters":[{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"/integrations","title":"Callbackurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/notion/oauth/callback":{"get":{"summary":"Complete Notion Oauth","operationId":"complete_notion_oauth_api_integrations_notion_oauth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/notion/configuration":{"get":{"summary":"Get Notion Configuration","operationId":"get_notion_configuration_api_workspaces__workspace_id__integrations_notion_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/notion/resources":{"get":{"summary":"List Notion Resources","operationId":"list_notion_resources_api_workspaces__workspace_id__integrations_notion_resources_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/calendly/oauth/start":{"get":{"summary":"Start Calendly Oauth","operationId":"start_calendly_oauth_api_integrations_calendly_oauth_start_get","parameters":[{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"/integrations","title":"Callbackurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/calendly/oauth/callback":{"get":{"summary":"Complete Calendly Oauth","operationId":"complete_calendly_oauth_api_integrations_calendly_oauth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/calendly/configuration":{"get":{"summary":"Get Calendly Configuration","operationId":"get_calendly_configuration_api_workspaces__workspace_id__integrations_calendly_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/calendly/sync-event-types":{"post":{"summary":"Sync Calendly Event Types","operationId":"sync_calendly_event_types_api_workspaces__workspace_id__integrations_calendly_sync_event_types_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/calendly/usecase-event-type":{"put":{"summary":"Assign Calendly Usecase Event Type","operationId":"assign_calendly_usecase_event_type_api_workspaces__workspace_id__integrations_calendly_usecase_event_type_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignCalendlyUseCaseEventTypeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/meetings":{"get":{"summary":"List Workspace Meetings","operationId":"list_workspace_meetings_api_workspaces__workspace_id__meetings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/calendly":{"post":{"summary":"Calendly Webhook","operationId":"calendly_webhook_api_webhooks_calendly_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/cal-com/oauth/start":{"get":{"summary":"Start Cal Com Oauth","operationId":"start_cal_com_oauth_api_integrations_cal_com_oauth_start_get","parameters":[{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"/integrations","title":"Callbackurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/cal-com/oauth/callback":{"get":{"summary":"Complete Cal Com Oauth","operationId":"complete_cal_com_oauth_api_integrations_cal_com_oauth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/cal-com/configuration":{"get":{"summary":"Get Cal Com Configuration","operationId":"get_cal_com_configuration_api_workspaces__workspace_id__integrations_cal_com_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/cal-com/sync-event-types":{"post":{"summary":"Sync Cal Com Event Types","operationId":"sync_cal_com_event_types_api_workspaces__workspace_id__integrations_cal_com_sync_event_types_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/cal-com/usecase-event-type":{"put":{"summary":"Assign Cal Com Usecase Event Type","operationId":"assign_cal_com_usecase_event_type_api_workspaces__workspace_id__integrations_cal_com_usecase_event_type_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignCalComUseCaseEventTypeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/cal-com":{"post":{"summary":"Cal Com Webhook","operationId":"cal_com_webhook_api_webhooks_cal_com_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspaces/{workspace_id}/integrations/google-calendar/configuration":{"get":{"summary":"Get Google Calendar Configuration","operationId":"get_google_calendar_configuration_api_workspaces__workspace_id__integrations_google_calendar_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/google-calendar/usecase-calendar":{"put":{"summary":"Assign Google Usecase Calendar","operationId":"assign_google_usecase_calendar_api_workspaces__workspace_id__integrations_google_calendar_usecase_calendar_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignGoogleUseCaseCalendarRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/scheduling/availability":{"get":{"tags":["scheduling"],"summary":"Get Meeting Availability","operationId":"get_meeting_availability_api_v1_scheduling_availability_get","parameters":[{"name":"call_id","in":"query","required":true,"schema":{"type":"string","description":"Call ID from context (auto-injected by Ultravox)","title":"Call Id"},"description":"Call ID from context (auto-injected by Ultravox)"},{"name":"timezone","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},{"name":"preferred_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Customer's preferred day (ISO date, day name, today, or tomorrow)","title":"Preferred Date"},"description":"Customer's preferred day (ISO date, day name, today, or tomorrow)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/scheduling/book":{"post":{"tags":["scheduling"],"summary":"Book Meeting","operationId":"book_meeting_api_v1_scheduling_book_post","parameters":[{"name":"call_id","in":"query","required":true,"schema":{"type":"string","description":"Call ID from context (auto-injected by Ultravox)","title":"Call Id"},"description":"Call ID from context (auto-injected by Ultravox)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookMeetingBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/scheduling/calendly/availability":{"get":{"tags":["scheduling"],"summary":"Get Calendly Availability","operationId":"get_calendly_availability_api_v1_scheduling_calendly_availability_get","parameters":[{"name":"call_id","in":"query","required":true,"schema":{"type":"string","description":"Call ID from context (auto-injected by Ultravox)","title":"Call Id"},"description":"Call ID from context (auto-injected by Ultravox)"},{"name":"timezone","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},{"name":"preferred_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferred Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/scheduling/calendly/book":{"post":{"tags":["scheduling"],"summary":"Book Calendly Meeting","operationId":"book_calendly_meeting_api_v1_scheduling_calendly_book_post","parameters":[{"name":"call_id","in":"query","required":true,"schema":{"type":"string","description":"Call ID from context (auto-injected by Ultravox)","title":"Call Id"},"description":"Call ID from context (auto-injected by Ultravox)"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookMeetingBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/salesforce/oauth/start":{"get":{"summary":"Start Salesforce Oauth","operationId":"start_salesforce_oauth_api_integrations_salesforce_oauth_start_get","parameters":[{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"/integrations","title":"Callbackurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/salesforce/oauth/callback":{"get":{"summary":"Complete Salesforce Oauth","operationId":"complete_salesforce_oauth_api_integrations_salesforce_oauth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/salesforce/configuration":{"get":{"summary":"Get Salesforce Configuration","operationId":"get_salesforce_configuration_api_workspaces__workspace_id__integrations_salesforce_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/salesforce/properties":{"get":{"summary":"List Salesforce Properties","operationId":"list_salesforce_properties_api_workspaces__workspace_id__integrations_salesforce_properties_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"objectType","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objecttype"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/salesforce/configure":{"post":{"summary":"Configure Salesforce Integration","operationId":"configure_salesforce_integration_api_workspaces__workspace_id__integrations_salesforce_configure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/salesforce/preview":{"post":{"summary":"Preview Salesforce Records","operationId":"preview_salesforce_records_api_workspaces__workspace_id__integrations_salesforce_preview_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/salesforce/import":{"post":{"summary":"Import Salesforce Records","operationId":"import_salesforce_records_api_workspaces__workspace_id__integrations_salesforce_import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/salesforce/sync-new":{"post":{"summary":"Sync New Salesforce Leads","operationId":"sync_new_salesforce_leads_api_workspaces__workspace_id__integrations_salesforce_sync_new_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceSyncNewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/salesforce/sync-call/{call_id}":{"post":{"summary":"Sync Salesforce Call Result","operationId":"sync_salesforce_call_result_api_workspaces__workspace_id__integrations_salesforce_sync_call__call_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/salesforce/{workspace_id}/{secret}":{"post":{"summary":"Salesforce Webhook","description":"Receive notifications from Salesforce when records are created/updated/deleted.","operationId":"salesforce_webhook_api_webhooks_salesforce__workspace_id___secret__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceWebhookPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/pipedrive/oauth/start":{"get":{"summary":"Start Pipedrive Oauth","operationId":"start_pipedrive_oauth_api_integrations_pipedrive_oauth_start_get","parameters":[{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"/integrations","title":"Callbackurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/pipedrive/oauth/callback":{"get":{"summary":"Complete Pipedrive Oauth","operationId":"complete_pipedrive_oauth_api_integrations_pipedrive_oauth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/pipedrive/configuration":{"get":{"summary":"Get Pipedrive Configuration","operationId":"get_pipedrive_configuration_api_workspaces__workspace_id__integrations_pipedrive_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/pipedrive/configure":{"post":{"summary":"Configure Pipedrive Integration","operationId":"configure_pipedrive_integration_api_workspaces__workspace_id__integrations_pipedrive_configure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/pipedrive":{"post":{"summary":"Pipedrive Webhook","operationId":"pipedrive_webhook_api_webhooks_pipedrive_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"secret","in":"query","required":true,"schema":{"type":"string","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/pipedrive/person-fields":{"get":{"summary":"List Pipedrive Person Fields","operationId":"list_pipedrive_person_fields_api_workspaces__workspace_id__integrations_pipedrive_person_fields_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/pipedrive/preview":{"post":{"summary":"Preview Pipedrive Persons","operationId":"preview_pipedrive_persons_api_workspaces__workspace_id__integrations_pipedrive_preview_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/pipedrive/import":{"post":{"summary":"Import Pipedrive Persons","operationId":"import_pipedrive_persons_api_workspaces__workspace_id__integrations_pipedrive_import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/pipedrive/sync-new":{"post":{"summary":"Sync New Pipedrive Leads","operationId":"sync_new_pipedrive_leads_api_workspaces__workspace_id__integrations_pipedrive_sync_new_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/zoho/oauth/start":{"get":{"summary":"Start Zoho Oauth","operationId":"start_zoho_oauth_api_integrations_zoho_oauth_start_get","parameters":[{"name":"callbackUrl","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"/integrations","title":"Callbackurl"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/zoho/oauth/callback":{"get":{"summary":"Complete Zoho Oauth","operationId":"complete_zoho_oauth_api_integrations_zoho_oauth_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},{"name":"accounts-server","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accounts-Server"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/zoho/configuration":{"get":{"summary":"Get Zoho Configuration","operationId":"get_zoho_configuration_api_workspaces__workspace_id__integrations_zoho_configuration_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/zoho/properties":{"get":{"summary":"List Zoho Properties","operationId":"list_zoho_properties_api_workspaces__workspace_id__integrations_zoho_properties_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"objectType","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objecttype"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/zoho/configure":{"post":{"summary":"Configure Zoho Integration","operationId":"configure_zoho_integration_api_workspaces__workspace_id__integrations_zoho_configure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/zoho/preview":{"post":{"summary":"Preview Zoho Records","operationId":"preview_zoho_records_api_workspaces__workspace_id__integrations_zoho_preview_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/zoho/import":{"post":{"summary":"Import Zoho Records","operationId":"import_zoho_records_api_workspaces__workspace_id__integrations_zoho_import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/zoho/sync-new":{"post":{"summary":"Sync New Zoho Leads","operationId":"sync_new_zoho_leads_api_workspaces__workspace_id__integrations_zoho_sync_new_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncNewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/zoho/sync-call/{call_id}":{"post":{"summary":"Sync Zoho Call Result","operationId":"sync_zoho_call_result_api_workspaces__workspace_id__integrations_zoho_sync_call__call_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/zoho/{workspace_id}/{secret}":{"post":{"summary":"Zoho Webhook","description":"Receive real-time notifications from Zoho CRM when records are created/updated/deleted.","operationId":"zoho_webhook_api_webhooks_zoho__workspace_id___secret__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"secret","in":"path","required":true,"schema":{"type":"string","title":"Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZohoWebhookPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/unsubscribe":{"get":{"summary":"Check Unsubscribe Token","operationId":"check_unsubscribe_token_api_unsubscribe_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Check Unsubscribe Token Api Unsubscribe Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Unsubscribe","operationId":"unsubscribe_api_unsubscribe_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsubscribeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsubscribeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces":{"get":{"summary":"List Workspaces","operationId":"list_workspaces_api_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Workspace","operationId":"create_workspace_api_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}":{"get":{"summary":"Get Workspace","operationId":"get_workspace_api_workspaces__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Workspace","operationId":"update_workspace_api_workspaces__workspace_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__api__routes__workspaces__WorkspaceUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Workspace","operationId":"delete_workspace_api_workspaces__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/regenerate-api-key":{"post":{"summary":"Regenerate Api Key","operationId":"regenerate_api_key_api_workspaces__workspace_id__regenerate_api_key_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/features":{"get":{"summary":"Get Workspace Features","operationId":"get_workspace_features_api_workspaces__workspace_id__features_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFeaturesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/self-suspend":{"post":{"summary":"Self Suspend Workspace","operationId":"self_suspend_workspace_api_workspaces__workspace_id__self_suspend_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelfSuspendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/self-unsuspend":{"post":{"summary":"Self Unsuspend Workspace","operationId":"self_unsuspend_workspace_api_workspaces__workspace_id__self_unsuspend_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/agent-performance":{"get":{"summary":"Get Agent Performance","operationId":"get_agent_performance_api_analytics_agent_performance_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/hourly-performance":{"get":{"summary":"Get Hourly Performance","operationId":"get_hourly_performance_api_analytics_hourly_performance_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/time-success-chart":{"get":{"summary":"Get Time Success Chart","operationId":"get_time_success_chart_api_analytics_time_success_chart_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/monthly-stats":{"get":{"summary":"Get Monthly Stats","operationId":"get_monthly_stats_api_analytics_monthly_stats_get","parameters":[{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/agent-success":{"get":{"summary":"Get Agent Success","operationId":"get_agent_success_api_analytics_agent_success_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/usecase-success":{"get":{"summary":"Get Usecase Success","operationId":"get_usecase_success_api_analytics_usecase_success_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/usecase-report":{"get":{"summary":"Get Usecase Report","operationId":"get_usecase_report_api_analytics_usecase_report_get","parameters":[{"name":"useCaseId","in":"query","required":true,"schema":{"type":"string","description":"Usecase id to report on","title":"Usecaseid"},"description":"Usecase id to report on"},{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/campaigns-overview":{"get":{"summary":"Get Campaigns Overview","description":"Single endpoint powering the Campaigns analytics tab (real workspace data only).","operationId":"get_campaigns_overview_api_analytics_campaigns_overview_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"campaignId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaignid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/campaign-leaderboard":{"get":{"summary":"Get Campaign Leaderboard","operationId":"get_campaign_leaderboard_api_analytics_campaign_leaderboard_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"campaignId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaignid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/campaign-trends":{"get":{"summary":"Get Campaign Trends","operationId":"get_campaign_trends_api_analytics_campaign_trends_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"campaignId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaignid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/campaign-funnels":{"get":{"summary":"Get Campaign Funnels","operationId":"get_campaign_funnels_api_analytics_campaign_funnels_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"campaignId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaignid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/call-volume-trends":{"get":{"summary":"Get Call Volume Trends","operationId":"get_call_volume_trends_api_analytics_call_volume_trends_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/call-performance":{"get":{"summary":"Get Call Performance","operationId":"get_call_performance_api_analytics_call_performance_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/call-duration":{"get":{"summary":"Get Call Duration Distribution","operationId":"get_call_duration_distribution_api_analytics_call_duration_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/call-outcomes":{"get":{"summary":"Get Call Outcomes","operationId":"get_call_outcomes_api_analytics_call_outcomes_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/call-transfer-stats":{"get":{"summary":"Get Call Transfer Stats","operationId":"get_call_transfer_stats_api_analytics_call_transfer_stats_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/call-sentiment":{"get":{"summary":"Get Call Sentiment","operationId":"get_call_sentiment_api_analytics_call_sentiment_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/objections":{"get":{"summary":"Get Objections","operationId":"get_objections_api_analytics_objections_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"campaignId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaignid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/task-action-center":{"get":{"summary":"Get Task Action Center","operationId":"get_task_action_center_api_analytics_task_action_center_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/calls-kpis":{"get":{"summary":"Get Calls Kpis","operationId":"get_calls_kpis_api_analytics_calls_kpis_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/call-status-distribution":{"get":{"summary":"Get Call Status Distribution","operationId":"get_call_status_distribution_api_analytics_call_status_distribution_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/call-outcomes-trend":{"get":{"summary":"Get Call Outcomes Trend","operationId":"get_call_outcomes_trend_api_analytics_call_outcomes_trend_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/live-call-feed":{"get":{"summary":"Get Live Call Feed","operationId":"get_live_call_feed_api_analytics_live_call_feed_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/echo-top-pages":{"get":{"summary":"Get Echo Top Pages","operationId":"get_echo_top_pages_api_analytics_echo_top_pages_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/echo":{"get":{"summary":"Get Echo Analytics","operationId":"get_echo_analytics_api_analytics_echo_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/echo-overview":{"get":{"summary":"Get Echo Overview","operationId":"get_echo_overview_api_analytics_echo_overview_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/stats-metrics":{"get":{"summary":"Get Stats Metrics","operationId":"get_stats_metrics_api_analytics_stats_metrics_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/task-distribution":{"get":{"summary":"Get Task Distribution","operationId":"get_task_distribution_api_analytics_task_distribution_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/calendar-tasks":{"get":{"summary":"Get Calendar Tasks","operationId":"get_calendar_tasks_api_analytics_calendar_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/calendar-kpis":{"get":{"summary":"Get Calendar Kpis","operationId":"get_calendar_kpis_api_analytics_calendar_kpis_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/task-density-heatmap":{"get":{"summary":"Get Task Density Heatmap","operationId":"get_task_density_heatmap_api_analytics_task_density_heatmap_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/agent-workload":{"get":{"summary":"Get Agent Workload","operationId":"get_agent_workload_api_analytics_agent_workload_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/pending-tasks":{"get":{"summary":"Get Pending Tasks","operationId":"get_pending_tasks_api_analytics_pending_tasks_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/task-completion-trends":{"get":{"summary":"Get Task Completion Trends","operationId":"get_task_completion_trends_api_analytics_task_completion_trends_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":7,"default":14,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/calendar-overview":{"get":{"summary":"Get Calendar Overview","operationId":"get_calendar_overview_api_analytics_calendar_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/crm-integration-status":{"get":{"summary":"Get Crm Integration Status","operationId":"get_crm_integration_status_api_analytics_crm_integration_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/call-funnel":{"get":{"summary":"Get Call Funnel","operationId":"get_call_funnel_api_analytics_call_funnel_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/live-calls":{"get":{"summary":"Get Live Calls","operationId":"get_live_calls_api_analytics_live_calls_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/analytics/agent-activity-heatmap":{"get":{"summary":"Get Agent Activity Heatmap","operationId":"get_agent_activity_heatmap_api_analytics_agent_activity_heatmap_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/efficiency-score":{"get":{"summary":"Get Efficiency Score","operationId":"get_efficiency_score_api_analytics_efficiency_score_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/cost-roi":{"get":{"summary":"Get Cost Roi","operationId":"get_cost_roi_api_analytics_cost_roi_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/drop-off-analysis":{"get":{"summary":"Get Drop Off Analysis","operationId":"get_drop_off_analysis_api_analytics_drop_off_analysis_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/rejected-lead-reasons":{"get":{"summary":"Get Rejected Lead Reasons","operationId":"get_rejected_lead_reasons_api_analytics_rejected_lead_reasons_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/settings":{"get":{"summary":"Get Analytics Settings Route","operationId":"get_analytics_settings_route_api_analytics_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Update Analytics Settings Route","operationId":"update_analytics_settings_route_api_analytics_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsSettingsUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/insights":{"get":{"summary":"Get Insights","description":"Heuristic (non-ML) rule engine surfacing the most notable week-over-week changes.","operationId":"get_insights_api_analytics_insights_get","parameters":[{"name":"startDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"}},{"name":"endDate","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},{"name":"agentId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/analytics/recent-activity":{"get":{"summary":"Get Recent Activity","description":"Recent workspace events for the overview activity feed.","operationId":"get_recent_activity_api_analytics_recent_activity_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports/templates":{"get":{"tags":["reports"],"summary":"List Report Templates","operationId":"list_report_templates_api_reports_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reports/generate":{"post":{"tags":["reports"],"summary":"Generate Report Route","operationId":"generate_report_route_api_reports_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateReportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports":{"get":{"tags":["reports"],"summary":"List Reports","operationId":"list_reports_api_reports_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports/{report_id}":{"get":{"tags":["reports"],"summary":"Get Report","operationId":"get_report_api_reports__report_id__get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["reports"],"summary":"Delete Report","operationId":"delete_report_api_reports__report_id__delete","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports/{report_id}/download":{"get":{"tags":["reports"],"summary":"Download Report","operationId":"download_report_api_reports__report_id__download_get","parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports/schedules/list":{"get":{"tags":["reports"],"summary":"List Schedules","operationId":"list_schedules_api_reports_schedules_list_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reports/schedules":{"post":{"tags":["reports"],"summary":"Create Schedule","operationId":"create_schedule_api_reports_schedules_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports/schedules/{schedule_id}":{"patch":{"tags":["reports"],"summary":"Update Schedule","operationId":"update_schedule_api_reports_schedules__schedule_id__patch","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["reports"],"summary":"Delete Schedule","operationId":"delete_schedule_api_reports_schedules__schedule_id__delete","parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calls":{"get":{"summary":"Get Calls Api","operationId":"get_calls_api_api_calls_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create New Call Api","operationId":"create_new_call_api_api_calls_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NewCallRequest"},{"items":{"$ref":"#/components/schemas/NewCallRequest"},"type":"array"}],"title":"Call Request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calls/{call_id}":{"get":{"summary":"Get Call Api","operationId":"get_call_api_api_calls__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calls/{call_id}/recording":{"get":{"summary":"Stream Call Recording","description":"Stream the call recording audio for browser playback (same-origin).","operationId":"stream_call_recording_api_calls__call_id__recording_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calls/{call_id}/regenerate-details":{"post":{"summary":"Regenerate Call Details Workspace","description":"Workspace-scoped endpoint to regenerate a call transcript and/or summary using the self-hosted model.","operationId":"regenerate_call_details_workspace_api_calls__call_id__regenerate_details_post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Regenerate Call Details Workspace Api Calls  Call Id  Regenerate Details Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calls/{call_id}/regenerate-summary":{"post":{"summary":"Regenerate Call Summary Workspace","operationId":"regenerate_call_summary_workspace_api_calls__call_id__regenerate_summary_post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Regenerate Call Summary Workspace Api Calls  Call Id  Regenerate Summary Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/calls/{call_id}/transcript/archive":{"get":{"summary":"Get Call Transcript Archive","description":"Return a short-lived URL for an authorized call transcript archive.","operationId":"get_call_transcript_archive_api_calls__call_id__transcript_archive_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Call Transcript Archive Api Calls  Call Id  Transcript Archive Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/voices":{"get":{"summary":"Get Voices Api","description":"Get all voices.\n\nArgs:\n    request (Request): The request object\n\nRaises:\n    HTTPException: If failed to get voices\n\nReturns:\n    dict: The voices details","operationId":"get_voices_api_api_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/gemini-voices":{"get":{"summary":"Get Gemini Voices Api","description":"Get all gemini voices.\n\nRaises:\n    HTTPException: If failed to get voices\n\nReturns:\n    dict: The voices details","operationId":"get_gemini_voices_api_api_gemini_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/tokens":{"get":{"summary":"List Tokens Api","operationId":"list_tokens_api_api_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TokenSummaryResponse"},"type":"array","title":"Response List Tokens Api Api Tokens Get"}}}}}},"post":{"summary":"Create Token Api","operationId":"create_token_api_api_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tokens/{token_id}":{"delete":{"summary":"Delete Token Api","operationId":"delete_token_api_api_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/documents":{"get":{"summary":"List Documents Api","operationId":"list_documents_api_api_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DocumentResponse"},"type":"array","title":"Response List Documents Api Api Documents Get"}}}}}},"post":{"summary":"Create Document Api","operationId":"create_document_api_api_documents_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}}}}},"/api/documents/{document_id}":{"get":{"summary":"Get Document Api","operationId":"get_document_api_api_documents__document_id__get","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Document Api","operationId":"update_document_api_api_documents__document_id__put","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Document Api","operationId":"delete_document_api_api_documents__document_id__delete","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health":{"get":{"summary":"Check Health","operationId":"check_health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/service-health":{"get":{"summary":"Check Services Health","operationId":"check_services_health_api_service_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/echo/voice/gemini-ws":{"post":{"tags":["echo"],"summary":"Get Gemini Websocket Proxy Url","description":"Get the proxy WebSocket URL for Gemini voice calls.\n\nReturns a proxy URL that the frontend connects to. The backend handles\nthe actual Gemini API connection, keeping the API key secure.","operationId":"get_gemini_websocket_proxy_url_api_public_echo_voice_gemini_ws_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeminiWebSocketRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeminiWebSocketResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/widget-config/{workspace_id}":{"get":{"tags":["echo"],"summary":"Get Widget Config","operationId":"get_widget_config_api_public_widget_config__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/echo/session":{"post":{"tags":["echo"],"summary":"Create Or Resume Echo Session","operationId":"create_or_resume_echo_session_api_public_echo_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/echo/message":{"post":{"tags":["echo"],"summary":"Save Echo Message","operationId":"save_echo_message_api_public_echo_message_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/echo/upload":{"post":{"tags":["echo"],"summary":"Upload Echo Attachment","description":"Upload one or more media files (image/PDF) for use in an Echo chat message.\n\nValidates the request origin against the workspace's allowed domains, enforces\na 10MB per-file limit, and persists each file to Spaces. Returns a list of\nattachment descriptors (``fileName``, ``fileUrl``, ``size``, ``mimeType``, ...)\nready to be embedded in the next ``POST /api/public/echo/message`` call as\n``attachments``.","operationId":"upload_echo_attachment_api_public_echo_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_echo_attachment_api_public_echo_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/echo/history":{"get":{"tags":["echo"],"summary":"Fetch Echo History","operationId":"fetch_echo_history_api_public_echo_history_get","parameters":[{"name":"sessionId","in":"query","required":true,"schema":{"type":"string","title":"Sessionid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":15,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/echo/feedback":{"post":{"tags":["echo"],"summary":"Submit Echo Feedback","operationId":"submit_echo_feedback_api_public_echo_feedback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/echo/sessions":{"get":{"tags":["echo"],"summary":"List Echo Sessions","operationId":"list_echo_sessions_api_echo_sessions_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"lastActivityAt","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"desc","title":"Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/echo/sessions/{session_id}":{"get":{"tags":["echo"],"summary":"Get Echo Session","operationId":"get_echo_session_api_echo_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["echo"],"summary":"Delete Echo Session","operationId":"delete_echo_session_api_echo_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/echo/sessions/{session_id}/summary":{"post":{"tags":["echo"],"summary":"Generate Echo Session Summary","description":"Manually generate (or regenerate) the LLM summary for an Echo session.\n\nRuns synchronously and returns the resulting summary so the UI can render\nit immediately. Replaces whatever was previously stored.","operationId":"generate_echo_session_summary_api_echo_sessions__session_id__summary_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/echo/sessions":{"get":{"tags":["echo"],"summary":"Fetch Recent Echo Sessions","operationId":"fetch_recent_echo_sessions_api_public_echo_sessions_get","parameters":[{"name":"visitorId","in":"query","required":true,"schema":{"type":"string","title":"Visitorid"}},{"name":"workspaceId","in":"query","required":true,"schema":{"type":"string","title":"Workspaceid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/echo/documents":{"post":{"tags":["echo"],"summary":"Search Echo Documents","operationId":"search_echo_documents_api_public_echo_documents_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/echo/lead-capture/detect":{"post":{"tags":["echo"],"summary":"Detect Echo Lead Capture","operationId":"detect_echo_lead_capture_api_public_echo_lead_capture_detect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/echo/lead-capture/submit":{"post":{"tags":["echo"],"summary":"Submit Echo Lead Capture","operationId":"submit_echo_lead_capture_api_public_echo_lead_capture_submit_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/workspaces/{workspace_id}/echo/preview/chat":{"post":{"tags":["echo"],"summary":"Echo Preview Chat","description":"Authenticated dashboard preview — uses Echo config usecase KB without embed origin checks.","operationId":"echo_preview_chat_api_workspaces__workspace_id__echo_preview_chat_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/echo/chat":{"post":{"tags":["echo"],"summary":"Echo Chat","operationId":"echo_chat_api_public_echo_chat_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/echo/voice/session":{"post":{"tags":["echo"],"summary":"Create Echo Voice Session","operationId":"create_echo_voice_session_api_public_echo_voice_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchoVoiceSessionResponse"}}}}}}},"/api/register-email-tool":{"post":{"summary":"Register Email Tool","description":"Register the email sending tool with Ultravox","operationId":"register_email_tool_api_register_email_tool_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/send-visit-email":{"post":{"summary":"Send Visit Email","description":"Send visit confirmation email with calendar invite to client","operationId":"send_visit_email_api_send_visit_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback":{"post":{"summary":"Submit Feedback","operationId":"submit_feedback_api_feedback_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Submit Feedback Api Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me":{"patch":{"summary":"Update Current User Profile","operationId":"update_current_user_profile_api_users_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/avatar":{"put":{"summary":"Update User Avatar","operationId":"update_user_avatar_api_users_avatar_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace":{"get":{"summary":"Get Workspace","operationId":"get_workspace_api_workspace_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Switch Active Workspace","operationId":"switch_active_workspace_api_workspace_put","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/usage":{"get":{"summary":"Get Usage","operationId":"get_usage_api_usage_get","parameters":[{"name":"check","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Check"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/usage/echo":{"post":{"summary":"Update Echo Usage","operationId":"update_echo_usage_api_usage_echo_post","parameters":[{"name":"authorization","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{agent_id}/leads":{"get":{"summary":"List Agent Leads","operationId":"list_agent_leads_api_agents__agent_id__leads_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Pagesize"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"include_calls","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Calls"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"use_case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Lead","operationId":"create_lead_api_agents__agent_id__leads_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{agent_id}/leads/import":{"post":{"summary":"Import Leads","operationId":"import_leads_api_agents__agent_id__leads_import_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_leads_api_agents__agent_id__leads_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{agent_id}/leads/{lead_id}":{"put":{"summary":"Update Lead","operationId":"update_lead_api_agents__agent_id__leads__lead_id__put","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Lead","operationId":"delete_lead_api_agents__agent_id__leads__lead_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{agent_id}/leads/bulk-delete":{"post":{"summary":"Bulk Delete Leads","operationId":"bulk_delete_leads_api_agents__agent_id__leads_bulk_delete_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{agent_id}/leads/export":{"get":{"summary":"Export Leads Template","operationId":"export_leads_template_api_agents__agent_id__leads_export_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"escalation_enabled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Escalation Enabled"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/leads":{"get":{"summary":"List Usecase Leads","operationId":"list_usecase_leads_api_workspaces__workspace_id__usecases__use_case_id__leads_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Pagesize"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"include_calls","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Calls"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Usecase Lead","operationId":"create_usecase_lead_api_workspaces__workspace_id__usecases__use_case_id__leads_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/leads/import":{"post":{"summary":"Import Usecase Leads","operationId":"import_usecase_leads_api_workspaces__workspace_id__usecases__use_case_id__leads_import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_usecase_leads_api_workspaces__workspace_id__usecases__use_case_id__leads_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/leads/{lead_id}":{"put":{"summary":"Update Usecase Lead","operationId":"update_usecase_lead_api_workspaces__workspace_id__usecases__use_case_id__leads__lead_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Usecase Lead","operationId":"delete_usecase_lead_api_workspaces__workspace_id__usecases__use_case_id__leads__lead_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/leads/bulk-delete":{"post":{"summary":"Bulk Delete Usecase Leads","operationId":"bulk_delete_usecase_leads_api_workspaces__workspace_id__usecases__use_case_id__leads_bulk_delete_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/leads/export":{"get":{"summary":"Export Usecase Leads Template","operationId":"export_usecase_leads_template_api_workspaces__workspace_id__usecases__use_case_id__leads_export_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/leads/updates":{"get":{"summary":"Lead Updates Sse","operationId":"lead_updates_sse_api_leads_updates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/leads/{lead_id}/voice-session":{"post":{"summary":"Lead Voice Session","description":"Create a WebRTC voice session for a specific lead.","operationId":"lead_voice_session_api_leads__lead_id__voice_session_post","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadVoiceSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadVoiceSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/lead-lookup":{"get":{"tags":["lead-lookup"],"summary":"Check Lead Registration","description":"Check if a caller is already registered as a lead in the workspace.\n\nFor inbound calls, automatically extracts the caller phone from call context.\nIf multiple leads share the same phone number, can use name for disambiguation.","operationId":"check_lead_registration_api_v1_lead_lookup_get","parameters":[{"name":"phone","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Phone number (optional, will use call context if not provided)","title":"Phone"},"description":"Phone number (optional, will use call context if not provided)"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lead name for disambiguation (optional)","title":"Name"},"description":"Lead name for disambiguation (optional)"},{"name":"call_id","in":"query","required":true,"schema":{"type":"string","description":"Call ID from context (auto-injected by Ultravox)","title":"Call Id"},"description":"Call ID from context (auto-injected by Ultravox)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/query-corpus":{"get":{"tags":["query-corpus"],"summary":"Query Corpus","operationId":"query_corpus_api_v1_query_corpus_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Query"}},{"name":"knowledge_base_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Base Id"}},{"name":"call_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Id"}},{"name":"voice_mode","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Voice Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/qualification/config":{"get":{"summary":"Get Qualification Config","operationId":"get_qualification_config_api_workspaces__workspace_id__usecases__use_case_id__qualification_config_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Qualification Config","operationId":"update_qualification_config_api_workspaces__workspace_id__usecases__use_case_id__qualification_config_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/qualification/results":{"get":{"summary":"List Qualification Results","operationId":"list_qualification_results_api_workspaces__workspace_id__usecases__use_case_id__qualification_results_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Page Size"}},{"name":"classification","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Classification"}},{"name":"eligibility","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eligibility"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/qualification/results/{result_id}":{"patch":{"summary":"Review Qualification Result","operationId":"review_qualification_result_api_workspaces__workspace_id__usecases__use_case_id__qualification_results__result_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"result_id","in":"path","required":true,"schema":{"type":"string","title":"Result Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/qualification/report":{"get":{"summary":"Get Qualification Report","operationId":"get_qualification_report_api_workspaces__workspace_id__usecases__use_case_id__qualification_report_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/qualification/report.csv":{"get":{"summary":"Export Qualification Report","operationId":"export_qualification_report_api_workspaces__workspace_id__usecases__use_case_id__qualification_report_csv_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/current-time":{"get":{"tags":["time-utility"],"summary":"Get Current Time","description":"Get the current time in IST for live calls.\n\nThis endpoint is called by the AI agent during calls when users ask\nabout the current time, date, or day.\n\nArgs:\n    call_id: Call ID from Ultravox (auto-injected)\n\nReturns:\n    JSON response with comprehensive time information","operationId":"get_current_time_api_v1_current_time_get","parameters":[{"name":"call_id","in":"query","required":true,"schema":{"type":"string","description":"Call ID from context (auto-injected by Ultravox)","title":"Call Id"},"description":"Call ID from context (auto-injected by Ultravox)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/report-deviation":{"post":{"tags":["deviation-report"],"summary":"Report Deviation","description":"Report a deviation detected during an active call.\n\nThis endpoint is called by the AI agent when it detects:\n- Going off-script or off-topic\n- Violating prompt rules (e.g., revealing AI identity, using external knowledge)\n- Early signs of failure (negative sentiment, customer frustration)\n\nSupports both:\n- Query parameters (from Ultravox tool calls)\n- JSON body (from manual API calls)\n\nReturns:\n    DeviationReportResponse confirming the report was received","operationId":"report_deviation_api_v1_report_deviation_post","parameters":[{"name":"call_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Call ID (query param for Ultravox)","title":"Call Id"},"description":"Call ID (query param for Ultravox)"},{"name":"deviation_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Type of deviation","title":"Deviation Type"},"description":"Type of deviation"},{"name":"description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Description of deviation","title":"Description"},"description":"Description of deviation"},{"name":"transcript_excerpt","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Transcript excerpt","title":"Transcript Excerpt"},"description":"Transcript excerpt"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviationReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/evaluation/personas":{"get":{"summary":"List Evaluation Personas","operationId":"list_evaluation_personas_api_workspaces__workspace_id__evaluation_personas_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PersonaResponse"},"title":"Response List Evaluation Personas Api Workspaces  Workspace Id  Evaluation Personas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Evaluation Persona","operationId":"create_evaluation_persona_api_workspaces__workspace_id__evaluation_personas_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaWriteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/evaluation/personas/{persona_id}":{"put":{"summary":"Update Evaluation Persona","operationId":"update_evaluation_persona_api_workspaces__workspace_id__evaluation_personas__persona_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Evaluation Persona","operationId":"delete_evaluation_persona_api_workspaces__workspace_id__evaluation_personas__persona_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"persona_id","in":"path","required":true,"schema":{"type":"string","title":"Persona Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/evaluation/scenarios":{"get":{"summary":"List Evaluation Scenarios","operationId":"list_evaluation_scenarios_api_workspaces__workspace_id__evaluation_scenarios_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioResponse"},"title":"Response List Evaluation Scenarios Api Workspaces  Workspace Id  Evaluation Scenarios Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Evaluation Scenario","operationId":"create_evaluation_scenario_api_workspaces__workspace_id__evaluation_scenarios_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioWriteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/evaluation/scenarios/{scenario_id}":{"put":{"summary":"Update Evaluation Scenario","operationId":"update_evaluation_scenario_api_workspaces__workspace_id__evaluation_scenarios__scenario_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"scenario_id","in":"path","required":true,"schema":{"type":"string","title":"Scenario Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Evaluation Scenario","operationId":"delete_evaluation_scenario_api_workspaces__workspace_id__evaluation_scenarios__scenario_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"scenario_id","in":"path","required":true,"schema":{"type":"string","title":"Scenario Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/evaluation/runs":{"get":{"summary":"List Evaluation Runs","operationId":"list_evaluation_runs_api_workspaces__workspace_id__evaluation_runs_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationRunListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Start Evaluation Run","operationId":"start_evaluation_run_api_workspaces__workspace_id__evaluation_runs_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartEvaluationRunRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/evaluation/runs/{run_id}":{"get":{"summary":"Get Evaluation Run","operationId":"get_evaluation_run_api_workspaces__workspace_id__evaluation_runs__run_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/evaluation/scenarios/generate":{"post":{"summary":"Generate Evaluation Scenario","operationId":"generate_evaluation_scenario_api_workspaces__workspace_id__evaluation_scenarios_generate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioGenerationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioGenerationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/evaluation/runs/{run_id}/suggest-script":{"post":{"summary":"Suggest Evaluation Script","operationId":"suggest_evaluation_script_api_workspaces__workspace_id__evaluation_runs__run_id__suggest_script_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptSuggestionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evaluation_incoming_call/":{"post":{"summary":"Evaluation Incoming Call","description":"Plivo answer URL for evaluation persona DIDs.\n\nConfigure your evaluation Plivo number's answer URL to this endpoint\n(not /incoming_call/) so persona AI answers usecase evaluation calls.\n\nIf the eval DID uses the standard inbound Plivo application (/incoming_call/),\npending evaluation sessions are handled there automatically.","operationId":"evaluation_incoming_call_evaluation_incoming_call__post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/{hospital_slug}":{"get":{"tags":["hospital"],"summary":"Smart Router","operationId":"smart_router_api_v1__hospital_slug__get","parameters":[{"name":"hospital_slug","in":"path","required":true,"schema":{"type":"string","title":"Hospital Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sync":{"post":{"tags":["hospital","hospital-sync"],"summary":"Sync Hospital Data","description":"Sync hospital data (doctors, departments, specialities, locations) from external API to pgvector.\n\nThis endpoint fetches data from the hospital API and stores it in the\nstructured_entities table with vector embeddings for semantic search.\n\nNow uses the new sync system with history tracking and config updates.","operationId":"sync_hospital_data_api_v1_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sync/status":{"get":{"tags":["hospital","hospital-sync"],"summary":"Sync Status","description":"Get sync status and entity counts for a specific workspace.\n\nReturns counts of doctors, departments, and symptoms stored in pgvector.","operationId":"sync_status_api_v1_sync_status_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","description":"Workspace ID","title":"Workspace Id"},"description":"Workspace ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hms/appointment-events":{"post":{"tags":["hms-appointments"],"summary":"Receive Appointment Events","description":"HMS calls this when staff cancel/reschedule or doctor becomes unavailable.","operationId":"receive_appointment_events_api_v1_hms_appointment_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Receive Appointment Events Api V1 Hms Appointment Events Post"}}}}}}},"/api/webhooks/slot-change":{"post":{"tags":["hms-appointments-compat"],"summary":"Receive Slot Change Compat","description":"Compat alias for HMS OUTCALLER_WEBHOOK_URL (customer_service Next.js proxy path).","operationId":"receive_slot_change_compat_api_webhooks_slot_change_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Receive Slot Change Compat Api Webhooks Slot Change Post"}}}}}}},"/api/v1/hims-appointments/specializations":{"post":{"tags":["hims-appointment-tools"],"summary":"List Specializations","operationId":"list_specializations_api_v1_hims_appointments_specializations_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSpecializationsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Specializations Api V1 Hims Appointments Specializations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hims-appointments/doctors/search":{"post":{"tags":["hims-appointment-tools"],"summary":"Search Doctors","operationId":"search_doctors_api_v1_hims_appointments_doctors_search_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchDoctorsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Doctors Api V1 Hims Appointments Doctors Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hims-appointments/doctors/availability":{"post":{"tags":["hims-appointment-tools"],"summary":"Get Doctor Availability","operationId":"get_doctor_availability_api_v1_hims_appointments_doctors_availability_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoctorAvailabilityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Doctor Availability Api V1 Hims Appointments Doctors Availability Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hims-appointments/appointment-options":{"post":{"tags":["hims-appointment-tools"],"summary":"Find Appointment Options","operationId":"find_appointment_options_api_v1_hims_appointments_appointment_options_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentOptionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Find Appointment Options Api V1 Hims Appointments Appointment Options Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/real-estate/sync":{"post":{"tags":["Real Estate"],"summary":"Sync Real Estate Data","operationId":"sync_real_estate_data_api_v1_real_estate_sync_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"force_update","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Update"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/real-estate/search":{"get":{"tags":["Real Estate"],"summary":"Search Real Estate","operationId":"search_real_estate_api_v1_real_estate_search_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project"}},{"name":"bhk","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bhk"}},{"name":"price_min","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Min"}},{"name":"price_max","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Max"}},{"name":"availability","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availability"}},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/real-estate/projects":{"get":{"tags":["Real Estate"],"summary":"Get Projects","operationId":"get_projects_api_v1_real_estate_projects_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/real-estate/locations":{"get":{"tags":["Real Estate"],"summary":"Get Locations","operationId":"get_locations_api_v1_real_estate_locations_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/real-estate/bhk-configs":{"get":{"tags":["Real Estate"],"summary":"Get Bhk Configs","operationId":"get_bhk_configs_api_v1_real_estate_bhk_configs_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/real-estate/towers/by-bhk/{bhk}":{"get":{"tags":["Real Estate"],"summary":"Get Towers By Bhk","operationId":"get_towers_by_bhk_api_v1_real_estate_towers_by_bhk__bhk__get","parameters":[{"name":"bhk","in":"path","required":true,"schema":{"type":"string","title":"Bhk"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"integer","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/real-estate/towers/available":{"get":{"tags":["Real Estate"],"summary":"Get Available Towers","operationId":"get_available_towers_api_v1_real_estate_towers_available_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"integer","title":"Workspace Id"}},{"name":"availability","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Availability"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/human-agents":{"post":{"summary":"Create Human Agent Api","operationId":"create_human_agent_api_api_workspaces__workspace_id__human_agents_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAgentWriteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAgentEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Human Agents Api","operationId":"get_human_agents_api_api_workspaces__workspace_id__human_agents_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAgentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/human-agents/{agent_id}":{"get":{"summary":"Get Human Agent Api","operationId":"get_human_agent_api_api_workspaces__workspace_id__human_agents__agent_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAgentEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Human Agent Api","operationId":"update_human_agent_api_api_workspaces__workspace_id__human_agents__agent_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAgentWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAgentEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Human Agent Api","operationId":"delete_human_agent_api_api_workspaces__workspace_id__human_agents__agent_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanAgentDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/incoming_call/":{"post":{"summary":"Incoming Call","operationId":"incoming_call_incoming_call__post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/incoming_call":{"post":{"summary":"Incoming Call","operationId":"incoming_call_incoming_call_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/integrations/":{"get":{"tags":["integrations"],"summary":"List Available Integrations","description":"Get all available integrations from the backend registry.","operationId":"list_available_integrations_api_integrations__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/IntegrationManifest"},"type":"array","title":"Response List Available Integrations Api Integrations  Get"}}}}}}},"/api/integrations/workspace/{workspace_id}":{"get":{"tags":["integrations"],"summary":"List Workspace Integrations","description":"Get all active/connected integrations for a specific workspace.","operationId":"list_workspace_integrations_api_integrations_workspace__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/workspace/{workspace_id}/{slug}/connect":{"post":{"tags":["integrations"],"summary":"Connect Workspace Integration","description":"Connect an integration (validates credentials and triggers setup hooks).","operationId":"connect_workspace_integration_api_integrations_workspace__workspace_id___slug__connect_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/workspace/{workspace_id}/{slug}/test-email":{"post":{"tags":["integrations"],"summary":"Send Integration Test Email","description":"Send a test email using saved or draft email provider credentials.","operationId":"send_integration_test_email_api_integrations_workspace__workspace_id___slug__test_email_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationTestEmailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationTestEmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/integrations/workspace/{workspace_id}/{slug}":{"delete":{"tags":["integrations"],"summary":"Disconnect Workspace Integration","description":"Disconnect an integration and cleanup resources (webhooks, etc).","operationId":"disconnect_workspace_integration_api_integrations_workspace__workspace_id___slug__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/numbers/available":{"get":{"summary":"Get All Numbers From Plivo","description":"Fetches all available phone numbers from Plivo and stores them in the database.","operationId":"get_all_numbers_from_plivo_numbers_available_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/numbers/assign":{"post":{"summary":"Assign Number To Workspace","description":"Assigns a phone number to an workspace with a specific type (INBOUND or OUTBOUND)\nand links it to the appropriate application (Plivo or Telnyx).","operationId":"assign_number_to_workspace_numbers_assign_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/numbers/unassign":{"post":{"summary":"Unassign Number","description":"Removes workspace assignment from a phone number and unlinks it from any application.","operationId":"unassign_number_numbers_unassign_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/numbers/available/telnyx":{"get":{"summary":"Get All Numbers From Telnyx","description":"Fetches all available phone numbers from Telnyx and stores them in the database.","operationId":"get_all_numbers_from_telnyx_numbers_available_telnyx_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/one-way/plivo/answer/{call_id}":{"post":{"summary":"One Way Plivo Answer","operationId":"one_way_plivo_answer_api_one_way_plivo_answer__call_id__post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/one-way/plivo/hangup/{call_id}":{"post":{"summary":"One Way Plivo Hangup","operationId":"one_way_plivo_hangup_api_one_way_plivo_hangup__call_id__post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response One Way Plivo Hangup Api One Way Plivo Hangup  Call Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/inbound-leads":{"get":{"summary":"List Workspace Inbound Leads","operationId":"list_workspace_inbound_leads_api_workspaces__workspace_id__inbound_leads_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundLeadListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/agents":{"get":{"summary":"List Workspace Agents","operationId":"list_workspace_agents_api_workspaces__workspace_id__agents_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"useCaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/outcaller_api__types__workspace_management__AgentResponse"},"title":"Response List Workspace Agents Api Workspaces  Workspace Id  Agents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Workspace Agent","operationId":"create_workspace_agent_api_workspaces__workspace_id__agents_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWriteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__workspace_management__AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/agents/lead-counts":{"get":{"summary":"Get Workspace Agent Lead Counts","operationId":"get_workspace_agent_lead_counts_api_workspaces__workspace_id__agents_lead_counts_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"ids","in":"query","required":true,"schema":{"type":"string","title":"Ids"}},{"name":"use_case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadCountMapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/agents/test-voice-session":{"post":{"summary":"Create Workspace Agent Draft Test Voice Session","operationId":"create_workspace_agent_draft_test_voice_session_api_workspaces__workspace_id__agents_test_voice_session_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDraftTestVoiceSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTestVoiceSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/agents/import":{"post":{"summary":"Import Workspace Agents","operationId":"import_workspace_agents_api_workspaces__workspace_id__agents_import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_workspace_agents_api_workspaces__workspace_id__agents_import_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/agents/{agent_id}":{"get":{"summary":"Get Workspace Agent","operationId":"get_workspace_agent_api_workspaces__workspace_id__agents__agent_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__workspace_management__AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Workspace Agent","operationId":"update_workspace_agent_api_workspaces__workspace_id__agents__agent_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__workspace_management__AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Workspace Agent","operationId":"delete_workspace_agent_api_workspaces__workspace_id__agents__agent_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/agents/{agent_id}/test-voice-session":{"post":{"summary":"Create Workspace Agent Test Voice Session","operationId":"create_workspace_agent_test_voice_session_api_workspaces__workspace_id__agents__agent_id__test_voice_session_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTestVoiceSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTestVoiceSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases":{"get":{"summary":"List Workspace Usecases","operationId":"list_workspace_usecases_api_workspaces__workspace_id__usecases_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__workspace_management__UseCaseListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Workspace Usecase","operationId":"create_workspace_usecase_api_workspaces__workspace_id__usecases_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseWriteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}":{"get":{"summary":"Get Workspace Usecase","operationId":"get_workspace_usecase_api_workspaces__workspace_id__usecases__use_case_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Workspace Usecase","operationId":"update_workspace_usecase_api_workspaces__workspace_id__usecases__use_case_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Workspace Usecase","operationId":"delete_workspace_usecase_api_workspaces__workspace_id__usecases__use_case_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/publish":{"post":{"summary":"Publish Workspace Usecase","description":"Mark a usecase as published without initiating calls.\n\nAuto Calling (when enabled) picks up eligible leads on its schedule.\nManual calls remain available via the call actions after publish.","operationId":"publish_workspace_usecase_api_workspaces__workspace_id__usecases__use_case_id__publish_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/clone":{"post":{"summary":"Clone Workspace Usecase","operationId":"clone_workspace_usecase_api_workspaces__workspace_id__usecases__use_case_id__clone_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/collaborators":{"get":{"summary":"List Usecase Collaborators","operationId":"list_usecase_collaborators_api_workspaces__workspace_id__usecases__use_case_id__collaborators_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Add Usecase Collaborator","operationId":"add_usecase_collaborator_api_workspaces__workspace_id__usecases__use_case_id__collaborators_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseCollaboratorAddRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/collaborators/{user_id}":{"delete":{"summary":"Remove Usecase Collaborator","operationId":"remove_usecase_collaborator_api_workspaces__workspace_id__usecases__use_case_id__collaborators__user_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/generate-prompt":{"post":{"summary":"Generate Workspace Use Case Prompt","operationId":"generate_workspace_use_case_prompt_api_workspaces__workspace_id__usecases_generate_prompt_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCasePromptGenerationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCasePromptGenerationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/optimize-script-section":{"post":{"summary":"Optimize Workspace Use Case Script Section","operationId":"optimize_workspace_use_case_script_section_api_workspaces__workspace_id__usecases_optimize_script_section_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseScriptSectionOptimizeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseScriptSectionOptimizeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/escalation-links":{"get":{"summary":"List Workspace Escalation Links","operationId":"list_workspace_escalation_links_api_workspaces__workspace_id__usecases__use_case_id__escalation_links_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationLinkListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Workspace Escalation Link","operationId":"create_workspace_escalation_link_api_workspaces__workspace_id__usecases__use_case_id__escalation_links_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationLinkCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationLinkEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Workspace Escalation Link","operationId":"delete_workspace_escalation_link_api_workspaces__workspace_id__usecases__use_case_id__escalation_links_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationLinkDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/escalation-links/escalate":{"post":{"summary":"Manual Workspace Escalation Link","operationId":"manual_workspace_escalation_link_api_workspaces__workspace_id__usecases__use_case_id__escalation_links_escalate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualEscalationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecases/{use_case_id}/escalation-links/bulk-escalate":{"post":{"summary":"Bulk Workspace Escalation Links","operationId":"bulk_workspace_escalation_links_api_workspaces__workspace_id__usecases__use_case_id__escalation_links_bulk_escalate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkEscalationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EscalationLinkResponse"},"title":"Response Bulk Workspace Escalation Links Api Workspaces  Workspace Id  Usecases  Use Case Id  Escalation Links Bulk Escalate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/calls":{"get":{"summary":"List Workspace Calls","operationId":"list_workspace_calls_api_workspaces__workspace_id__calls_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"leadId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leadid"}},{"name":"dateFilter","in":"query","required":false,"schema":{"type":"string","default":"overall","title":"Datefilter"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Pagesize"}},{"name":"agent","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"useCaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"}},{"name":"displayStatus","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displaystatus"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__workspace_management__CallListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/calls/initiate":{"post":{"summary":"Initiate Workspace Calls","operationId":"initiate_workspace_calls_api_workspaces__workspace_id__calls_initiate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallInitiateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecase-send-documents":{"get":{"summary":"List Use Case Send Documents","operationId":"list_use_case_send_documents_api_workspaces__workspace_id__usecase_send_documents_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"useCaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"}},{"name":"draftSessionId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draftsessionid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Upload Use Case Send Document","operationId":"upload_use_case_send_document_api_workspaces__workspace_id__usecase_send_documents_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_use_case_send_document_api_workspaces__workspace_id__usecase_send_documents_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/usecase-send-documents/{document_id}":{"delete":{"summary":"Delete Usecase Send Document","operationId":"delete_usecase_send_document_api_workspaces__workspace_id__usecase_send_documents__document_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/settings":{"get":{"summary":"Get Workspace Settings","operationId":"get_workspace_settings_api_workspaces__workspace_id__settings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Workspace Settings","operationId":"update_workspace_settings_api_workspaces__workspace_id__settings_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceSettingsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/numbers":{"get":{"summary":"List Workspace Numbers","operationId":"list_workspace_numbers_api_workspaces__workspace_id__numbers_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"workspaceId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspaceid"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceNumbersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/user-role":{"get":{"summary":"Get Workspace User Role","operationId":"get_workspace_user_role_api_workspaces__workspace_id__user_role_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRoleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/roles/{user_id}":{"put":{"summary":"Update Workspace User Role","operationId":"update_workspace_user_role_api_workspaces__workspace_id__roles__user_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/members":{"get":{"summary":"List Workspace Members","operationId":"list_workspace_members_api_workspaces__workspace_id__members_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/members/{user_id}":{"delete":{"summary":"Remove Workspace Member","operationId":"remove_workspace_member_api_workspaces__workspace_id__members__user_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/invitations":{"get":{"summary":"List Workspace Invitations","operationId":"list_workspace_invitations_api_workspaces__workspace_id__invitations_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Workspace Invitation","operationId":"create_workspace_invitation_api_workspaces__workspace_id__invitations_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationSendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationSendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/invitations/import":{"post":{"summary":"Import Workspace Invitations","operationId":"import_workspace_invitations_api_workspaces__workspace_id__invitations_import_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_workspace_invitations_api_workspaces__workspace_id__invitations_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationSendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace-invitations/{token}":{"get":{"summary":"Validate Workspace Invitation","operationId":"validate_workspace_invitation_api_workspace_invitations__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationValidateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspace-invitations/{token}/respond":{"post":{"summary":"Respond To Workspace Invitation","operationId":"respond_to_workspace_invitation_api_workspace_invitations__token__respond_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationRespondRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationRespondResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/reports":{"get":{"summary":"Get Workspace Report","operationId":"get_workspace_report_api_workspaces__workspace_id__reports_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"monthly","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/reports/export":{"get":{"summary":"Export Workspace Report","operationId":"export_workspace_report_api_workspaces__workspace_id__reports_export_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"monthly","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base":{"get":{"summary":"Get Workspace Knowledge Base","operationId":"get_workspace_knowledge_base_api_workspaces__workspace_id__knowledge_base_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-bases":{"get":{"summary":"List Workspace Knowledge Bases","operationId":"list_workspace_knowledge_bases_api_workspaces__workspace_id__knowledge_bases_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__workspace_management__KnowledgeBaseListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Workspace Knowledge Base","operationId":"create_workspace_knowledge_base_api_workspaces__workspace_id__knowledge_bases_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__workspace_management__KnowledgeBaseCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-bases/{knowledge_base_id}":{"patch":{"summary":"Update Workspace Knowledge Base","operationId":"update_workspace_knowledge_base_api_workspaces__workspace_id__knowledge_bases__knowledge_base_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__workspace_management__KnowledgeBaseUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Workspace Knowledge Base","operationId":"delete_workspace_knowledge_base_api_workspaces__workspace_id__knowledge_bases__knowledge_base_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/sources":{"get":{"summary":"List Workspace Knowledge Base Sources","operationId":"list_workspace_knowledge_base_sources_api_workspaces__workspace_id__knowledge_base_sources_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSourcesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/search-debug":{"get":{"summary":"Search Workspace Knowledge Base Debug","operationId":"search_workspace_knowledge_base_debug_api_workspaces__workspace_id__knowledge_base_search_debug_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":5,"title":"Limit"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSearchDebugResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/sources/{source_id}/sync":{"post":{"summary":"Resync Workspace Knowledge Base Source","operationId":"resync_workspace_knowledge_base_source_api_workspaces__workspace_id__knowledge_base_sources__source_id__sync_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/sources/sync":{"post":{"summary":"Resync All Workspace Knowledge Base Sources","operationId":"resync_all_workspace_knowledge_base_sources_api_workspaces__workspace_id__knowledge_base_sources_sync_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/sources/{source_id}":{"patch":{"summary":"Update Workspace Knowledge Base Source","operationId":"update_workspace_knowledge_base_source_api_workspaces__workspace_id__knowledge_base_sources__source_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseSourceUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Workspace Knowledge Base Source","operationId":"delete_workspace_knowledge_base_source_api_workspaces__workspace_id__knowledge_base_sources__source_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/websites":{"put":{"summary":"Update Workspace Knowledge Base Websites","operationId":"update_workspace_knowledge_base_websites_api_workspaces__workspace_id__knowledge_base_websites_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseWebsiteUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/sources/apis":{"post":{"summary":"Create Workspace Knowledge Base Api Source","operationId":"create_workspace_knowledge_base_api_source_api_workspaces__workspace_id__knowledge_base_sources_apis_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseApiSourceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/sources/external":{"post":{"summary":"Create Workspace Knowledge Base External Source","operationId":"create_workspace_knowledge_base_external_source_api_workspaces__workspace_id__knowledge_base_sources_external_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseExternalSourceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/sources/external/batch":{"post":{"summary":"Create Workspace Knowledge Base External Sources Batch","operationId":"create_workspace_knowledge_base_external_sources_batch_api_workspaces__workspace_id__knowledge_base_sources_external_batch_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseExternalSourcesBatchRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/documents":{"post":{"summary":"Upload Workspace Knowledge Base Document","operationId":"upload_workspace_knowledge_base_document_api_workspaces__workspace_id__knowledge_base_documents_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_workspace_knowledge_base_document_api_workspaces__workspace_id__knowledge_base_documents_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseDocumentUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/knowledge-base/documents/{document_id}":{"delete":{"summary":"Delete Workspace Knowledge Base Document","operationId":"delete_workspace_knowledge_base_document_api_workspaces__workspace_id__knowledge_base_documents__document_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"knowledgeBaseId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/echo-config":{"get":{"summary":"Get Workspace Echo Config","operationId":"get_workspace_echo_config_api_workspaces__workspace_id__echo_config_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"includeOrg","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Includeorg"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EchoConfigResponse"},{"$ref":"#/components/schemas/EchoConfigWithWorkspaceResponse"},{"type":"null"}],"title":"Response Get Workspace Echo Config Api Workspaces  Workspace Id  Echo Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Workspace Echo Config","operationId":"update_workspace_echo_config_api_workspaces__workspace_id__echo_config_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchoConfigUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchoConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/whatsapp/messages":{"get":{"summary":"List Workspace Whatsapp Messages","operationId":"list_workspace_whatsapp_messages_api_workspaces__workspace_id__whatsapp_messages_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppMessagesListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/whatsapp/messages/{message_id}":{"get":{"summary":"Get Workspace Whatsapp Message","operationId":"get_workspace_whatsapp_message_api_workspaces__workspace_id__whatsapp_messages__message_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}},{"name":"generateSummary","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Generatesummary"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppMessageDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Workspace Whatsapp Message","operationId":"delete_workspace_whatsapp_message_api_workspaces__workspace_id__whatsapp_messages__message_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/summarizer/briefs":{"post":{"summary":"Create Summarizer Brief","operationId":"create_summarizer_brief_api_workspaces__workspace_id__summarizer_briefs_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerBriefWriteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerBriefEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Summarizer Briefs","operationId":"list_summarizer_briefs_api_workspaces__workspace_id__summarizer_briefs_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerBriefListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/summarizer/briefs/{brief_id}":{"get":{"summary":"Get Summarizer Brief","operationId":"get_summarizer_brief_api_workspaces__workspace_id__summarizer_briefs__brief_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerBriefEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Summarizer Brief","operationId":"update_summarizer_brief_api_workspaces__workspace_id__summarizer_briefs__brief_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerBriefWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerBriefEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Summarizer Brief","operationId":"delete_summarizer_brief_api_workspaces__workspace_id__summarizer_briefs__brief_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/summarizer/briefs/{brief_id}/recordings":{"post":{"summary":"Upload Summarizer Recording","operationId":"upload_summarizer_recording_api_workspaces__workspace_id__summarizer_briefs__brief_id__recordings_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_summarizer_recording_api_workspaces__workspace_id__summarizer_briefs__brief_id__recordings_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerRecordingUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Summarizer Recordings","operationId":"list_summarizer_recordings_api_workspaces__workspace_id__summarizer_briefs__brief_id__recordings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerRecordingListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/summarizer/briefs/{brief_id}/recordings/{recording_id}":{"get":{"summary":"Get Summarizer Recording","operationId":"get_summarizer_recording_api_workspaces__workspace_id__summarizer_briefs__brief_id__recordings__recording_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"recording_id","in":"path","required":true,"schema":{"type":"string","title":"Recording Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerRecordingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Summarizer Recording","operationId":"delete_summarizer_recording_api_workspaces__workspace_id__summarizer_briefs__brief_id__recordings__recording_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"recording_id","in":"path","required":true,"schema":{"type":"string","title":"Recording Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/summarizer/briefs/{brief_id}/recordings/{recording_id}/recording":{"get":{"summary":"Stream Summarizer Recording","operationId":"stream_summarizer_recording_api_workspaces__workspace_id__summarizer_briefs__brief_id__recordings__recording_id__recording_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"recording_id","in":"path","required":true,"schema":{"type":"string","title":"Recording Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/summarizer/briefs/{brief_id}/recordings/{recording_id}/reprocess":{"post":{"summary":"Reprocess Summarizer Recording","operationId":"reprocess_summarizer_recording_api_workspaces__workspace_id__summarizer_briefs__brief_id__recordings__recording_id__reprocess_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"recording_id","in":"path","required":true,"schema":{"type":"string","title":"Recording Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerRecordingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/plivo/calls/{call_id}/prompt":{"get":{"summary":"Get Call Prompt","operationId":"get_call_prompt_plivo_calls__call_id__prompt_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/plivo/voice_ml":{"get":{"summary":"Plivo Ml","description":"Handle the answered callback from Plivo.","operationId":"plivo_voice_ml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Plivo Ml","description":"Handle the answered callback from Plivo.","operationId":"plivo_voice_ml_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/evaluation_usecase_answer":{"get":{"summary":"Plivo Evaluation Usecase Answer","description":"Hold the usecase outbound leg until eval persona inbound bridges it to voice_ml.","operationId":"plivo_evaluation_usecase_answer_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Plivo Evaluation Usecase Answer","description":"Hold the usecase outbound leg until eval persona inbound bridges it to voice_ml.","operationId":"plivo_evaluation_usecase_answer_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/machine_detection":{"get":{"summary":"Plivo Machine Detection","description":"Async Plivo AMD callback — hang up and mark voicemail when a machine answers.","operationId":"plivo_machine_detection_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Plivo Machine Detection","description":"Async Plivo AMD callback — hang up and mark voicemail when a machine answers.","operationId":"plivo_machine_detection_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/hang_up":{"get":{"summary":"Plivo Hang Up","description":"Handle the hang up callback from Plivo.","operationId":"plivo_hang_up_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Plivo Hang Up","description":"Handle the hang up callback from Plivo.","operationId":"plivo_hang_up_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/calls/{call_id}/post-call-processing":{"post":{"summary":"Trigger Post Call Processing","description":"Manually (re)run post-call summary/task processing — useful when hangup webhook was missed.","operationId":"trigger_post_call_processing","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/hang_up":{"get":{"summary":"Generic Hang Up","description":"Some providers (e.g. Ultravox default) call /hang_up.\nRoute the request to the correct handler based on the call's telephony provider.","operationId":"generic_hang_up_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Generic Hang Up","description":"Some providers (e.g. Ultravox default) call /hang_up.\nRoute the request to the correct handler based on the call's telephony provider.","operationId":"generic_hang_up_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/ringing":{"get":{"summary":"Plivo Ringing","description":"Handle the ringing callback from Plivo.","operationId":"plivo_ringing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Plivo Ringing","description":"Handle the ringing callback from Plivo.","operationId":"plivo_ringing_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/transfer":{"post":{"summary":"Handle Transfer Api","description":"Handle transfer API requests from external systems","operationId":"handle_transfer_api_api_transfer_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/transfer_handler":{"post":{"summary":"Transfer Handler","description":"Handle transfer requests from Ultravox","operationId":"transfer_handler_transfer_handler_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/mute_speaker":{"post":{"summary":"Mute Speaker","description":"Stop Ultravox agent audio after transfer (Ultravox hang-up tool response).","operationId":"mute_speaker_mute_speaker_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/transfer":{"get":{"summary":"Plivo Transfer Webhook","description":"Handle Plivo transfer webhook - creates XML to dial the destination number\nThis is called when we update the call's TwiML to redirect to transfer","operationId":"plivo_transfer_webhook_plivo_transfer_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/transfer-agent-unavailable":{"get":{"summary":"Plivo Transfer Agent Unavailable Webhook","description":"Played on the customer leg when the human agent does not answer.","operationId":"plivo_transfer_agent_unavailable_webhook_plivo_transfer_agent_unavailable_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/transfer-agent-ended":{"get":{"summary":"Plivo Transfer Agent Ended Webhook","description":"Played on the customer leg when the connected human agent hangs up.","operationId":"plivo_transfer_agent_ended_webhook_plivo_transfer_agent_ended_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/agent-hangup":{"post":{"summary":"Agent Hangup Webhook","description":"Handle agent leg hangup (answered or no-answer) during conference transfer.","operationId":"agent_hangup_webhook_plivo_agent_hangup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/agent_response":{"post":{"summary":"Agent Response Webhook","description":"Handle agent's response to transfer request","operationId":"agent_response_webhook_plivo_agent_response_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/agent-whisper":{"get":{"summary":"Agent Whisper Webhook","description":"Handle agent whisper for fallback transfer calls","operationId":"agent_whisper_webhook_plivo_agent_whisper_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/conference":{"get":{"summary":"Plivo Conference Webhook","description":"Simplified conference webhook with basic settings for better audio compatibility","operationId":"plivo_conference_webhook_plivo_conference_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Plivo Conference Webhook","description":"Simplified conference webhook with basic settings for better audio compatibility","operationId":"plivo_conference_webhook_plivo_conference_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/conference-wait":{"get":{"summary":"Plivo Conference Wait Webhook","description":"Handle conference wait music. GET and POST — Plivo may use either.","operationId":"plivo_conference_wait_webhook_plivo_conference_wait_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Plivo Conference Wait Webhook","description":"Handle conference wait music. GET and POST — Plivo may use either.","operationId":"plivo_conference_wait_webhook_plivo_conference_wait_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/conference-events":{"post":{"summary":"Plivo Conference Events Webhook","description":"Mark agent join and play hold music to the waiting customer member.","operationId":"plivo_conference_events_webhook_plivo_conference_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/conference-dtmf":{"post":{"summary":"Plivo Conference Dtmf Webhook","description":"Handle keypad digits from a human agent already in the transfer conference.","operationId":"plivo_conference_dtmf_webhook_plivo_conference_dtmf_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/recording-callback":{"post":{"summary":"Plivo Recording Callback","description":"Handle recording completion callbacks from Plivo","operationId":"plivo_recording_callback_plivo_recording_callback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/plivo/test-start-recording/{call_uuid}":{"post":{"summary":"Test Start Recording","description":"Test endpoint to manually start recording for a call","operationId":"test_start_recording_plivo_test_start_recording__call_uuid__post","parameters":[{"name":"call_uuid","in":"path","required":true,"schema":{"type":"string","title":"Call Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/plivo/test-recording-callback/{call_uuid}":{"get":{"summary":"Test Recording Callback Parsing","description":"Test endpoint to check if recording data is stored in Redis","operationId":"test_recording_callback_parsing_plivo_test_recording_callback__call_uuid__get","parameters":[{"name":"call_uuid","in":"path","required":true,"schema":{"type":"string","title":"Call Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/plivo/conference-end":{"post":{"summary":"Conference End Webhook","description":"Handle conference end events from Plivo","operationId":"conference_end_webhook_plivo_conference_end_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ultravox/telnyx/webhook":{"post":{"summary":"Ultravox Telnyx Webhook","description":"Handle webhook events from Ultravox's native Telnyx integration.","operationId":"ultravox_telnyx_webhook_ultravox_telnyx_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/telnyx/hang_up":{"get":{"summary":"Telnyx Hang Up","description":"Handle the hang up callback from self-hosted Telnyx calls.","operationId":"telnyx_hang_up_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Telnyx Hang Up","description":"Handle the hang up callback from self-hosted Telnyx calls.","operationId":"telnyx_hang_up_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/twilio/voice":{"get":{"summary":"Twilio Voice","description":"Handle the answered callback from Twilio - returns TwiML to connect to Ultravox.","operationId":"twilio_voice_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Twilio Voice","description":"Handle the answered callback from Twilio - returns TwiML to connect to Ultravox.","operationId":"twilio_voice_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/twilio/status":{"get":{"summary":"Twilio Status","description":"Handle Twilio status callback (initiated, ringing, answered, completed).","operationId":"twilio_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Twilio Status","description":"Handle Twilio status callback (initiated, ringing, answered, completed).","operationId":"twilio_status_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/internal/plivo/calls/{call_id}/transcript":{"post":{"tags":["internal-voice-ai"],"summary":"Push Call Transcript","operationId":"push_call_transcript_internal_plivo_calls__call_id__transcript_post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"X-Internal-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Internal-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptPushRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Push Call Transcript Internal Plivo Calls  Call Id  Transcript Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whatsapp/oauth/status":{"get":{"summary":"Get Whatsapp Oauth Status","operationId":"get_whatsapp_oauth_status_api_whatsapp_oauth_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/whatsapp/oauth/callback":{"post":{"summary":"Complete Whatsapp Oauth Callback","operationId":"complete_whatsapp_oauth_callback_api_whatsapp_oauth_callback_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whatsapp/oauth/disconnect":{"post":{"summary":"Disconnect Whatsapp Oauth","operationId":"disconnect_whatsapp_oauth_api_whatsapp_oauth_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/whatsapp/oauth/refresh":{"post":{"summary":"Refresh Whatsapp Oauth","operationId":"refresh_whatsapp_oauth_api_whatsapp_oauth_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/whatsapp/webhook":{"get":{"summary":"Verify Whatsapp Webhook","description":"Verify WhatsApp webhook. Uses global WA_VERIFY_TOKEN for all workspaces.","operationId":"verify_whatsapp_webhook_whatsapp_webhook_get","parameters":[{"name":"hub.verify_token","in":"query","required":false,"schema":{"type":"string","title":"Hub.Verify Token"}},{"name":"hub.challenge","in":"query","required":false,"schema":{"type":"string","title":"Hub.Challenge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Receive Whatsapp Webhook","operationId":"receive_whatsapp_webhook_whatsapp_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/whatsapp/responses":{"get":{"summary":"Get All Whatsapp Responses Api","description":"Deprecated: use GET /api/workspaces/{workspace_id}/whatsapp/messages instead.","operationId":"get_all_whatsapp_responses_api_api_whatsapp_responses_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"deprecated":true}},"/api/whatsapp/responses/{phone_number}":{"get":{"summary":"Get Whatsapp Response Api","description":"Get WhatsApp response and generate summary.","operationId":"get_whatsapp_response_api_api_whatsapp_responses__phone_number__get","parameters":[{"name":"phone_number","in":"path","required":true,"schema":{"type":"string","title":"Phone Number"}},{"name":"generate_summary","in":"query","required":false,"schema":{"type":"boolean","description":"Generate chat summary","default":false,"title":"Generate Summary"},"description":"Generate chat summary"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/whatsapp/responses/{contact_phone}":{"delete":{"summary":"Delete Whatsapp Response Api","operationId":"delete_whatsapp_response_api_api_whatsapp_responses__contact_phone__delete","parameters":[{"name":"contact_phone","in":"path","required":true,"schema":{"type":"string","title":"Contact Phone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/whatsapp-business/templates":{"get":{"summary":"List Whatsapp Business Templates","operationId":"list_whatsapp_business_templates_api_workspaces__workspace_id__integrations_whatsapp_business_templates_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Whatsapp Business Template","operationId":"create_whatsapp_business_template_api_workspaces__workspace_id__integrations_whatsapp_business_templates_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhatsAppTemplatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/whatsapp-business/templates/media":{"post":{"summary":"Upload Whatsapp Template Sample Media","operationId":"upload_whatsapp_template_sample_media_api_workspaces__workspace_id__integrations_whatsapp_business_templates_media_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_whatsapp_template_sample_media_api_workspaces__workspace_id__integrations_whatsapp_business_templates_media_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/integrations/whatsapp-business/templates/{template_id}":{"post":{"summary":"Update Whatsapp Business Template","operationId":"update_whatsapp_business_template_api_workspaces__workspace_id__integrations_whatsapp_business_templates__template_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWhatsAppTemplatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents":{"post":{"summary":"Create Agent Api","operationId":"create_agent_api_api_agents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__api__CreateAgentRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__api__AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agents/{agent_id}":{"get":{"summary":"Get Agent Api","operationId":"get_agent_api_api_agents__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__api__AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Agent Api","operationId":"update_agent_api_api_agents__agent_id__put","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__api__AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Agent Api","operationId":"delete_agent_api_api_agents__agent_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/transfer/agent_response":{"post":{"tags":["transfer"],"summary":"Handle Agent Response","description":"Handle agent's response to transfer request","operationId":"handle_agent_response_transfer_agent_response_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/transfer/transfer_handler":{"post":{"tags":["transfer"],"summary":"Transfer Handler","description":"Main transfer handler endpoint - handles both inbound and outbound call transfers","operationId":"transfer_handler_transfer_transfer_handler_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/gemini-live/webhook":{"get":{"tags":["gemini-live"],"summary":"Telephony Webhook","description":"Return streaming XML for Plivo / Telnyx webhooks.","operationId":"telephony_webhook_gemini_live_webhook_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["gemini-live"],"summary":"Telephony Webhook","description":"Return streaming XML for Plivo / Telnyx webhooks.","operationId":"telephony_webhook_gemini_live_webhook_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/gemini-live/twilio/webhook":{"get":{"tags":["gemini-live"],"summary":"Twilio Webhook","operationId":"twilio_webhook_gemini_live_twilio_webhook_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"tags":["gemini-live"],"summary":"Twilio Webhook","operationId":"twilio_webhook_gemini_live_twilio_webhook_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/gemini-live/texml/script":{"post":{"tags":["gemini-live"],"summary":"Texml Script","description":"TeXML script endpoint for Telnyx calls.","operationId":"texml_script_gemini_live_texml_script_post","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/gemini-live/start_call":{"post":{"tags":["gemini-live"],"summary":"Start Call","description":"Initiate an outbound call via the configured telephony provider.","operationId":"start_call_gemini_live_start_call_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundCallBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gemini-live/hangup":{"post":{"tags":["gemini-live"],"summary":"Hangup Call","description":"Hang up an active call.","operationId":"hangup_call_gemini_live_hangup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/gemini-live/incoming_call":{"post":{"tags":["gemini-live"],"summary":"Incoming Call","description":"Store metadata for an incoming call and return streaming XML.","operationId":"incoming_call_gemini_live_incoming_call_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncomingCallBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gemini-live/recording_callback":{"post":{"tags":["gemini-live"],"summary":"Recording Callback","description":"Handle recording callbacks — download, upload to DO Spaces, transcribe via ElevenLabs.","operationId":"recording_callback_gemini_live_recording_callback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/gemini-live/status_callback":{"post":{"tags":["gemini-live"],"summary":"Status Callback","description":"Store Telnyx call status updates (duration, hangup cause, etc.).","operationId":"status_callback_gemini_live_status_callback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/gemini-live/recordings/{call_uuid}":{"get":{"tags":["gemini-live"],"summary":"Get Recording Url","description":"Look up recording URL from memory, DO Spaces, or Plivo API.","operationId":"get_recording_url_gemini_live_recordings__call_uuid__get","parameters":[{"name":"call_uuid","in":"path","required":true,"schema":{"type":"string","title":"Call Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gemini-live/transcriptions/{call_uuid}":{"get":{"tags":["gemini-live"],"summary":"Get Transcription","description":"Look up a Gemini Live transcription by call UUID.","operationId":"get_transcription_gemini_live_transcriptions__call_uuid__get","parameters":[{"name":"call_uuid","in":"path","required":true,"schema":{"type":"string","title":"Call Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/changelog/latest":{"get":{"tags":["public"],"summary":"Get Latest Changelog","operationId":"get_latest_changelog_api_v1_public_changelog_latest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Latest Changelog Api V1 Public Changelog Latest Get"}}}}}}},"/api/v1/public/changelog/notify":{"post":{"tags":["public"],"summary":"Notify Changelog Endpoint","operationId":"notify_changelog_endpoint_api_v1_public_changelog_notify_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ChangelogNotifyRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Notify Changelog Endpoint Api V1 Public Changelog Notify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/contact":{"post":{"tags":["public"],"summary":"Create Contact Request","operationId":"create_contact_request_api_v1_public_contact_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Contact Request Api V1 Public Contact Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/docs-feedback":{"post":{"tags":["public"],"summary":"Submit Docs Feedback","operationId":"submit_docs_feedback_api_v1_public_docs_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocsFeedbackRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Submit Docs Feedback Api V1 Public Docs Feedback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/echo/configuration":{"get":{"tags":["public"],"summary":"Get Echo configuration","description":"Return the workspace Echo widget configuration without private credentials.","operationId":"getEchoConfiguration","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EchoConfigResponse"},{"type":"null"}],"title":"Response Getechoconfiguration"}}}}}},"put":{"tags":["public"],"summary":"Update Echo configuration","description":"Update supported Echo widget settings for the workspace. Credentials are not accepted.","operationId":"updateEchoConfiguration","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchoConfigUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EchoConfigResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/echo/sessions":{"get":{"tags":["public"],"summary":"List Echo sessions","description":"List workspace-owned Echo widget sessions with bounded status and visitor filters. Messages, IP data, and raw visitor identifiers are not returned.","operationId":"listEchoSessions","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicEchoSessionList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/errors/report":{"post":{"tags":["public"],"summary":"Report Error","operationId":"report_error_api_v1_public_errors_report_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorReportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Report Error Api V1 Public Errors Report Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/evaluation/personas":{"get":{"tags":["public"],"summary":"List evaluation personas","description":"List evaluation personas configured in the authenticated workspace.","operationId":"listEvaluationPersonas","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PersonaResponse"},"type":"array","title":"Response Listevaluationpersonas"}}}}}}},"/api/v1/public/evaluation/scenarios":{"post":{"tags":["public"],"summary":"Create evaluation scenario","description":"Create a validated evaluation scenario in the authenticated workspace idempotently.","operationId":"createEvaluationScenario","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioWriteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["public"],"summary":"List evaluation scenarios","description":"List evaluation scenarios configured in the authenticated workspace.","operationId":"listEvaluationScenarios","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioResponse"},"title":"Response Listevaluationscenarios"}}}}}}},"/api/v1/public/evaluation/runs":{"get":{"tags":["public"],"summary":"List evaluation runs","description":"List recent evaluation runs and their results in the authenticated workspace.","operationId":"listEvaluationRuns","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationRunListResponse"}}}}}},"post":{"tags":["public"],"summary":"Start evaluation run","description":"Start a bounded evaluation matrix and return its initial running state idempotently.","operationId":"startEvaluationRun","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartEvaluationRunRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationRunResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/evaluation/runs/compare":{"get":{"tags":["public"],"summary":"Compare evaluation runs","description":"Compare pass rates and scores for selected workspace evaluation runs.","operationId":"compareEvaluationRuns","parameters":[{"name":"runId","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"minItems":2,"maxItems":5,"title":"Runid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationRunComparisonResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/evaluation/runs/{run_id}":{"get":{"tags":["public"],"summary":"Get evaluation run","description":"Return one evaluation run and its results from the authenticated workspace.","operationId":"getEvaluationRun","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/files/uploads":{"post":{"tags":["public"],"summary":"Create upload handle","description":"Create a workspace-scoped, short-lived direct upload handle for an allowed file type.","operationId":"createUploadHandle","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUploadHandleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadHandle"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/files/uploads/{upload_id}/finalize":{"post":{"tags":["public"],"summary":"Finalize upload","description":"Verify object size and type, calculate its SHA-256 digest, and make the upload available for parsing or ingestion.","operationId":"finalizeUpload","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStatus"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/files/uploads/{upload_id}":{"get":{"tags":["public"],"summary":"Get upload","description":"Inspect one workspace-owned upload handle and its provenance state.","operationId":"getUpload","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/files/uploads/{upload_id}/preview":{"get":{"tags":["public"],"summary":"Preview tabular upload","description":"Safely preview bounded CSV or XLSX rows with formula-like cells neutralized.","operationId":"previewTabularUpload","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"sheet","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sheet"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TabularPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/files/uploads/{upload_id}/document-preview":{"get":{"tags":["public"],"summary":"Preview document upload","description":"Extract bounded, location-aware text from a finalized PDF, DOCX, or PPTX upload.","operationId":"previewDocumentUpload","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/files/uploads/{upload_id}/lead-preview":{"get":{"tags":["public"],"summary":"Preview lead import","description":"Normalize a finalized CSV lead upload and return accepted and rejected rows without creating leads.","operationId":"previewImportLeads","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"use_case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}},{"name":"default_country_code","in":"query","required":false,"schema":{"type":"string","default":"91","title":"Default Country Code"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/files/uploads/{upload_id}/lead-import":{"post":{"tags":["public"],"summary":"Execute lead import","description":"Create the accepted rows from a previously previewed CSV or XLSX upload after the caller confirms the mapping.","operationId":"executeImportLeads","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadImportExecuteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadResponse"},"title":"Response Executeimportleads"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/knowledge-bases/{knowledge_base_id}/documents":{"post":{"tags":["public"],"summary":"Ingest knowledge document","description":"Queue a finalized workspace upload for ingestion into a selected knowledge base with source provenance.","operationId":"ingestKnowledgeDocument","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestDocumentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/artifacts/templates":{"get":{"tags":["public"],"summary":"List artifact templates","description":"List available report artifacts and supported formats.","operationId":"listArtifactTemplates","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Listartifacttemplates"}}}}}}},"/api/v1/public/artifacts":{"post":{"tags":["public"],"summary":"Generate artifact","description":"Generate a traceable PDF, XLSX, CSV, DOCX, or PNG workspace report artifact.","operationId":"generateArtifact","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateArtifactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Artifact"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["public"],"summary":"List artifacts","description":"List recent workspace-generated artifacts.","operationId":"listArtifacts","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/artifacts/{artifact_id}":{"get":{"tags":["public"],"summary":"Get artifact","description":"Inspect one workspace-generated artifact and its provenance.","operationId":"getArtifact","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Artifact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["public"],"summary":"Delete artifact","description":"Delete a workspace-generated artifact and its stored object.","operationId":"deleteArtifact","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"204":{"description":"Successful Response","headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/artifacts/{artifact_id}/download":{"get":{"tags":["public"],"summary":"Download artifact","description":"Create a one-hour scoped download URL for a completed workspace artifact.","operationId":"downloadArtifact","parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactDownload"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/stats/total-calls":{"get":{"tags":["public"],"summary":"Public Total Calls Stats","operationId":"public_total_calls_stats_api_v1_public_stats_total_calls_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Public Total Calls Stats Api V1 Public Stats Total Calls Get"}}}}}}},"/api/v1/public/stats":{"get":{"tags":["public"],"summary":"Public Stats","description":"Aggregated stats for the public landing-page strip.\n\nMirrors the payload expected by the legacy `live-stats.js` so the\nmarketing page can render the same six counters (`totalCalls`,\n`totalMinutes`, `concurrentCalls`, `languages`, `industries`,\n`uptime`) in a single fetch.","operationId":"public_stats_api_v1_public_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Public Stats Api V1 Public Stats Get"}}}}}}},"/api/v1/public/summarizer/briefs":{"post":{"tags":["public"],"summary":"Create a summarizer brief","description":"Create a workspace-owned summarizer brief configuration idempotently.","operationId":"createBrief","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerBriefWriteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerBriefResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["public"],"summary":"List summarizer briefs","description":"List workspace-owned summarizer brief configurations and recording counts.","operationId":"listSummarizerBriefs","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Pagesize"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerBriefListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/summarizer/briefs/{brief_id}/recordings/upload":{"post":{"tags":["public"],"summary":"Prepare recording upload","description":"Create a workspace-scoped, short-lived upload handle for an audio recording belonging to a summarizer brief.","operationId":"prepareRecordingUpload","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareRecordingUploadRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadHandle"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/summarizer/briefs/{brief_id}/generate-summary":{"post":{"tags":["public"],"summary":"Generate recording summaries","description":"Queue summary processing for an exact set of recordings in a workspace-owned summarizer brief.","operationId":"generateSummary","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerGenerateSummaryRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerGenerateSummaryResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/summarizer/briefs/{brief_id}/export":{"post":{"tags":["public"],"summary":"Export a summarizer brief","description":"Generate a PDF, XLSX, CSV, DOCX, or PNG artifact containing a workspace-owned summarizer brief and its recording summaries.","operationId":"exportBrief","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportBriefRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Artifact"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/summarizer/briefs/{brief_id}":{"get":{"tags":["public"],"summary":"Get a summarizer brief","description":"Get one workspace-owned summarizer brief configuration and recording count.","operationId":"getBrief","parameters":[{"name":"brief_id","in":"path","required":true,"schema":{"type":"string","title":"Brief Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummarizerBriefDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/workspace":{"get":{"tags":["public"],"summary":"Get workspace","description":"Return the workspace associated with the authenticated API key.","operationId":"get_public_workspace_api_v1_public_workspace_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}}}},"put":{"tags":["public"],"summary":"Update workspace","description":"Update supported workspace configuration fields.","operationId":"update_public_workspace_api_v1_public_workspace_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__api__public__schemas__WorkspaceUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/workspace/members":{"get":{"tags":["public"],"summary":"List workspace members","description":"Return business-facing workspace members and roles without administrative secrets.","operationId":"listWorkspaceMembers","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWorkspaceMembers"}}}}}}},"/api/v1/public/workspace/entitlements":{"get":{"tags":["public"],"summary":"Get workspace entitlements","description":"Return enabled product capabilities and expiry state without billing internals.","operationId":"getWorkspaceEntitlements","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWorkspaceEntitlements"}}}}}}},"/api/v1/public/scheduling/configuration":{"get":{"tags":["public"],"summary":"Get scheduling configuration","description":"Return workspace scheduling mappings, readiness, provider connection state, and setup links.","operationId":"getSchedulingConfiguration","parameters":[{"name":"use_case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSchedulingConfiguration"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/workspace/overview":{"get":{"tags":["public"],"summary":"Get workspace overview","description":"Return workspace-scoped resource counts, setup warnings, and relevant product links.","operationId":"getWorkspaceOverview","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWorkspaceOverview"}}}}}}},"/api/v1/public/workspace/usage":{"get":{"tags":["public"],"summary":"Get workspace usage","description":"Return plan name and bounded usage meters. Call usage is expressed in seconds; WhatsApp and Echo usage are expressed as message counts.","operationId":"getWorkspaceUsage","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWorkspaceUsage"}}}}}}},"/api/v1/public/voices":{"get":{"tags":["public"],"summary":"List voices","description":"List stable available voice profiles by provider, language, and suggested gender without calling an external provider.","operationId":"listVoices","parameters":[{"name":"gender","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCatalog"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/with-agent":{"post":{"tags":["public"],"summary":"Create use case with agent","description":"Atomically create a workspace-owned use case and its voice agent as one idempotent operation.","operationId":"createUsecaseWithAgent","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompoundUseCaseRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompoundUseCaseResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/{use_case_id}/knowledge-base/{knowledge_base_id}":{"put":{"tags":["public"],"summary":"Link knowledge base","description":"Link one workspace-owned knowledge base to a workspace-owned use case idempotently.","operationId":"linkKnowledgeBaseToUsecase","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/{use_case_id}/knowledge-base":{"delete":{"tags":["public"],"summary":"Unlink knowledge base","description":"Remove the selected knowledge base from a workspace-owned use case idempotently.","operationId":"unlinkKnowledgeBaseFromUsecase","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/{use_case_id}/agent":{"put":{"tags":["public"],"summary":"Assign agent","description":"Assign or move a workspace-owned voice agent to a use case that does not already have another agent.","operationId":"assignAgentToUsecase","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAssignmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents/{agent_id}/voice":{"put":{"tags":["public"],"summary":"Update agent voice","description":"Change a workspace-owned agent to a stable listed voice profile and return a business-readable diff.","operationId":"updateAgentVoice","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents/{agent_id}/instructions":{"put":{"tags":["public"],"summary":"Update agent instructions","description":"Update the linked use case instructions used by a workspace-owned agent and return the before/after values.","operationId":"updateAgentInstructions","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructionsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/{use_case_id}/pause":{"post":{"tags":["public"],"summary":"Pause use case","description":"Disable scheduled execution for a workspace-owned use case idempotently.","operationId":"pauseUsecase","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/{use_case_id}/resume":{"post":{"tags":["public"],"summary":"Resume use case","description":"Enable scheduled execution for a workspace-owned use case idempotently.","operationId":"resumeUsecase","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/{use_case_id}/integration":{"put":{"tags":["public"],"summary":"Configure use-case integration","description":"Enable or disable an already connected integration for a workspace-owned use case idempotently.","operationId":"configureUsecaseIntegration","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationConfigurationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigurationActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/webhooks/configuration":{"get":{"tags":["public","Connected actions"],"summary":"Webhook Configuration","description":"Return secret-safe workspace webhook configuration status and destination metadata.","operationId":"getWebhookConfiguration","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookConfiguration"}}}}}},"put":{"tags":["public","Connected actions"],"summary":"Update Webhook Configuration","description":"Update the workspace webhook destination and custom headers without returning stored secrets.","operationId":"updateWebhookConfiguration","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookConfiguration"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["public","Connected actions"],"summary":"Create Webhook Configuration","description":"Create or replace the workspace webhook destination and custom headers.","operationId":"createWebhook","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookConfiguration"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/webhooks":{"get":{"tags":["public","Connected actions"],"summary":"Webhooks","description":"List secret-safe workspace webhook destinations.","operationId":"listWebhooks","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookList"}}}}}},"delete":{"tags":["public","Connected actions"],"summary":"Delete Webhook","description":"Remove the workspace webhook destination and stored custom headers.","operationId":"deleteWebhook","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookDeleteResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/webhooks/test":{"post":{"tags":["public","Connected actions"],"summary":"Test Webhook","description":"Send one explicit webhook.test event to the configured workspace webhook.","operationId":"testWebhook","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicWebhookTestResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/connected-actions/capabilities":{"get":{"tags":["public","Connected actions"],"summary":"Capabilities","description":"List connected providers, supported actions, and provider-specific limitations for this workspace.","operationId":"getConnectedActionCapabilities","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Getconnectedactioncapabilities"}}}}}}},"/api/v1/public/meetings/availability":{"post":{"tags":["public","Connected actions"],"summary":"Availability","description":"Query bounded appointment availability through the calendar configured for a workspace-owned call.","operationId":"getCallAvailability","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Getcallavailability"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/meetings":{"get":{"tags":["public","Connected actions"],"summary":"Meetings","description":"List workspace-owned meetings with optional status and provider filters.","operationId":"listMeetings","parameters":[{"name":"meeting_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Status"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["public","Connected actions"],"summary":"Book","description":"Book a meeting for a workspace-owned call through its configured calendar provider.","operationId":"bookMeeting","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookMeetingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/meetings/{meeting_id}":{"get":{"tags":["public","Connected actions"],"summary":"Meeting","description":"Return one workspace-owned meeting and its provider lifecycle links.","operationId":"getMeeting","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Getmeeting"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/meetings/{meeting_id}/cancel":{"post":{"tags":["public","Connected actions"],"summary":"Cancel","description":"Cancel a workspace-owned meeting through its provider and persist the resulting state.","operationId":"cancelMeeting","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelMeetingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/meetings/{meeting_id}/reschedule":{"post":{"tags":["public","Connected actions"],"summary":"Reschedule","description":"Reschedule a workspace-owned meeting, or return the provider reschedule link when direct API support is unavailable.","operationId":"rescheduleMeeting","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleMeetingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/meetings/{meeting_id}/reconcile":{"post":{"tags":["public","Connected actions"],"summary":"Reconcile","description":"Refresh a workspace-owned meeting state from its connected provider.","operationId":"reconcileMeeting","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/connected-actions/crm/export":{"post":{"tags":["public","Connected actions"],"summary":"Export Crm","description":"Export one workspace-owned call result to a selected connected CRM.","operationId":"exportCallResultToCrm","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/connected-actions/messages/whatsapp":{"post":{"tags":["public","Connected actions"],"summary":"Whatsapp","description":"Send an idempotent WhatsApp text through the workspace connection.","operationId":"sendWhatsAppMessage","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/webhook-deliveries":{"get":{"tags":["public","Connected actions"],"summary":"Webhook Deliveries","description":"List sanitized workspace webhook delivery attempts and retry health.","operationId":"listWebhookDeliveries","parameters":[{"name":"delivery_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/webhook-deliveries/health":{"get":{"tags":["public","Connected actions"],"summary":"Webhook Delivery Health","description":"Return bounded webhook delivery counts and retryable failure health.","operationId":"getWebhookDeliveryHealth","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryHealth"}}}}}}},"/api/v1/public/webhook-deliveries/{delivery_id}":{"get":{"tags":["public","Connected actions"],"summary":"Webhook Delivery","description":"Return sanitized status and failure information for one webhook delivery.","operationId":"getWebhookDelivery","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Getwebhookdelivery"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/webhook-deliveries/{delivery_id}/retry":{"post":{"tags":["public","Connected actions"],"summary":"Retry Webhook","description":"Queue one failed workspace webhook delivery for a safe retry.","operationId":"retryWebhookDelivery","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectedActionResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/analytics/dashboard":{"get":{"tags":["public"],"summary":"Get dashboard metrics","description":"Return workspace call volume, connection, success, duration, and cost metrics for a bounded date range.","operationId":"getDashboardMetrics","parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}},{"name":"use_case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardMetrics"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/analytics/usecases/{use_case_id}":{"get":{"tags":["public"],"summary":"Get use-case performance","description":"Return the same performance metrics for one workspace-owned use case and disclose the applied date filters.","operationId":"getUsecasePerformance","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCasePerformance"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/analytics/usecases/compare/metrics":{"get":{"tags":["public"],"summary":"Compare use cases","description":"Compare two to ten workspace-owned use cases over an identical bounded date range.","operationId":"compareUsecases","parameters":[{"name":"useCaseIds","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"title":"Usecaseids"}},{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseComparison"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/analytics/failed-calls":{"get":{"tags":["public"],"summary":"List failed calls","description":"List failed calls with sanitized evidence-backed categories and no raw provider payloads.","operationId":"listFailedCalls","parameters":[{"name":"start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start"}},{"name":"end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End"}},{"name":"use_case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FailedCalls"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/analytics/calls/{call_id}/diagnosis":{"get":{"tags":["public"],"summary":"Diagnose a call","description":"Return sanitized facts, clearly marked inference, and remediation guidance for one workspace-owned call.","operationId":"diagnoseCall","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallDiagnosis"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/integrations":{"get":{"tags":["public"],"summary":"List integrations","description":"Return the supported OutCallerAI integration catalog and connection status for the authenticated workspace. Credentials and provider metadata are never returned.","operationId":"listIntegrations","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicIntegrationCatalog"}}}}}}},"/api/v1/public/integrations/{integration_slug}":{"get":{"tags":["public"],"summary":"Get an integration","description":"Return catalog features, workspace connection status, and product links for one supported integration. Credentials and provider metadata are excluded.","operationId":"getIntegration","parameters":[{"name":"integration_slug","in":"path","required":true,"schema":{"type":"string","title":"Integration Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicIntegrationCatalogItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["public"],"summary":"Disconnect an integration","description":"Disconnect a workspace integration and run provider cleanup. Credentials are never returned.","operationId":"disconnectIntegration","parameters":[{"name":"integration_slug","in":"path","required":true,"schema":{"type":"string","title":"Integration Slug"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDisconnectResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/integrations/{integration_slug}/health":{"get":{"tags":["public"],"summary":"Get integration health","description":"Return sanitized connection and synchronization health for one supported integration. Provider payloads, raw errors, credentials, and metadata are excluded.","operationId":"getIntegrationHealth","parameters":[{"name":"integration_slug","in":"path","required":true,"schema":{"type":"string","title":"Integration Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicIntegrationHealth"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/integrations/{integration_slug}/setup-guide":{"get":{"tags":["public"],"summary":"Get integration setup guide","description":"Return product-owned prerequisites, protected setup steps, and links for one integration.","operationId":"getIntegrationSetupGuide","parameters":[{"name":"integration_slug","in":"path","required":true,"schema":{"type":"string","title":"Integration Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicIntegrationSetupGuide"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/integrations/{integration_slug}/test":{"post":{"tags":["public"],"summary":"Test an integration","description":"Run a bounded provider connection test without returning credentials or raw provider errors.","operationId":"testIntegration","parameters":[{"name":"integration_slug","in":"path","required":true,"schema":{"type":"string","title":"Integration Slug"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationTestResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/knowledge-bases":{"post":{"tags":["public"],"summary":"Create a knowledge base","description":"Create a named workspace knowledge base.","operationId":"createKnowledgeBase","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__api__public__schemas__KnowledgeBaseCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicKnowledgeBaseDetail"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["public"],"summary":"List knowledge bases","description":"List knowledge bases, readiness, source counts, and linked use cases.","operationId":"listKnowledgeBases","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicKnowledgeBaseList"}}}}}}},"/api/v1/public/knowledge-bases/{knowledge_base_id}/urls":{"post":{"tags":["public"],"summary":"Add knowledge URLs","description":"Add approved website URLs to a knowledge base and queue ingestion.","operationId":"addKnowledgeUrl","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicKnowledgeBaseDetail"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/knowledge-bases/{knowledge_base_id}/sources/{source_id}/retry":{"post":{"tags":["public"],"summary":"Retry a knowledge source","description":"Retry ingestion for a failed or stale knowledge-base source.","operationId":"retryKnowledgeSource","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicKnowledgeBaseDetail"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/knowledge-bases/{knowledge_base_id}/sources/{source_id}":{"delete":{"tags":["public"],"summary":"Remove a knowledge source","description":"Remove a source and its derived knowledge chunks.","operationId":"removeKnowledgeSource","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Removeknowledgesource"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/knowledge-bases/{knowledge_base_id}":{"delete":{"tags":["public"],"summary":"Delete a knowledge base","description":"Delete a workspace knowledge base and its sources.","operationId":"deleteKnowledgeBase","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Deleteknowledgebase"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["public"],"summary":"Get a knowledge base","description":"Return safe source metadata and readiness for one workspace-owned knowledge base. Source contents, storage URLs, credentials, and raw ingestion errors are excluded.","operationId":"getKnowledgeBase","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicKnowledgeBaseDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/knowledge-bases/{knowledge_base_id}/health":{"get":{"tags":["public"],"summary":"Get knowledge base health","description":"Return readiness, source status counts, and sanitized attention reasons for one workspace-owned knowledge base.","operationId":"getKnowledgeBaseHealth","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicKnowledgeBaseHealth"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases":{"get":{"tags":["public"],"summary":"List usecases","description":"Return the outbound usecases in the authenticated workspace.","operationId":"list_public_usecases_api_v1_public_usecases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__types__workspace_management__UseCaseListResponse"}}}}}},"post":{"tags":["public"],"summary":"Create usecase","description":"Create an outbound usecase in the authenticated workspace.","operationId":"create_public_usecase_api_v1_public_usecases_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseWriteRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/{use_case_id}/clone":{"post":{"tags":["public"],"summary":"Clone usecase","description":"Clone a workspace-owned use case and its configured agents without copying leads or provider-specific identifiers.","operationId":"cloneUsecase","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseEnvelopeResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/{use_case_id}":{"get":{"tags":["public"],"summary":"Get usecase","description":"Return one outbound usecase by ID.","operationId":"get_public_usecase_api_v1_public_usecases__use_case_id__get","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["public"],"summary":"Update usecase","description":"Update the configuration of an outbound usecase.","operationId":"update_public_usecase_api_v1_public_usecases__use_case_id__put","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseEnvelopeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["public"],"summary":"Delete usecase","description":"Delete an outbound usecase from the authenticated workspace.","operationId":"delete_public_usecase_api_v1_public_usecases__use_case_id__delete","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/{use_case_id}/configuration":{"get":{"tags":["public"],"summary":"Get use case configuration","description":"Return business configuration, linked agents and knowledge, scheduling, tasks, and integration selections for one workspace-owned use case.","operationId":"getUsecaseConfiguration","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUseCaseConfiguration"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents/{agent_id}/preview":{"post":{"tags":["public"],"summary":"Preview an agent","description":"Start a test-only browser voice session for an agent. No customer lead is called.","operationId":"previewAgent","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAgentPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTestVoiceSessionResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents/{agent_id}/quality":{"get":{"tags":["public"],"summary":"Get agent quality","description":"Return workspace-scoped call quality signals for one voice agent.","operationId":"getAgentQuality","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAgentQuality"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents":{"get":{"tags":["public"],"summary":"List agents","description":"List voice agents in the authenticated workspace using cursor pagination.","operationId":"list_public_agents_api_v1_public_agents_get","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by the previous page.","title":"Cursor"},"description":"Opaque cursor returned by the previous page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"Maximum number of records to return. Omit with cursor to use 50. Omit both cursor and limit for the legacy unpaginated v1 response.","title":"Limit"},"description":"Maximum number of records to return. Omit with cursor to use 50. Omit both cursor and limit for the legacy unpaginated v1 response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/outcaller_api__api__public__schemas__AgentResponse"},"title":"Response List Public Agents Api V1 Public Agents Get"}}},"headers":{"X-Next-Cursor":{"description":"Opaque cursor for the next page. Empty when no next page exists.","schema":{"type":"string"}},"X-Has-More":{"description":"Whether another page is available.","schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["public"],"summary":"Create agent","description":"Create a voice agent in the authenticated workspace.","operationId":"create_public_agent_api_v1_public_agents_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__api__public__schemas__AgentResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents/{agent_id}":{"get":{"tags":["public"],"summary":"Get agent","description":"Return a voice agent by ID.","operationId":"get_public_agent_api_v1_public_agents__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__api__public__schemas__AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["public"],"summary":"Update agent","description":"Update the supported configuration fields for a voice agent.","operationId":"update_public_agent_api_v1_public_agents__agent_id__put","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__api__public__schemas__AgentResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["public"],"summary":"Delete agent","description":"Delete a voice agent from the authenticated workspace.","operationId":"delete_public_agent_api_v1_public_agents__agent_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/leads/bulk-update":{"post":{"tags":["public"],"summary":"Update leads in bulk","description":"Update an exact, workspace-owned selection of active leads.","operationId":"bulkUpdateLeads","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkLeadUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bulkupdateleads"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/leads/bulk-move":{"post":{"tags":["public"],"summary":"Move leads to a use case","description":"Move an exact, workspace-owned selection to a use case and its sole linked agent.","operationId":"moveLeadsToUsecase","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkLeadMoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Moveleadstousecase"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/leads/bulk-delete":{"post":{"tags":["public"],"summary":"Delete leads in bulk","description":"Soft-delete an exact, workspace-owned selection of active leads.","operationId":"bulkDeleteLeads","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkLeadDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bulkdeleteleads"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents/{agent_id}/leads":{"get":{"tags":["public"],"summary":"List leads","description":"List active leads assigned to a voice agent using cursor pagination.","operationId":"list_public_agent_leads_api_v1_public_agents__agent_id__leads_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by the previous page.","title":"Cursor"},"description":"Opaque cursor returned by the previous page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"Maximum number of records to return. Omit with cursor to use 50. Omit both cursor and limit for the legacy unpaginated v1 response.","title":"Limit"},"description":"Maximum number of records to return. Omit with cursor to use 50. Omit both cursor and limit for the legacy unpaginated v1 response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadResponse"},"title":"Response List Public Agent Leads Api V1 Public Agents  Agent Id  Leads Get"}}},"headers":{"X-Next-Cursor":{"description":"Opaque cursor for the next page. Empty when no next page exists.","schema":{"type":"string"}},"X-Has-More":{"description":"Whether another page is available.","schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["public"],"summary":"Create leads","description":"Create one or more leads and assign them to a voice agent.","operationId":"create_public_agent_leads_api_v1_public_agents__agent_id__leads_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LeadCreateRequest"},{"type":"array","items":{"$ref":"#/components/schemas/LeadCreateRequest"}}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadResponse"},"title":"Response Create Public Agent Leads Api V1 Public Agents  Agent Id  Leads Post"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents/{agent_id}/leads/{lead_id}":{"get":{"tags":["public"],"summary":"Get lead","description":"Return an active lead assigned to a voice agent.","operationId":"get_public_lead_api_v1_public_agents__agent_id__leads__lead_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["public"],"summary":"Update lead","description":"Update the supported fields for an active lead.","operationId":"update_public_lead_api_v1_public_agents__agent_id__leads__lead_id__put","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["public"],"summary":"Delete lead","description":"Soft-delete a lead assigned to a voice agent.","operationId":"delete_public_lead_api_v1_public_agents__agent_id__leads__lead_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/leads/search":{"get":{"tags":["public"],"summary":"Search leads","description":"Search active workspace leads by name, email, or phone with optional use-case and status filters.","operationId":"searchLeads","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"use_case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}},{"name":"lead_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSearchResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/tasks":{"get":{"tags":["public"],"summary":"List tasks","description":"List workspace follow-up tasks with optional status and use-case filters.","operationId":"listTasks","parameters":[{"name":"task_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Status"}},{"name":"use_case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/tasks/{task_id}":{"get":{"tags":["public"],"summary":"Get task","description":"Get one workspace-owned follow-up task.","operationId":"getTask","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["public"],"summary":"Cancel task","description":"Cancel a pending task idempotently.","operationId":"cancelTask","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/tasks/{task_id}/retry":{"post":{"tags":["public"],"summary":"Retry task","description":"Return a failed or cancelled task to the pending queue idempotently.","operationId":"retryTask","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/calls/{call_id}/retry":{"post":{"tags":["public"],"summary":"Retry failed call","description":"Retry a terminal unsuccessful call using its current lead and agent.","operationId":"retryFailedCall","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Retryfailedcall"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/calls/{call_id}/queue":{"delete":{"tags":["public"],"summary":"Cancel queued call","description":"Cancel a workspace-owned call only while it has not started.","operationId":"cancelQueuedCall","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents/{agent_id}/test-call":{"post":{"tags":["public"],"summary":"Start test call","description":"Start a real test call to an existing lead assigned to the selected agent.","operationId":"startTestCall","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExistingLeadCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Starttestcall"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/usecases/{use_case_id}/calls":{"post":{"tags":["public"],"summary":"Start use-case calls","description":"Start calls for 1 to 100 explicitly selected leads in a single-agent use case.","operationId":"startUsecaseCalls","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseCallsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCallResult"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents/{agent_id}/calls":{"get":{"tags":["public"],"summary":"List calls","description":"List calls made for leads assigned to a voice agent using cursor pagination.","operationId":"list_public_agent_calls_api_v1_public_agents__agent_id__calls_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Opaque cursor returned by the previous page.","title":"Cursor"},"description":"Opaque cursor returned by the previous page."},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"description":"Maximum number of records to return. Omit with cursor to use 50. Omit both cursor and limit for the legacy unpaginated v1 response.","title":"Limit"},"description":"Maximum number of records to return. Omit with cursor to use 50. Omit both cursor and limit for the legacy unpaginated v1 response."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CallResponse"},"title":"Response List Public Agent Calls Api V1 Public Agents  Agent Id  Calls Get"}}},"headers":{"X-Next-Cursor":{"description":"Opaque cursor for the next page. Empty when no next page exists.","schema":{"type":"string"}},"X-Has-More":{"description":"Whether another page is available.","schema":{"type":"boolean"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["public"],"summary":"Create call","description":"Initiate one or more outbound calls to leads assigned to a voice agent. Accepts a single lead_id or an array of lead_ids.","operationId":"create_public_agent_call_api_v1_public_agents__agent_id__calls_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CallResponse"},"title":"Response Create Public Agent Call Api V1 Public Agents  Agent Id  Calls Post"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/agents/{agent_id}/calls/{call_id}":{"get":{"tags":["public"],"summary":"Get call","description":"Return a call, its lead context, and available outcome data.","operationId":"get_public_agent_call_api_v1_public_agents__agent_id__calls__call_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/conversations":{"get":{"tags":["public"],"summary":"List conversations","description":"List customer call conversations across the authenticated workspace, optionally filtered by use case or status. Results are bounded to 100 records.","operationId":"listConversations","parameters":[{"name":"use_case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConversationList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/conversations/{conversation_id}":{"get":{"tags":["public"],"summary":"Get a conversation","description":"Return one workspace-owned customer call conversation with transcript, summary, outcome, business names, and an access-controlled recording URL when available.","operationId":"getConversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConversationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/mcp/jobs/call-exports":{"post":{"tags":["public"],"summary":"Create call export job","description":"Idempotently enqueue a bounded JSON call export for one voice agent in the authenticated workspace. Poll the returned job handle for its terminal result.","operationId":"create_public_call_export_job_api_v1_public_mcp_jobs_call_exports_post","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallExportJobRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJobResponse"}}},"headers":{"Idempotency-Key":{"description":"Replay key for safely retrying this mutation.","schema":{"type":"string","minLength":1,"maxLength":255}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/mcp/jobs/{job_handle}":{"get":{"tags":["public"],"summary":"Get MCP job","description":"Return the status and terminal result of a durable MCP job in the authenticated workspace. Unknown and cross-workspace handles return the same not-found response.","operationId":"get_public_mcp_job_api_v1_public_mcp_jobs__job_handle__get","parameters":[{"name":"job_handle","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Job Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["public"],"summary":"Cancel MCP job","description":"Idempotently request cancellation of a queued or running durable MCP job in the authenticated workspace. Terminal jobs are returned unchanged.","operationId":"cancel_public_mcp_job_api_v1_public_mcp_jobs__job_handle__delete","parameters":[{"name":"job_handle","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Job Handle"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/blogs":{"get":{"tags":["public","public-blogs"],"summary":"List Blogs","operationId":"list_blogs_api_v1_public_blogs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBlogListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/blogs/slug/{slug}":{"get":{"tags":["public","public-blogs"],"summary":"Get Blog By Slug","operationId":"get_blog_by_slug_api_v1_public_blogs_slug__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/blog-media/{filename}":{"get":{"tags":["public","public-blogs-media"],"summary":"Get Uploaded Media","operationId":"get_uploaded_media_api_v1_public_blog_media__filename__get","parameters":[{"name":"filename","in":"path","required":true,"schema":{"type":"string","title":"Filename"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/prefect/runs":{"get":{"tags":["admin-prefect"],"summary":"List Prefect Runs","description":"Lists flow runs from local Prefect instance with resolved flow and deployment names.","operationId":"list_prefect_runs_api_admin_prefect_runs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefectRunsResponse"}}}}}}},"/api/admin/prefect/stats":{"get":{"tags":["admin-prefect"],"summary":"Get Prefect Stats","description":"Returns flow runs statistics for the dashboard cards.","operationId":"get_prefect_stats_api_admin_prefect_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefectStatsResponse"}}}}}}},"/api/admin/prefect/runs/{run_id}/retry":{"post":{"tags":["admin-prefect"],"summary":"Retry Flow Run","description":"Retries a failed flow run by creating a new run from its deployment.","operationId":"retry_flow_run_api_admin_prefect_runs__run_id__retry_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retry Flow Run Api Admin Prefect Runs  Run Id  Retry Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/prefect/runs/{run_id}/cancel":{"post":{"tags":["admin-prefect"],"summary":"Cancel Flow Run","description":"Cancels a currently active/running flow run.","operationId":"cancel_flow_run_api_admin_prefect_runs__run_id__cancel_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Flow Run Api Admin Prefect Runs  Run Id  Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/auth/login":{"post":{"tags":["admin-auth"],"summary":"Admin Login","operationId":"admin_login_api_admin_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminLoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminLoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/auth/logout":{"post":{"tags":["admin-auth"],"summary":"Admin Logout","operationId":"admin_logout_api_admin_auth_logout_post","responses":{"204":{"description":"Successful Response"}}}},"/api/admin/auth/me":{"get":{"tags":["admin-auth"],"summary":"Admin Me","operationId":"admin_me_api_admin_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminMeResponse"}}}}}}},"/api/admin-blog/posts":{"get":{"tags":["admin-blog"],"summary":"List Blog Posts","operationId":"list_blog_posts_api_admin_blog_posts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogListResponse"}}}}}},"post":{"tags":["admin-blog"],"summary":"Create Blog Post","operationId":"create_blog_post_api_admin_blog_posts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBlogPostRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin-blog/posts/{post_id}":{"get":{"tags":["admin-blog"],"summary":"Get Blog Post","operationId":"get_blog_post_api_admin_blog_posts__post_id__get","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-blog"],"summary":"Update Blog Post","operationId":"update_blog_post_api_admin_blog_posts__post_id__put","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBlogPostRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-blog"],"summary":"Delete Blog Post","operationId":"delete_blog_post_api_admin_blog_posts__post_id__delete","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin-blog/upload":{"post":{"tags":["admin-blog"],"summary":"Upload Blog Media","operationId":"upload_blog_media_api_admin_blog_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_blog_media_api_admin_blog_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadMediaResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin-blog/posts/{post_id}/media":{"post":{"tags":["admin-blog"],"summary":"Add Blog Media","operationId":"add_blog_media_api_admin_blog_posts__post_id__media_post","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadMediaResponse"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin-blog/posts/{post_id}/media/url":{"post":{"tags":["admin-blog"],"summary":"Add Blog Media Url","operationId":"add_blog_media_url_api_admin_blog_posts__post_id__media_url_post","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddBlogMediaUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin-blog/posts/{post_id}/media/{media_id}":{"delete":{"tags":["admin-blog"],"summary":"Delete Blog Media","operationId":"delete_blog_media_api_admin_blog_posts__post_id__media__media_id__delete","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}},{"name":"media_id","in":"path","required":true,"schema":{"type":"string","title":"Media Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin-blog/posts/{post_id}/media/reorder":{"put":{"tags":["admin-blog"],"summary":"Reorder Blog Media","operationId":"reorder_blog_media_api_admin_blog_posts__post_id__media_reorder_put","parameters":[{"name":"post_id","in":"path","required":true,"schema":{"type":"string","title":"Post Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderMediaRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlogPostDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/overview":{"get":{"tags":["admin-overview"],"summary":"Get Overview","operationId":"get_overview_api_admin_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOverviewResponse"}}}}}}},"/api/admin/workspaces/{workspace_id}/numbers":{"get":{"tags":["admin-workspaces"],"summary":"List Workspace Numbers","operationId":"list_workspace_numbers_api_admin_workspaces__workspace_id__numbers_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWorkspaceNumbersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces":{"get":{"tags":["admin-workspaces"],"summary":"List Workspaces","operationId":"list_workspaces_api_admin_workspaces_get","parameters":[{"name":"plan","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"}},{"name":"suspended","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Suspended"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-workspaces"],"summary":"Create Workspace","operationId":"create_workspace_api_admin_workspaces_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}":{"get":{"tags":["admin-workspaces"],"summary":"Get Workspace","operationId":"get_workspace_api_admin_workspaces__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-workspaces"],"summary":"Delete Workspace","operationId":"delete_workspace_api_admin_workspaces__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-workspaces"],"summary":"Update Workspace","operationId":"update_workspace_api_admin_workspaces__workspace_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/suspend":{"post":{"tags":["admin-workspaces"],"summary":"Suspend Workspace","operationId":"suspend_workspace_api_admin_workspaces__workspace_id__suspend_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuspendWorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceSuspendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/unsuspend":{"post":{"tags":["admin-workspaces"],"summary":"Unsuspend Workspace","operationId":"unsuspend_workspace_api_admin_workspaces__workspace_id__unsuspend_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsuspendWorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceSuspendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/max-usage":{"patch":{"tags":["admin-workspaces"],"summary":"Update Workspace Max Usage","operationId":"update_workspace_max_usage_api_admin_workspaces__workspace_id__max_usage_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceMaxUsageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceMaxUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/plan":{"patch":{"tags":["admin-workspaces"],"summary":"Update Workspace Plan","operationId":"update_workspace_plan_api_admin_workspaces__workspace_id__plan_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspacePlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspacePlanResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/transfer-ownership":{"post":{"tags":["admin-workspaces"],"summary":"Transfer Workspace Ownership","operationId":"transfer_workspace_ownership_api_admin_workspaces__workspace_id__transfer_ownership_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferOwnershipRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferOwnershipResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/api-keys":{"get":{"tags":["admin-workspaces"],"summary":"List Workspace Api Keys","operationId":"list_workspace_api_keys_api_admin_workspaces__workspace_id__api_keys_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-workspaces"],"summary":"Create Workspace Api Key","operationId":"create_workspace_api_key_api_admin_workspaces__workspace_id__api_keys_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/api-keys/{key_id}":{"delete":{"tags":["admin-workspaces"],"summary":"Delete Workspace Api Key","operationId":"delete_workspace_api_key_api_admin_workspaces__workspace_id__api_keys__key_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/usage/reset":{"post":{"tags":["admin-workspaces"],"summary":"Reset Workspace Usage","operationId":"reset_workspace_usage_api_admin_workspaces__workspace_id__usage_reset_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetUsageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/integrations":{"get":{"tags":["admin-integrations"],"summary":"List Integrations","operationId":"list_integrations_api_admin_integrations_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"provider","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Provider"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Status"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["created_at","name","provider","health"],"type":"string","default":"created_at","title":"Sort"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/integrations/{integration_id}":{"get":{"tags":["admin-integrations"],"summary":"Get Integration","operationId":"get_integration_api_admin_integrations__integration_id__get","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/integrations/{integration_id}/diagnose":{"post":{"tags":["admin-integrations"],"summary":"Diagnose Integration","operationId":"diagnose_integration_api_admin_integrations__integration_id__diagnose_post","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDiagnosticResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/integrations/{integration_id}/disable":{"post":{"tags":["admin-integrations"],"summary":"Disable Integration","description":"Disable an integration. Idempotent if already disabled.","operationId":"disable_integration_api_admin_integrations__integration_id__disable_post","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/integrations/{integration_id}/enable":{"post":{"tags":["admin-integrations"],"summary":"Enable Integration","description":"Re-enable a disabled integration (reconnect).","operationId":"enable_integration_api_admin_integrations__integration_id__enable_post","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/provider-operations":{"get":{"tags":["admin-provider-operations"],"summary":"List Unresolved Provider Operations","operationId":"list_unresolved_provider_operations_api_admin_provider_operations_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOperationList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/provider-operations/{operation_id}/resolve":{"post":{"tags":["admin-provider-operations"],"summary":"Resolve Provider Operation","operationId":"resolve_provider_operation_api_admin_provider_operations__operation_id__resolve_post","parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOperationResolution"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOperationItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/mcp-security/revocations":{"post":{"tags":["admin-mcp-security"],"summary":"Revoke Mcp Token","operationId":"revoke_mcp_token_api_admin_mcp_security_revocations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeMcpTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpTokenRevocationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/webhooks":{"get":{"tags":["admin-webhooks"],"summary":"List Webhooks","operationId":"list_webhooks_api_admin_webhooks_get","parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Status"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["created_at","last_attempt_at","attempts","status"],"type":"string","default":"created_at","title":"Sort"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-webhooks"],"summary":"Create Webhook","operationId":"create_webhook_api_admin_webhooks_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/webhooks/{webhook_id}":{"get":{"tags":["admin-webhooks"],"summary":"Get Webhook","operationId":"get_webhook_api_admin_webhooks__webhook_id__get","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-webhooks"],"summary":"Update Webhook","operationId":"update_webhook_api_admin_webhooks__webhook_id__patch","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-webhooks"],"summary":"Delete Webhook","operationId":"delete_webhook_api_admin_webhooks__webhook_id__delete","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteWebhookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/webhooks/{webhook_id}/retry":{"post":{"tags":["admin-webhooks"],"summary":"Retry Webhook","description":"Idempotent retry of a failed/dead-letter webhook delivery.\n\n- Creates a new delivery record linked via retryOf.\n- Exponential backoff based on original's attempt count.\n- Emits webhook.retried operational event.\n- Dead-letter support: retrying a dead_letter creates a fresh attempt.","operationId":"retry_webhook_api_admin_webhooks__webhook_id__retry_post","parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRetryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/conversations":{"get":{"tags":["admin-conversations"],"summary":"List Conversations","operationId":"list_conversations_api_admin_conversations_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Status"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["created_at","last_activity_at"],"type":"string","default":"created_at","title":"Sort"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/conversations/unified":{"get":{"tags":["admin-conversations"],"summary":"List Unified Conversations","operationId":"list_unified_conversations_api_admin_conversations_unified_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Channel"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnifiedConversationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/conversations/{conversation_id}":{"get":{"tags":["admin-conversations"],"summary":"Get Conversation","operationId":"get_conversation_api_admin_conversations__conversation_id__get","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/calls":{"get":{"tags":["admin-calls"],"summary":"List Calls","operationId":"list_calls_api_admin_calls_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"all","title":"Status"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"lead_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"}},{"name":"has_recording","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Recording"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__admin__schemas__calls__CallListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/calls/{call_id}":{"get":{"tags":["admin-calls"],"summary":"Get Call","operationId":"get_call_api_admin_calls__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/calls/{call_id}/transcript-download":{"get":{"tags":["admin-calls"],"summary":"Download Call Transcript","operationId":"download_call_transcript_api_admin_calls__call_id__transcript_download_get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/calls/{call_id}/recording-download":{"post":{"tags":["admin-calls"],"summary":"Prepare Call Recording Download","operationId":"prepare_call_recording_download_api_admin_calls__call_id__recording_download_post","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordingDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/usecases":{"get":{"tags":["admin-usecases"],"summary":"List Usecases","operationId":"list_usecases_api_admin_usecases_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["active","paused","draft","archived"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__admin__schemas__usecases__UseCaseListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-usecases"],"summary":"Create Usecase","operationId":"create_usecase_api_admin_usecases_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUseCaseRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/usecases/{use_case_id}":{"get":{"tags":["admin-usecases"],"summary":"Get Usecase Detail","operationId":"get_usecase_detail_api_admin_usecases__use_case_id__get","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-usecases"],"summary":"Update Usecase","operationId":"update_usecase_api_admin_usecases__use_case_id__put","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUseCaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-usecases"],"summary":"Delete Usecase","operationId":"delete_usecase_api_admin_usecases__use_case_id__delete","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUseCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/usecases/{use_case_id}/pause":{"post":{"tags":["admin-usecases"],"summary":"Pause Usecase","operationId":"pause_usecase_api_admin_usecases__use_case_id__pause_post","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/usecases/{use_case_id}/resume":{"post":{"tags":["admin-usecases"],"summary":"Resume Usecase","operationId":"resume_usecase_api_admin_usecases__use_case_id__resume_post","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/usecases/{use_case_id}/archive":{"post":{"tags":["admin-usecases"],"summary":"Archive Usecase","operationId":"archive_usecase_api_admin_usecases__use_case_id__archive_post","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseCaseActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/usecases/{use_case_id}/duplicate":{"post":{"tags":["admin-usecases"],"summary":"Duplicate Usecase","operationId":"duplicate_usecase_api_admin_usecases__use_case_id__duplicate_post","parameters":[{"name":"use_case_id","in":"path","required":true,"schema":{"type":"string","title":"Use Case Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateUseCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/agents":{"get":{"tags":["admin-agents"],"summary":"List Agents","operationId":"list_agents_api_admin_agents_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"use_case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-agents"],"summary":"Create Agent","operationId":"create_agent_api_admin_agents_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__admin__schemas__agents__CreateAgentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/agents/{agent_id}":{"get":{"tags":["admin-agents"],"summary":"Get Agent Detail","operationId":"get_agent_detail_api_admin_agents__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-agents"],"summary":"Update Agent","operationId":"update_agent_api_admin_agents__agent_id__put","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-agents"],"summary":"Delete Agent","operationId":"delete_agent_api_admin_agents__agent_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads":{"get":{"tags":["admin-leads"],"summary":"List Leads","operationId":"list_leads_api_admin_leads_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-leads"],"summary":"Create Lead","operationId":"create_lead_api_admin_leads_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLeadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/import":{"post":{"tags":["admin-leads"],"summary":"Import Leads","operationId":"import_leads_api_admin_leads_import_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_leads_api_admin_leads_import_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/leads/{lead_id}":{"get":{"tags":["admin-leads"],"summary":"Get Lead","operationId":"get_lead_api_admin_leads__lead_id__get","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-leads"],"summary":"Update Lead","operationId":"update_lead_api_admin_leads__lead_id__put","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLeadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-leads"],"summary":"Delete Lead","operationId":"delete_lead_api_admin_leads__lead_id__delete","parameters":[{"name":"lead_id","in":"path","required":true,"schema":{"type":"string","title":"Lead Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteLeadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/knowledge-base":{"post":{"tags":["admin-knowledge-base"],"summary":"Create Knowledge Base","operationId":"create_knowledge_base_api_admin_knowledge_base_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__admin__schemas__knowledge_base__KnowledgeBaseCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-knowledge-base"],"summary":"List Knowledge Bases","operationId":"list_knowledge_bases_api_admin_knowledge_base_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort_dir","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__admin__schemas__knowledge_base__KnowledgeBaseListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/knowledge-base/{knowledge_base_id}":{"get":{"tags":["admin-knowledge-base"],"summary":"Get Knowledge Base","operationId":"get_knowledge_base_api_admin_knowledge_base__knowledge_base_id__get","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-knowledge-base"],"summary":"Update Knowledge Base","operationId":"update_knowledge_base_api_admin_knowledge_base__knowledge_base_id__patch","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/outcaller_api__admin__schemas__knowledge_base__KnowledgeBaseUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-knowledge-base"],"summary":"Delete Knowledge Base","operationId":"delete_knowledge_base_api_admin_knowledge_base__knowledge_base_id__delete","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/knowledge-base/{knowledge_base_id}/sources":{"post":{"tags":["admin-knowledge-base"],"summary":"Add Sources","operationId":"add_sources_api_admin_knowledge_base__knowledge_base_id__sources_post","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAddSourceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAddSourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/knowledge-base/{knowledge_base_id}/sources/{source_id}":{"delete":{"tags":["admin-knowledge-base"],"summary":"Delete Source","operationId":"delete_source_api_admin_knowledge_base__knowledge_base_id__sources__source_id__delete","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-knowledge-base"],"summary":"Update Source","operationId":"update_source_api_admin_knowledge_base__knowledge_base_id__sources__source_id__patch","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUpdateSourceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAddSourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/knowledge-base/{knowledge_base_id}/sources/api":{"post":{"tags":["admin-knowledge-base"],"summary":"Add Api Source","operationId":"add_api_source_api_admin_knowledge_base__knowledge_base_id__sources_api_post","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAddApiSourceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAddSourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/knowledge-base/{knowledge_base_id}/documents":{"post":{"tags":["admin-knowledge-base"],"summary":"Upload Document","operationId":"upload_document_api_admin_knowledge_base__knowledge_base_id__documents_post","parameters":[{"name":"knowledge_base_id","in":"path","required":true,"schema":{"type":"string","title":"Knowledge Base Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_api_admin_knowledge_base__knowledge_base_id__documents_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUploadDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feature-flags":{"get":{"tags":["admin-feature-flags"],"summary":"List Feature Flags","operationId":"list_feature_flags_api_admin_feature_flags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureFlagListResponse"}}}}}}},"/api/admin/feature-flags/workspace-overrides":{"get":{"tags":["admin-feature-flags"],"summary":"List Workspace Feature Overrides","operationId":"list_workspace_feature_overrides_api_admin_feature_flags_workspace_overrides_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFeatureOverrideListResponse"}}}}}},"post":{"tags":["admin-feature-flags"],"summary":"Upsert Workspace Feature Override","operationId":"upsert_workspace_feature_override_api_admin_feature_flags_workspace_overrides_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFeatureOverrideRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceFeatureOverrideItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/feature-flags/{flag_id}/toggle":{"post":{"tags":["admin-feature-flags"],"summary":"Toggle Feature Flag","operationId":"toggle_feature_flag_api_admin_feature_flags__flag_id__toggle_post","parameters":[{"name":"flag_id","in":"path","required":true,"schema":{"type":"string","title":"Flag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureFlagToggleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeatureFlagToggleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/plans":{"get":{"tags":["admin-plans"],"summary":"List Plan Limits","operationId":"list_plan_limits_api_admin_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanLimitListResponse"}}}}}}},"/api/admin/plans/{plan_type}":{"put":{"tags":["admin-plans"],"summary":"Update Plan Limits","operationId":"update_plan_limits_api_admin_plans__plan_type__put","parameters":[{"name":"plan_type","in":"path","required":true,"schema":{"type":"string","title":"Plan Type"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanLimitUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanLimitItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/search":{"get":{"tags":["admin-search"],"summary":"Search Admin","operationId":"search_admin_api_admin_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":100,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/system-status":{"get":{"tags":["admin-system-status"],"summary":"Get System Status","operationId":"get_system_status_api_admin_system_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemStatusResponse"}}}}}}},"/api/admin/audit":{"get":{"tags":["admin-audit"],"summary":"List Audit Events","operationId":"list_audit_events_api_admin_audit_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"actor_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users":{"get":{"tags":["admin-users"],"summary":"List Users","operationId":"list_users_api_admin_users_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"is_admin","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Admin"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Dir"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-users"],"summary":"Create User","operationId":"create_user_api_admin_users_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}":{"get":{"tags":["admin-users"],"summary":"Get User","operationId":"get_user_api_admin_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-users"],"summary":"Update User","operationId":"update_user_api_admin_users__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-users"],"summary":"Delete User","operationId":"delete_user_api_admin_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/change-password":{"post":{"tags":["admin-users"],"summary":"Change User Password","operationId":"change_user_password_api_admin_users__user_id__change_password_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/suspend":{"post":{"tags":["admin-users"],"summary":"Suspend User","operationId":"suspend_user_api_admin_users__user_id__suspend_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuspendUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuspendUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/unsuspend":{"post":{"tags":["admin-users"],"summary":"Unsuspend User","operationId":"unsuspend_user_api_admin_users__user_id__unsuspend_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuspendUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/workspaces":{"post":{"tags":["admin-users"],"summary":"Assign Workspace Membership","operationId":"assign_workspace_membership_api_admin_users__user_id__workspaces_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignWorkspaceMembershipRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMembershipResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/workspaces/{workspace_id}":{"delete":{"tags":["admin-users"],"summary":"Remove Workspace Membership","operationId":"remove_workspace_membership_api_admin_users__user_id__workspaces__workspace_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/entitlements":{"get":{"tags":["admin-entitlements"],"summary":"List Entitlements","operationId":"list_entitlements_api_admin_entitlements_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"feature","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/entitlements":{"get":{"tags":["admin-entitlements"],"summary":"Get Workspace Entitlements","operationId":"get_workspace_entitlements_api_admin_workspaces__workspace_id__entitlements_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntitlementItem"},"title":"Response Get Workspace Entitlements Api Admin Workspaces  Workspace Id  Entitlements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-entitlements"],"summary":"Upsert Workspace Entitlement","operationId":"upsert_workspace_entitlement_api_admin_workspaces__workspace_id__entitlements_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertEntitlementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/workspaces/{workspace_id}/entitlements/{feature}":{"delete":{"tags":["admin-entitlements"],"summary":"Delete Workspace Entitlement","operationId":"delete_workspace_entitlement_api_admin_workspaces__workspace_id__entitlements__feature__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"feature","in":"path","required":true,"schema":{"type":"string","title":"Feature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteEntitlementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/system/health":{"get":{"tags":["admin-system"],"summary":"Get System Health","description":"Returns a real-time system health snapshot.","operationId":"get_system_health_api_admin_system_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemHealthResponse"}}}}}}},"/api/admin/admins":{"get":{"tags":["admin-system"],"summary":"List Admin Users","description":"Returns all admin users (for SUPER_ADMIN / OPS_ADMIN consumption).","operationId":"list_admin_users_api_admin_admins_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminUserListItem"},"type":"array","title":"Response List Admin Users Api Admin Admins Get"}}}}}},"post":{"tags":["admin-system"],"summary":"Create Admin User","description":"Create a new admin user from an existing platform user by email.","operationId":"create_admin_user_api_admin_admins_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAdminUserRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/admins/{admin_id}":{"patch":{"tags":["admin-system"],"summary":"Update Admin User","description":"Update admin role or active status. Prevents self-deactivation.","operationId":"update_admin_user_api_admin_admins__admin_id__patch","parameters":[{"name":"admin_id","in":"path","required":true,"schema":{"type":"string","title":"Admin Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAdminUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/usage":{"get":{"tags":["admin-usage"],"summary":"Get Usage Summary","operationId":"get_usage_summary_api_admin_usage_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Search"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":25,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-usage"],"summary":"Create Usage","operationId":"create_usage_api_admin_usage_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUsageRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/usage/{workspace_id}":{"get":{"tags":["admin-usage"],"summary":"Get Usage Detail","operationId":"get_usage_detail_api_admin_usage__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-usage"],"summary":"Update Usage","operationId":"update_usage_api_admin_usage__workspace_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUsageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-usage"],"summary":"Delete Usage","operationId":"delete_usage_api_admin_usage__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUsageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AIContextSettingsInput":{"properties":{"includePreviousCallContext":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Includepreviouscallcontext"}},"type":"object","title":"AIContextSettingsInput"},"AISettingsInput":{"properties":{"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"agentTalksFirst":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Agenttalksfirst"},"uninterruptable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Uninterruptable"},"callProvider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callprovider"},"telephonyProvider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephonyprovider"}},"type":"object","title":"AISettingsInput"},"AccountUsageItem":{"properties":{"owner_email":{"type":"string","title":"Owner Email"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"workspace_count":{"type":"integer","title":"Workspace Count","default":0},"total_calls_minutes":{"type":"number","title":"Total Calls Minutes","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"total_whatsapp_usage":{"type":"integer","title":"Total Whatsapp Usage","default":0},"total_echo_cost":{"type":"number","title":"Total Echo Cost","default":0.0},"total_llm_cost":{"type":"number","title":"Total Llm Cost","default":0.0},"total_evaluation_cost":{"type":"number","title":"Total Evaluation Cost","default":0.0},"total_summarizer_cost":{"type":"number","title":"Total Summarizer Cost","default":0.0},"workspaces":{"items":{"$ref":"#/components/schemas/WorkspaceUsageItem"},"type":"array","title":"Workspaces","default":[]}},"type":"object","required":["owner_email"],"title":"AccountUsageItem"},"ActionRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"ActionRequest"},"AddBlogMediaUrlRequest":{"properties":{"url":{"type":"string","minLength":1,"title":"Url"},"media_type":{"$ref":"#/components/schemas/BlogMediaType","default":"VIDEO"}},"type":"object","required":["url"],"title":"AddBlogMediaUrlRequest"},"AdminAddApiSourceRequest":{"properties":{"url":{"type":"string","title":"Url"},"method":{"type":"string","title":"Method","default":"GET"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"bearer_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bearer Token"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"body":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"items":{},"type":"array"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"items":{},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Body"},"auto_sync_enabled":{"type":"boolean","title":"Auto Sync Enabled","default":true}},"type":"object","required":["url"],"title":"AdminAddApiSourceRequest"},"AdminAddSourceRequest":{"properties":{"urls":{"items":{"type":"string"},"type":"array","title":"Urls","default":[]},"auto_sync_enabled":{"type":"boolean","title":"Auto Sync Enabled","default":true}},"type":"object","title":"AdminAddSourceRequest"},"AdminAddSourceResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"source_ids":{"items":{"type":"string"},"type":"array","title":"Source Ids","default":[]}},"type":"object","required":["success","message"],"title":"AdminAddSourceResponse"},"AdminContext":{"properties":{"admin_user_id":{"type":"string","title":"Admin User Id"},"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"role":{"$ref":"#/components/schemas/AdminRole"},"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["admin_user_id","user_id","email","role","session_id"],"title":"AdminContext"},"AdminLoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"AdminLoginRequest"},"AdminLoginResponse":{"properties":{"admin":{"$ref":"#/components/schemas/AdminContext"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["admin","expires_at"],"title":"AdminLoginResponse"},"AdminMeResponse":{"properties":{"admin_user_id":{"type":"string","title":"Admin User Id"},"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"$ref":"#/components/schemas/AdminRole"},"permissions":{"items":{"$ref":"#/components/schemas/AdminPermission"},"type":"array","title":"Permissions"}},"type":"object","required":["admin_user_id","user_id","email","name","role","permissions"],"title":"AdminMeResponse"},"AdminOverviewResponse":{"properties":{"active_workspaces":{"type":"integer","title":"Active Workspaces"},"total_workspaces":{"type":"integer","title":"Total Workspaces"},"failed_calls_last_24h":{"type":"integer","title":"Failed Calls Last 24H"},"active_calls":{"type":"integer","title":"Active Calls"},"webhook_failures_24h":{"type":"integer","title":"Webhook Failures 24H"},"webhook_dead_letters":{"type":"integer","title":"Webhook Dead Letters"},"failing_integrations":{"items":{"$ref":"#/components/schemas/FailingIntegrationItem"},"type":"array","title":"Failing Integrations"},"unhealthy_workspaces":{"items":{"$ref":"#/components/schemas/UnhealthyWorkspaceItem"},"type":"array","title":"Unhealthy Workspaces"},"recent_failed_calls":{"items":{"$ref":"#/components/schemas/RecentFailedCallItem"},"type":"array","title":"Recent Failed Calls"},"recent_failed_conversations":{"items":{"$ref":"#/components/schemas/RecentFailedConversationItem"},"type":"array","title":"Recent Failed Conversations"},"recent_incidents":{"items":{"$ref":"#/components/schemas/RecentIncident"},"type":"array","title":"Recent Incidents"},"queue_health":{"items":{"$ref":"#/components/schemas/QueueHealthItem"},"type":"array","title":"Queue Health"},"computed_at":{"type":"string","format":"date-time","title":"Computed At"}},"type":"object","required":["active_workspaces","total_workspaces","failed_calls_last_24h","active_calls","webhook_failures_24h","webhook_dead_letters","failing_integrations","unhealthy_workspaces","recent_failed_calls","recent_failed_conversations","recent_incidents","queue_health","computed_at"],"title":"AdminOverviewResponse"},"AdminPermission":{"type":"string","enum":["users:read","users:write","users:impersonate","workspaces:read","workspaces:write","entitlements:read","entitlements:write","calls:read","conversations:read","webhooks:read","webhooks:retry","webhooks:write","integrations:read","integrations:diagnose","integrations:write","provider_operations:read","provider_operations:write","audit:read","system:read","system:write","usecases:read","usecases:write","agents:read","agents:write","leads:read","leads:write","kb:read","kb:write","prefect:read","prefect:write","usage:read","usage:write","billing:read","billing:write","blogs:read","blogs:write"],"title":"AdminPermission"},"AdminRole":{"type":"string","enum":["SUPER_ADMIN","SUPPORT_ADMIN","OPS_ADMIN","AUDIT_VIEWER"],"title":"AdminRole"},"AdminSearchResponse":{"properties":{"query":{"type":"string","title":"Query"},"items":{"items":{"$ref":"#/components/schemas/AdminSearchResult"},"type":"array","title":"Items"}},"type":"object","required":["query","items"],"title":"AdminSearchResponse"},"AdminSearchResult":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["workspace","user","usecase","agent","lead","call","webhook"],"title":"Kind"},"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"href":{"type":"string","title":"Href"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","kind","title","href"],"title":"AdminSearchResult"},"AdminUpdateSourceRequest":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"bearer_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bearer Token"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"body":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"items":{},"type":"array"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"items":{},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Body"},"auto_sync_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Sync Enabled"}},"type":"object","title":"AdminUpdateSourceRequest"},"AdminUploadDocumentResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"}},"type":"object","required":["success","message"],"title":"AdminUploadDocumentResponse"},"AdminUsageResponse":{"properties":{"aggregate":{"$ref":"#/components/schemas/UsageAggregateSummary"},"workspaces":{"items":{"$ref":"#/components/schemas/WorkspaceUsageItem"},"type":"array","title":"Workspaces"},"accounts":{"items":{"$ref":"#/components/schemas/AccountUsageItem"},"type":"array","title":"Accounts"},"pagination":{"$ref":"#/components/schemas/UsagePagination"}},"type":"object","required":["aggregate","workspaces"],"title":"AdminUsageResponse"},"AdminUserListItem":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"type":"string","title":"Role"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","user_id","email","name","role","is_active","created_at","updated_at"],"title":"AdminUserListItem"},"AdminWorkspaceNumberItem":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"phone_number":{"type":"string","title":"Phone Number"},"region":{"type":"string","title":"Region"},"country":{"type":"string","title":"Country"},"application":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Application"},"active":{"type":"boolean","title":"Active","default":true},"number_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number Type"},"telephony_provider":{"type":"string","title":"Telephony Provider"}},"type":"object","required":["id","phone_number","region","country","telephony_provider"],"title":"AdminWorkspaceNumberItem"},"AdminWorkspaceNumbersResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminWorkspaceNumberItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"AdminWorkspaceNumbersResponse"},"AgentAssignmentRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"},"agentId":{"type":"string","maxLength":191,"minLength":1,"title":"Agentid"}},"additionalProperties":false,"type":"object","required":["agentId"],"title":"AgentAssignmentRequest"},"AgentCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"gender":{"type":"string","maxLength":20,"minLength":1,"title":"Gender"}},"additionalProperties":false,"type":"object","required":["name","gender"],"title":"AgentCreateRequest"},"AgentDetail":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"use_case_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Name"},"gender":{"type":"string","title":"Gender"},"voice_id":{"items":{"type":"string"},"type":"array","title":"Voice Id","default":[]},"voice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Url"},"temperature":{"type":"number","title":"Temperature","default":0.7},"agent_talks_first":{"type":"boolean","title":"Agent Talks First","default":true},"interruptable":{"type":"boolean","title":"Interruptable","default":false},"vad_enabled":{"type":"boolean","title":"Vad Enabled","default":true},"minimum_turn_duration":{"type":"integer","title":"Minimum Turn Duration","default":90},"turn_endpoint_delay":{"type":"integer","title":"Turn Endpoint Delay","default":800},"minimum_interruption_duration":{"type":"integer","title":"Minimum Interruption Duration","default":300},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","workspace_id","workspace_name","gender","created_at","updated_at"],"title":"AgentDetail"},"AgentDraftTestVoiceSessionRequest":{"properties":{"name":{"type":"string","title":"Name"},"gender":{"type":"string","enum":["MALE","FEMALE"],"title":"Gender","default":"MALE"},"voiceId":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Voiceid"},"voiceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voiceurl"},"primaryLanguage":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Primarylanguage"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"agentTalksFirst":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Agenttalksfirst"},"interruptable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Interruptable"},"vadEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vadenabled"},"minimumTurnDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimumturnduration"},"turnEndpointDelay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turnendpointdelay"},"minimumInterruptionDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimuminterruptionduration"},"provider":{"type":"string","enum":["ultravox","gemini"],"title":"Provider","default":"ultravox"}},"type":"object","required":["name"],"title":"AgentDraftTestVoiceSessionRequest"},"AgentListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"use_case_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Name"},"gender":{"type":"string","title":"Gender"},"voice_id":{"items":{"type":"string"},"type":"array","title":"Voice Id","default":[]},"temperature":{"type":"number","title":"Temperature","default":0.7},"agent_talks_first":{"type":"boolean","title":"Agent Talks First","default":true},"interruptable":{"type":"boolean","title":"Interruptable","default":false},"vad_enabled":{"type":"boolean","title":"Vad Enabled","default":true},"minimum_turn_duration":{"type":"integer","title":"Minimum Turn Duration","default":90},"turn_endpoint_delay":{"type":"integer","title":"Turn Endpoint Delay","default":800},"minimum_interruption_duration":{"type":"integer","title":"Minimum Interruption Duration","default":300},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","workspace_id","workspace_name","gender","created_at","updated_at"],"title":"AgentListItem"},"AgentListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentListItem"},"type":"array","title":"Items"},"pagination":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"integer"},{"type":"null"}]},"type":"object","title":"Pagination"}},"type":"object","required":["items","pagination"],"title":"AgentListResponse"},"AgentSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"use_case_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Name"}},"type":"object","required":["id","name"],"title":"AgentSummary"},"AgentSummaryResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"AgentSummaryResponse"},"AgentTestVoiceSessionRequest":{"properties":{"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"provider":{"type":"string","enum":["ultravox","gemini"],"title":"Provider","default":"ultravox"}},"type":"object","title":"AgentTestVoiceSessionRequest"},"AgentTestVoiceSessionResponse":{"properties":{"join_url":{"type":"string","title":"Join Url"},"session_id":{"type":"string","title":"Session Id"},"call_id":{"type":"string","title":"Call Id"},"provider":{"type":"string","title":"Provider"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"ws_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ws Url"}},"type":"object","required":["join_url","session_id","call_id","provider"],"title":"AgentTestVoiceSessionResponse"},"AgentUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"gender":{"anyOf":[{"type":"string","maxLength":20,"minLength":1},{"type":"null"}],"title":"Gender"}},"additionalProperties":false,"type":"object","title":"AgentUpdateRequest"},"AgentWriteRequest":{"properties":{"name":{"type":"string","title":"Name"},"gender":{"type":"string","enum":["MALE","FEMALE"],"title":"Gender","default":"MALE"},"voiceId":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Voiceid"},"voiceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voiceurl"},"primaryLanguage":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Primarylanguage"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"agentTalksFirst":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Agenttalksfirst"},"interruptable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Interruptable"},"vadEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vadenabled"},"minimumTurnDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimumturnduration"},"turnEndpointDelay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turnendpointdelay"},"minimumInterruptionDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimuminterruptionduration"}},"type":"object","required":["name"],"title":"AgentWriteRequest"},"AirtablePayload":{"properties":{"baseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseid"},"baseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Basename"},"tableId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tableid"},"tableName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tablename"},"viewId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewid"},"viewName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewname"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"fieldMapping":{"additionalProperties":{"type":"string"},"type":"object","title":"Fieldmapping"},"outputMapping":{"additionalProperties":{"type":"string"},"type":"object","title":"Outputmapping"},"postCallExportEnabled":{"type":"boolean","title":"Postcallexportenabled","default":true}},"type":"object","title":"AirtablePayload"},"AnalyticsSettingsUpdateRequest":{"properties":{"valuePerConversion":{"type":"number","title":"Valueperconversion"}},"type":"object","required":["valuePerConversion"],"title":"AnalyticsSettingsUpdateRequest"},"ApiKeyItem":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_default":{"type":"boolean","title":"Is Default"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","key","is_default","created_at"],"title":"ApiKeyItem"},"ApiKeyListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ApiKeyItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ApiKeyListResponse"},"AppointmentOptionsRequest":{"properties":{"callId":{"type":"string","minLength":1,"title":"Callid"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"},"specialization":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Specialization"},"doctorName":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Doctorname"},"preferredDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","title":"Preferreddate"},"preferredTimeOfDay":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Preferredtimeofday","default":"any"},"maxDoctors":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Maxdoctors","default":5},"maxSlotsPerDoctor":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Maxslotsperdoctor","default":5}},"type":"object","required":["callId","preferredDate"],"title":"AppointmentOptionsRequest"},"ApprovalRequest":{"properties":{"approvalToken":{"type":"string","maxLength":20000,"minLength":1,"title":"Approvaltoken"}},"type":"object","required":["approvalToken"],"title":"ApprovalRequest"},"Artifact":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"format":{"type":"string","title":"Format"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"sizeBytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sizebytes"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"createdAt":{"title":"Createdat"},"completedAt":{"title":"Completedat"},"provenance":{"additionalProperties":true,"type":"object","title":"Provenance"},"appUrl":{"type":"string","title":"Appurl"}},"additionalProperties":false,"type":"object","required":["id","type","format","name","status","sizeBytes","error","createdAt","completedAt","provenance","appUrl"],"title":"Artifact"},"ArtifactDownload":{"properties":{"id":{"type":"string","title":"Id"},"fileName":{"type":"string","title":"Filename"},"mimeType":{"type":"string","title":"Mimetype"},"url":{"type":"string","title":"Url"},"expiresInSeconds":{"type":"integer","title":"Expiresinseconds"}},"additionalProperties":false,"type":"object","required":["id","fileName","mimeType","url","expiresInSeconds"],"title":"ArtifactDownload"},"ArtifactList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Artifact"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"additionalProperties":false,"type":"object","required":["items","count"],"title":"ArtifactList"},"AskAiUploadHandle":{"properties":{"id":{"type":"string","title":"Id"},"fileName":{"type":"string","title":"Filename"},"mimeType":{"type":"string","title":"Mimetype"},"sizeBytes":{"type":"integer","title":"Sizebytes"},"purpose":{"type":"string","title":"Purpose"},"status":{"type":"string","title":"Status"},"expiresAt":{"title":"Expiresat"}},"type":"object","required":["id","fileName","mimeType","sizeBytes","purpose","status","expiresAt"],"title":"AskAiUploadHandle","description":"Same-origin attachment handle; never exposes a direct storage URL."},"AssignCalComUseCaseEventTypeRequest":{"properties":{"useCaseId":{"type":"string","minLength":1,"title":"Usecaseid"},"calComEventTypeId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calcomeventtypeid"},"calComEventTypeName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calcomeventtypename"}},"type":"object","required":["useCaseId"],"title":"AssignCalComUseCaseEventTypeRequest"},"AssignCalendlyUseCaseEventTypeRequest":{"properties":{"useCaseId":{"type":"string","minLength":1,"title":"Usecaseid"},"calendlyEventTypeUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendlyeventtypeuri"},"calendlyEventTypeName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendlyeventtypename"}},"type":"object","required":["useCaseId"],"title":"AssignCalendlyUseCaseEventTypeRequest"},"AssignGoogleUseCaseCalendarRequest":{"properties":{"useCaseId":{"type":"string","minLength":1,"title":"Usecaseid"},"providerCalendarId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Providercalendarid"},"providerCalendarName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Providercalendarname"},"durationMinutes":{"anyOf":[{"type":"integer","maximum":480.0,"minimum":5.0},{"type":"null"}],"title":"Durationminutes"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"availableDays":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Availabledays","description":"0=Mon, 6=Sun"},"startHour":{"anyOf":[{"type":"integer","maximum":23.0,"minimum":0.0},{"type":"null"}],"title":"Starthour"},"endHour":{"anyOf":[{"type":"integer","maximum":24.0,"minimum":1.0},{"type":"null"}],"title":"Endhour"},"bufferBeforeMinutes":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Bufferbeforeminutes"},"bufferAfterMinutes":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Bufferafterminutes"},"minimumNoticeMinutes":{"anyOf":[{"type":"integer","maximum":1440.0,"minimum":0.0},{"type":"null"}],"title":"Minimumnoticeminutes"}},"type":"object","required":["useCaseId"],"title":"AssignGoogleUseCaseCalendarRequest"},"AssignWorkspaceMembershipRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"role":{"type":"string","pattern":"^(workspace_admin|workspace_member)$","title":"Role","default":"workspace_member"}},"type":"object","required":["workspace_id"],"title":"AssignWorkspaceMembershipRequest"},"AuditEventItem":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"entity_type":{"type":"string","title":"Entity Type"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"severity":{"type":"string","title":"Severity"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","event_type","entity_type","entity_id","workspace_id","workspace_name","severity","actor_id","metadata","created_at"],"title":"AuditEventItem"},"AuditListPagination":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["next_cursor","has_more"],"title":"AuditListPagination"},"AuditListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AuditEventItem"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/AuditListPagination"}},"type":"object","required":["items","pagination"],"title":"AuditListResponse"},"AuthResponse":{"properties":{"session":{"$ref":"#/components/schemas/AuthSession"},"tokens":{"$ref":"#/components/schemas/AuthTokens"}},"type":"object","required":["session","tokens"],"title":"AuthResponse"},"AuthSession":{"properties":{"user":{"$ref":"#/components/schemas/AuthUser"},"activeWorkspaceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activeworkspaceid"},"activeWorkspace":{"anyOf":[{"$ref":"#/components/schemas/AuthWorkspace"},{"type":"null"}]}},"type":"object","required":["user"],"title":"AuthSession"},"AuthSessionResponse":{"properties":{"session":{"$ref":"#/components/schemas/AuthSession"}},"type":"object","required":["session"],"title":"AuthSessionResponse"},"AuthTokens":{"properties":{"accessToken":{"type":"string","title":"Accesstoken"},"refreshToken":{"type":"string","title":"Refreshtoken"},"accessTokenExpiresAt":{"type":"string","format":"date-time","title":"Accesstokenexpiresat"},"refreshTokenExpiresAt":{"type":"string","format":"date-time","title":"Refreshtokenexpiresat"}},"type":"object","required":["accessToken","refreshToken","accessTokenExpiresAt","refreshTokenExpiresAt"],"title":"AuthTokens"},"AuthUser":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"isAdmin":{"type":"boolean","title":"Isadmin","default":false},"emailVerified":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Emailverified"},"provider":{"type":"string","title":"Provider","default":"credentials"},"invitationId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invitationid"}},"type":"object","required":["id","email"],"title":"AuthUser"},"AuthWorkspace":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"AuthWorkspace"},"AvailabilityRequest":{"properties":{"callId":{"type":"string","title":"Callid"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"preferredDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preferreddate"}},"additionalProperties":false,"type":"object","required":["callId"],"title":"AvailabilityRequest"},"BatchCallResult":{"properties":{"useCaseId":{"type":"string","title":"Usecaseid"},"useCaseName":{"type":"string","title":"Usecasename"},"requested":{"type":"integer","title":"Requested"},"initiated":{"type":"integer","title":"Initiated"},"failed":{"type":"integer","title":"Failed"},"results":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Results"},"appUrl":{"type":"string","title":"Appurl"}},"additionalProperties":false,"type":"object","required":["useCaseId","useCaseName","requested","initiated","failed","results","appUrl"],"title":"BatchCallResult"},"BlogListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BlogPostListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"BlogListResponse"},"BlogMediaItem":{"properties":{"id":{"type":"string","title":"Id"},"media_type":{"$ref":"#/components/schemas/BlogMediaType"},"url":{"type":"string","title":"Url"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"position":{"type":"integer","title":"Position"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","media_type","url","position","created_at"],"title":"BlogMediaItem"},"BlogMediaType":{"type":"string","enum":["IMAGE","VIDEO"],"title":"BlogMediaType"},"BlogPostDetail":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"slug":{"type":"string","title":"Slug"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"featured_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Featured Image Url"},"status":{"$ref":"#/components/schemas/BlogStatus"},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"manual_tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manual Tags"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"content_html":{"type":"string","title":"Content Html"},"media":{"items":{"$ref":"#/components/schemas/BlogMediaItem"},"type":"array","title":"Media"}},"type":"object","required":["id","title","slug","status","created_at","updated_at","content_html"],"title":"BlogPostDetail"},"BlogPostListItem":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"slug":{"type":"string","title":"Slug"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"featured_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Featured Image Url"},"status":{"$ref":"#/components/schemas/BlogStatus"},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"manual_tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manual Tags"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","title","slug","status","created_at","updated_at"],"title":"BlogPostListItem"},"BlogPublishMode":{"type":"string","enum":["DRAFT","PUBLISH","SCHEDULE"],"title":"BlogPublishMode"},"BlogStatus":{"type":"string","enum":["DRAFT","PUBLISHED"],"title":"BlogStatus"},"Body_import_leads_api_admin_leads_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"workspace_id":{"type":"string","title":"Workspace Id"},"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"}},"type":"object","required":["file","workspace_id"],"title":"Body_import_leads_api_admin_leads_import_post"},"Body_import_leads_api_agents__agent_id__leads_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"countryCode":{"type":"string","title":"Countrycode"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"campaignId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaignid"}},"type":"object","required":["file","countryCode"],"title":"Body_import_leads_api_agents__agent_id__leads_import_post"},"Body_import_usecase_leads_api_workspaces__workspace_id__usecases__use_case_id__leads_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"countryCode":{"type":"string","title":"Countrycode"}},"type":"object","required":["file","countryCode"],"title":"Body_import_usecase_leads_api_workspaces__workspace_id__usecases__use_case_id__leads_import_post"},"Body_import_workspace_agents_api_workspaces__workspace_id__agents_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"voiceId":{"type":"string","title":"Voiceid"},"voiceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voiceurl"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"}},"type":"object","required":["file","voiceId"],"title":"Body_import_workspace_agents_api_workspaces__workspace_id__agents_import_post"},"Body_import_workspace_invitations_api_workspaces__workspace_id__invitations_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_workspace_invitations_api_workspaces__workspace_id__invitations_import_post"},"Body_transcribe_ask_ai_recording_api_ask_ai_transcribe_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_transcribe_ask_ai_recording_api_ask_ai_transcribe_post"},"Body_upload_ask_ai_attachment_api_ask_ai_attachments__upload_id__upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_ask_ai_attachment_api_ask_ai_attachments__upload_id__upload_post"},"Body_upload_blog_media_api_admin_blog_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_blog_media_api_admin_blog_upload_post"},"Body_upload_document_api_admin_knowledge_base__knowledge_base_id__documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"mime_type":{"type":"string","title":"Mime Type"}},"type":"object","required":["file","mime_type"],"title":"Body_upload_document_api_admin_knowledge_base__knowledge_base_id__documents_post"},"Body_upload_echo_attachment_api_public_echo_upload_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"Body_upload_echo_attachment_api_public_echo_upload_post"},"Body_upload_summarizer_recording_api_workspaces__workspace_id__summarizer_briefs__brief_id__recordings_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["file"],"title":"Body_upload_summarizer_recording_api_workspaces__workspace_id__summarizer_briefs__brief_id__recordings_post"},"Body_upload_use_case_send_document_api_workspaces__workspace_id__usecase_send_documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"mime_type":{"type":"string","title":"Mime Type"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"draftSessionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draftsessionid"}},"type":"object","required":["file","mime_type"],"title":"Body_upload_use_case_send_document_api_workspaces__workspace_id__usecase_send_documents_post"},"Body_upload_whatsapp_template_sample_media_api_workspaces__workspace_id__integrations_whatsapp_business_templates_media_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_whatsapp_template_sample_media_api_workspaces__workspace_id__integrations_whatsapp_business_templates_media_post"},"Body_upload_workspace_knowledge_base_document_api_workspaces__workspace_id__knowledge_base_documents_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"mime_type":{"type":"string","title":"Mime Type"},"knowledgeBaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["file","mime_type"],"title":"Body_upload_workspace_knowledge_base_document_api_workspaces__workspace_id__knowledge_base_documents_post"},"BookMeetingBody":{"properties":{"invitee_email":{"type":"string","format":"email","title":"Invitee Email"},"invitee_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invitee Name"},"invitee_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invitee Timezone"},"start_time":{"type":"string","title":"Start Time","description":"ISO8601 UTC start time from availability API"}},"type":"object","required":["invitee_email","start_time"],"title":"BookMeetingBody"},"BookMeetingRequest":{"properties":{"callId":{"type":"string","title":"Callid"},"inviteeEmail":{"type":"string","title":"Inviteeemail"},"inviteeName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inviteename"},"inviteeTimezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inviteetimezone"},"startTime":{"type":"string","title":"Starttime"}},"additionalProperties":false,"type":"object","required":["callId","inviteeEmail","startTime"],"title":"BookMeetingRequest"},"BulkEscalationRequest":{"properties":{"linkIds":{"items":{"type":"string"},"type":"array","title":"Linkids"}},"type":"object","title":"BulkEscalationRequest"},"BulkLeadDeleteRequest":{"properties":{"leadIds":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Leadids"}},"additionalProperties":false,"type":"object","required":["leadIds"],"title":"BulkLeadDeleteRequest"},"BulkLeadMoveRequest":{"properties":{"leadIds":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Leadids"},"useCaseId":{"type":"string","maxLength":191,"minLength":1,"title":"Usecaseid"}},"additionalProperties":false,"type":"object","required":["leadIds","useCaseId"],"title":"BulkLeadMoveRequest"},"BulkLeadUpdateRequest":{"properties":{"leadIds":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Leadids"},"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","maxLength":254,"minLength":3},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":32,"minLength":4},{"type":"null"}],"title":"Phone"},"description":{"anyOf":[{"type":"string","maxLength":1000,"minLength":1},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","required":["leadIds"],"title":"BulkLeadUpdateRequest"},"CallCreateRequest":{"properties":{"lead_id":{"anyOf":[{"type":"string","maxLength":191,"minLength":1},{"type":"null"}],"title":"Lead Id"},"lead_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1},{"type":"null"}],"title":"Lead Ids"},"phone":{"anyOf":[{"type":"string","maxLength":32,"minLength":4},{"type":"null"}],"title":"Phone"}},"additionalProperties":false,"type":"object","title":"CallCreateRequest"},"CallDetail":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"lead_id":{"type":"string","title":"Lead Id"},"lead_name":{"type":"string","title":"Lead Name"},"lead_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Phone"},"lead_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Email"},"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"use_case_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Name"},"call_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Sid"},"call_uuid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Uuid"},"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number"},"to_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Number"},"direction":{"type":"string","title":"Direction"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"call_success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Call Success"},"display_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Status"},"call_rating":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Rating"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"transcription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcription"},"recording_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Url"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"billed_duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billed Duration"},"call_conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Conclusion"},"end_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Reason"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"call_runtime_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Runtime Provider"},"telephony_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Provider"},"tts_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tts Provider"},"transcription_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcription Provider"},"recording_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Provider"},"ultravox_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ultravox Call Id"},"gemini_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gemini Session Id"},"is_voicemail":{"type":"boolean","title":"Is Voicemail"},"provider_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Provider Metadata"},"additional_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Additional Info"},"transfers":{"items":{"$ref":"#/components/schemas/CallTransferInfo"},"type":"array","title":"Transfers"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","workspace_name","lead_id","lead_name","lead_phone","lead_email","use_case_id","use_case_name","call_sid","call_uuid","from_number","to_number","direction","status","call_success","summary","transcription","recording_url","started_at","ended_at","duration_seconds","billed_duration","call_conclusion","end_reason","failure_reason","call_runtime_provider","telephony_provider","tts_provider","transcription_provider","recording_provider","ultravox_call_id","gemini_session_id","is_voicemail","provider_metadata","additional_info","transfers","created_at","updated_at"],"title":"CallDetail"},"CallDiagnosis":{"properties":{"callId":{"type":"string","title":"Callid"},"category":{"type":"string","title":"Category"},"facts":{"items":{"type":"string"},"type":"array","title":"Facts"},"inference":{"type":"string","title":"Inference"},"recommendedActions":{"items":{"type":"string"},"type":"array","title":"Recommendedactions"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["callId","category","facts","inference","recommendedActions","appUrl","docsUrl"],"title":"CallDiagnosis"},"CallExportJobRequest":{"properties":{"agentId":{"type":"string","maxLength":191,"minLength":1,"title":"Agentid"},"limit":{"type":"integer","maximum":250.0,"minimum":1.0,"title":"Limit","default":100}},"additionalProperties":false,"type":"object","required":["agentId"],"title":"CallExportJobRequest"},"CallInitiateRequest":{"properties":{"leadIds":{"items":{"type":"string"},"type":"array","title":"Leadids"},"publishUseCaseIds":{"items":{"type":"string"},"type":"array","title":"Publishusecaseids"}},"type":"object","required":["leadIds"],"title":"CallInitiateRequest"},"CallLeadResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"CallLeadResponse"},"CallListItem":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"lead_id":{"type":"string","title":"Lead Id"},"lead_name":{"type":"string","title":"Lead Name"},"lead_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Phone"},"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"use_case_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"direction":{"type":"string","title":"Direction"},"call_runtime_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Runtime Provider"},"telephony_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Provider"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"has_recording":{"type":"boolean","title":"Has Recording"},"has_transcript":{"type":"boolean","title":"Has Transcript"},"call_success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Call Success"},"display_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Status"},"is_voicemail":{"type":"boolean","title":"Is Voicemail","default":false},"call_rating":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Rating"},"call_conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Conclusion"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"transfers":{"items":{"$ref":"#/components/schemas/CallTransferInfo"},"type":"array","title":"Transfers","default":[]}},"type":"object","required":["id","workspace_id","workspace_name","lead_id","lead_name","lead_phone","use_case_id","use_case_name","status","direction","call_runtime_provider","telephony_provider","duration_seconds","has_recording","has_transcript","call_success","call_conclusion","started_at","ended_at","created_at"],"title":"CallListItem"},"CallResponse":{"properties":{"id":{"type":"string","title":"Id"},"leadId":{"type":"string","title":"Leadid"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"useCaseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasename"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"},"agentName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentname"},"transcription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcription"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"recordingUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recordingurl"},"billDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billduration"},"callDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Callduration"},"startTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starttime"},"endTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Endtime"},"callConclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callconclusion"},"apiCallbackUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apicallbackurl"},"billedDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billedduration"},"billableDurationSeconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Billabledurationseconds"},"billableCostInr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Billablecostinr"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"callSuccess":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Callsuccess"},"callRating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Callrating"},"aiCallRating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Aicallrating"},"humanCallRating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Humancallrating"},"callFeedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callfeedback"},"lead":{"anyOf":[{"$ref":"#/components/schemas/CallLeadResponse"},{"type":"null"}]}},"type":"object","required":["id","leadId"],"title":"CallResponse"},"CallTransferInfo":{"properties":{"id":{"type":"string","title":"Id"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"status":{"type":"string","title":"Status"},"start_time":{"type":"string","format":"date-time","title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"}},"type":"object","required":["id","department","status","start_time","end_time"],"title":"CallTransferInfo"},"CancelMeetingRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","title":"CancelMeetingRequest"},"ChangePasswordRequest":{"properties":{"new_password":{"type":"string","title":"New Password"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["new_password"],"title":"ChangePasswordRequest"},"ChangelogNotifyRequest":{"properties":{"mdx":{"type":"string","maxLength":200000,"minLength":1,"title":"Mdx"}},"additionalProperties":false,"type":"object","required":["mdx"],"title":"ChangelogNotifyRequest","description":"Optional MDX payload so CI can notify without shipping files in the API image."},"ClientErrorPayload":{"properties":{"digest":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Digest"},"message":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Message"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"stack":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Stack"}},"additionalProperties":false,"type":"object","title":"ClientErrorPayload"},"CompoundUseCaseRequest":{"properties":{"name":{"type":"string","maxLength":160,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Description"},"purpose":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Purpose"},"direction":{"type":"string","enum":["OUTBOUND","INBOUND","ONE_WAY"],"title":"Direction","default":"OUTBOUND"},"agentName":{"type":"string","maxLength":120,"minLength":1,"title":"Agentname"},"agentGender":{"type":"string","enum":["MALE","FEMALE"],"title":"Agentgender","default":"FEMALE"},"voiceId":{"anyOf":[{"type":"string","maxLength":191},{"type":"null"}],"title":"Voiceid"},"knowledgeBaseId":{"anyOf":[{"type":"string","maxLength":191},{"type":"null"}],"title":"Knowledgebaseid"},"integrations":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Integrations"},"scheduleEnabled":{"type":"boolean","title":"Scheduleenabled","default":false}},"additionalProperties":false,"type":"object","required":["name","agentName"],"title":"CompoundUseCaseRequest"},"CompoundUseCaseResult":{"properties":{"useCaseId":{"type":"string","title":"Usecaseid"},"useCaseName":{"type":"string","title":"Usecasename"},"agentId":{"type":"string","title":"Agentid"},"agentName":{"type":"string","title":"Agentname"},"appUrl":{"type":"string","title":"Appurl"}},"additionalProperties":false,"type":"object","required":["useCaseId","useCaseName","agentId","agentName","appUrl"],"title":"CompoundUseCaseResult"},"ConfigurationActionResult":{"properties":{"action":{"type":"string","title":"Action"},"resourceId":{"type":"string","title":"Resourceid"},"resourceName":{"type":"string","title":"Resourcename"},"changed":{"type":"boolean","title":"Changed"},"changes":{"additionalProperties":true,"type":"object","title":"Changes"},"appUrl":{"type":"string","title":"Appurl"}},"additionalProperties":false,"type":"object","required":["action","resourceId","resourceName","changed","changes","appUrl"],"title":"ConfigurationActionResult"},"ConnectedActionResult":{"properties":{"action":{"type":"string","title":"Action"},"status":{"type":"string","title":"Status"},"changed":{"type":"boolean","title":"Changed"},"message":{"type":"string","title":"Message"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"additionalProperties":false,"type":"object","required":["action","status","changed","message"],"title":"ConnectedActionResult"},"ContactRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"subject":{"type":"string","maxLength":200,"minLength":1,"title":"Subject"},"website":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Website"},"message":{"type":"string","maxLength":5000,"minLength":1,"title":"Message"}},"additionalProperties":false,"type":"object","required":["name","email","subject","message"],"title":"ContactRequest"},"ConversationCreateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Title"}},"type":"object","title":"ConversationCreateRequest"},"ConversationDetail":{"properties":{"id":{"type":"string","title":"Id"},"session_id":{"type":"string","title":"Session Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"visitor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Id"},"page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Url"},"referrer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer"},"browser":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Browser"},"device_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Type"},"os":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"screen_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Size"},"ip_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ip Data"},"status":{"type":"string","title":"Status"},"messages":{"items":{"$ref":"#/components/schemas/ConversationMessage"},"type":"array","title":"Messages"},"message_count":{"type":"integer","title":"Message Count"},"lead_capture":{"anyOf":[{"$ref":"#/components/schemas/ConversationLeadCapture"},{"type":"null"}]},"started_at":{"type":"string","format":"date-time","title":"Started At"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["id","session_id","workspace_id","workspace_name","visitor_id","page_url","referrer","browser","device_type","os","country","city","language","screen_size","ip_data","status","messages","message_count","lead_capture","started_at","last_activity_at","expires_at"],"title":"ConversationDetail"},"ConversationLeadCapture":{"properties":{"id":{"type":"string","title":"Id"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"trigger_type":{"type":"string","title":"Trigger Type"},"conversation_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Summary"},"form_submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Form Submitted At"},"abandoned":{"type":"boolean","title":"Abandoned"}},"type":"object","required":["id","lead_id","trigger_type","conversation_summary","form_submitted_at","abandoned"],"title":"ConversationLeadCapture"},"ConversationListItem":{"properties":{"id":{"type":"string","title":"Id"},"session_id":{"type":"string","title":"Session Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"visitor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Id"},"status":{"type":"string","title":"Status"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"device_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Type"},"browser":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Browser"},"page_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Url"},"has_lead_capture":{"type":"boolean","title":"Has Lead Capture"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"}},"type":"object","required":["id","session_id","workspace_id","workspace_name","visitor_id","status","country","city","device_type","browser","page_url","has_lead_capture","started_at","last_activity_at"],"title":"ConversationListItem"},"ConversationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ConversationListItem"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/CursorPage"}},"type":"object","required":["items","pagination"],"title":"ConversationListResponse"},"ConversationMessage":{"properties":{"id":{"type":"string","title":"Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"}},"type":"object","required":["id","role","content","timestamp"],"title":"ConversationMessage"},"CreateAdminUserRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"role":{"$ref":"#/components/schemas/AdminRole"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"type":"object","required":["email","role","reason"],"title":"CreateAdminUserRequest"},"CreateApiKeyRequest":{"properties":{"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Description"},"make_default":{"type":"boolean","title":"Make Default","default":false}},"type":"object","title":"CreateApiKeyRequest"},"CreateApiKeyResponse":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_default":{"type":"boolean","title":"Is Default"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","key","is_default","created_at"],"title":"CreateApiKeyResponse"},"CreateBlogPostRequest":{"properties":{"title":{"type":"string","maxLength":500,"minLength":1,"title":"Title"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"content_html":{"type":"string","title":"Content Html","default":""},"featured_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Featured Image Url"},"publish_mode":{"$ref":"#/components/schemas/BlogPublishMode","default":"DRAFT"},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"},"manual_tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manual Tags"}},"type":"object","required":["title"],"title":"CreateBlogPostRequest"},"CreateLeadRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"name":{"type":"string","minLength":1,"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","default":"new"},"external_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Source"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"}},"type":"object","required":["workspace_id","name"],"title":"CreateLeadRequest"},"CreateUploadHandleRequest":{"properties":{"fileName":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"mimeType":{"type":"string","maxLength":191,"minLength":1,"title":"Mimetype"},"sizeBytes":{"type":"integer","maximum":104857600.0,"exclusiveMinimum":0.0,"title":"Sizebytes"},"purpose":{"type":"string","enum":["knowledge","lead_import","analysis","summarizer"],"title":"Purpose"}},"additionalProperties":false,"type":"object","required":["fileName","mimeType","sizeBytes","purpose"],"title":"CreateUploadHandleRequest"},"CreateUsageRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End"},"total_call_usage":{"type":"integer","title":"Total Call Usage","default":0},"total_whatsapp_usage":{"type":"integer","title":"Total Whatsapp Usage","default":0},"total_call_cost":{"type":"number","title":"Total Call Cost","default":0.0},"total_whatsapp_cost":{"type":"number","title":"Total Whatsapp Cost","default":0.0},"total_elevenlabs_cost":{"type":"number","title":"Total Elevenlabs Cost","default":0.0},"total_elevenlabs_usage":{"type":"integer","title":"Total Elevenlabs Usage","default":0},"total_echo_input_tokens":{"type":"integer","title":"Total Echo Input Tokens","default":0},"total_echo_output_tokens":{"type":"integer","title":"Total Echo Output Tokens","default":0},"total_echo_cost":{"type":"number","title":"Total Echo Cost","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0}},"type":"object","required":["workspace_id"],"title":"CreateUsageRequest"},"CreateUsageResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"total_call_usage":{"type":"integer","title":"Total Call Usage"},"total_cost":{"type":"number","title":"Total Cost"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","workspace_name","total_call_usage","total_cost","created_at"],"title":"CreateUsageResponse"},"CreateUseCaseRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["OUTBOUND","INBOUND","ONE_WAY"],"title":"Type","default":"OUTBOUND"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"use_case_goals":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Goals"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"max_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Attempts","default":4},"escalation_window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Escalation Window Days","default":14},"calls_per_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Calls Per Week","default":2},"escalation_enabled":{"type":"boolean","title":"Escalation Enabled","default":false},"enable_manager_transfer":{"type":"boolean","title":"Enable Manager Transfer","default":false},"schedule_enabled":{"type":"boolean","title":"Schedule Enabled","default":false},"start_time":{"type":"string","title":"Start Time","default":"09:00"},"end_time":{"type":"string","title":"End Time","default":"17:00"},"scheduled_call_retry_delay_hours":{"type":"integer","title":"Scheduled Call Retry Delay Hours","default":4},"scheduled_call_max_retry_attempts":{"type":"integer","title":"Scheduled Call Max Retry Attempts","default":3},"concurrency":{"type":"integer","title":"Concurrency","default":5},"integrations":{"items":{"type":"string"},"type":"array","title":"Integrations","default":[]},"task_types":{"items":{"type":"string"},"type":"array","title":"Task Types","default":[]},"escalation_use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Use Case Id"}},"type":"object","required":["workspace_id","name"],"title":"CreateUseCaseRequest"},"CreateUserRequest":{"properties":{"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"workspace_ids":{"items":{"type":"string"},"type":"array","title":"Workspace Ids","default":[]},"send_invite":{"type":"boolean","title":"Send Invite","default":false},"is_admin":{"type":"boolean","title":"Is Admin","default":false},"admin_role":{"anyOf":[{"type":"string","pattern":"^(SUPER_ADMIN|SUPPORT_ADMIN|OPS_ADMIN|AUDIT_VIEWER)$|^$"},{"type":"null"}],"title":"Admin Role"}},"type":"object","required":["email"],"title":"CreateUserRequest"},"CreateWebhookRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"provider":{"type":"string","title":"Provider"},"event_type":{"type":"string","title":"Event Type"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"integration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration Id"},"status":{"type":"string","title":"Status","default":"pending"},"attempts":{"type":"integer","title":"Attempts","default":0},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"last_attempt_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Attempt At"},"next_retry_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Retry At"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved At"}},"type":"object","required":["workspace_id","provider","event_type","payload"],"title":"CreateWebhookRequest"},"CreateWebhookResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"provider":{"type":"string","title":"Provider"},"event_type":{"type":"string","title":"Event Type"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"integration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration Id"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"last_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempt At"},"next_retry_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Retry At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","workspace_name","provider","event_type","status","attempts","integration_id","failure_reason","last_attempt_at","next_retry_at","resolved_at","created_at"],"title":"CreateWebhookResponse"},"CreateWhatsAppTemplatePayload":{"properties":{"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language","default":"en_US"},"category":{"type":"string","title":"Category","default":"UTILITY"},"bodyText":{"type":"string","minLength":1,"title":"Bodytext"},"headerFormat":{"anyOf":[{"type":"string","enum":["NONE","TEXT","IMAGE","VIDEO","DOCUMENT","LOCATION","GIF"]},{"type":"null"}],"title":"Headerformat","default":"NONE"},"headerText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headertext"},"headerHandle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headerhandle"},"footerText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footertext"},"buttons":{"items":{"$ref":"#/components/schemas/TemplateButtonPayload"},"type":"array","title":"Buttons"}},"type":"object","required":["name","bodyText"],"title":"CreateWhatsAppTemplatePayload"},"CreateWorkspaceRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"owner_user_id":{"type":"string","title":"Owner User Id"},"plan":{"type":"string","pattern":"^(free|business|enterprise)$","title":"Plan","default":"free"},"telephony_provider":{"anyOf":[{"type":"string","pattern":"^(plivo|telnyx|twilio)$"},{"type":"null"}],"title":"Telephony Provider","default":"plivo"},"call_provider":{"anyOf":[{"type":"string","pattern":"^(ultravox|gemini|elevenlabs|selfhost)$"},{"type":"null"}],"title":"Call Provider","default":"ultravox"},"summary_provider":{"anyOf":[{"type":"string","pattern":"^(cloud|selfhost)$"},{"type":"null"}],"title":"Summary Provider","default":"cloud"}},"type":"object","required":["name","owner_user_id"],"title":"CreateWorkspaceRequest"},"CreateWorkspaceResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"plan":{"type":"string","title":"Plan"},"owner_id":{"type":"string","title":"Owner Id"},"owner_email":{"type":"string","title":"Owner Email"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","plan","owner_id","owner_email","created_at"],"title":"CreateWorkspaceResponse"},"CrmExportRequest":{"properties":{"callId":{"type":"string","title":"Callid"},"provider":{"type":"string","enum":["airtable","hubspot","pipedrive","salesforce","zoho-crm"],"title":"Provider"}},"additionalProperties":false,"type":"object","required":["callId","provider"],"title":"CrmExportRequest"},"CursorPage":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More","default":false},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","title":"CursorPage"},"DashboardMetrics":{"properties":{"dateRange":{"$ref":"#/components/schemas/DateRange"},"metrics":{"$ref":"#/components/schemas/MetricSummary"},"filters":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Filters"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"},"chartSpec":{"additionalProperties":true,"type":"object","title":"Chartspec"}},"type":"object","required":["dateRange","metrics","filters","appUrl","docsUrl","chartSpec"],"title":"DashboardMetrics"},"DateRange":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"timezone":{"type":"string","title":"Timezone","default":"Asia/Kolkata"},"label":{"type":"string","title":"Label"}},"type":"object","required":["start","end","label"],"title":"DateRange"},"DbStatus":{"properties":{"status":{"type":"string","title":"Status"},"latency_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency Ms"}},"type":"object","required":["status","latency_ms"],"title":"DbStatus"},"DeleteAgentResponse":{"properties":{"id":{"type":"string","title":"Id"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["id","deleted"],"title":"DeleteAgentResponse"},"DeleteApiKeyResponse":{"properties":{"id":{"type":"string","title":"Id"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["id","deleted"],"title":"DeleteApiKeyResponse"},"DeleteDocumentResponse":{"properties":{"message":{"type":"string","title":"Message"},"deleted_resources":{"additionalProperties":{"type":"integer"},"type":"object","title":"Deleted Resources"}},"type":"object","required":["message","deleted_resources"],"title":"DeleteDocumentResponse"},"DeleteEntitlementResponse":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"feature":{"type":"string","title":"Feature"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["workspace_id","feature","deleted"],"title":"DeleteEntitlementResponse"},"DeleteLeadResponse":{"properties":{"id":{"type":"string","title":"Id"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["id","deleted"],"title":"DeleteLeadResponse"},"DeleteUsageResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["id","workspace_id","deleted"],"title":"DeleteUsageResponse"},"DeleteUseCaseResponse":{"properties":{"id":{"type":"string","title":"Id"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["id","deleted"],"title":"DeleteUseCaseResponse"},"DeleteUserResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["id","email","deleted"],"title":"DeleteUserResponse"},"DeleteWebhookResponse":{"properties":{"id":{"type":"string","title":"Id"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["id","deleted"],"title":"DeleteWebhookResponse"},"DeleteWorkspaceRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"type":"object","required":["reason"],"title":"DeleteWorkspaceRequest"},"DeviationReportResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the report was successful"},"message":{"type":"string","title":"Message","description":"Status message"},"call_id":{"type":"integer","title":"Call Id","description":"Call ID"},"deviation_type":{"type":"string","title":"Deviation Type","description":"Type of deviation reported"}},"type":"object","required":["success","message","call_id","deviation_type"],"title":"DeviationReportResponse","description":"Response model for deviation report."},"DismissActionRequest":{"properties":{"followUp":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Followup"}},"type":"object","title":"DismissActionRequest"},"DocsFeedbackRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"message":{"type":"string","maxLength":5000,"title":"Message","default":""},"opinion":{"anyOf":[{"type":"string","pattern":"^(good|bad)$"},{"type":"null"}],"title":"Opinion"},"block_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Block Id"},"block_body":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Block Body"},"block_title":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Block Title"},"block_text":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Block Text"}},"additionalProperties":false,"type":"object","required":["url"],"title":"DocsFeedbackRequest"},"DoctorAvailabilityRequest":{"properties":{"callId":{"type":"string","minLength":1,"title":"Callid"},"doctorCode":{"type":"string","maxLength":100,"minLength":1,"title":"Doctorcode"},"appointmentDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","title":"Appointmentdate"},"preferredTimeOfDay":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Preferredtimeofday","default":"any"}},"type":"object","required":["callId","doctorCode","appointmentDate"],"title":"DoctorAvailabilityRequest"},"DocumentFileResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"file_key":{"type":"string","title":"File Key"},"file_url":{"type":"string","title":"File Url"},"document_id":{"type":"string","title":"Document Id"},"whatsapp_media_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Media Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","description","file_key","file_url","document_id","whatsapp_media_id","created_at","updated_at"],"title":"DocumentFileResponse"},"DocumentPreview":{"properties":{"uploadId":{"type":"string","title":"Uploadid"},"fileName":{"type":"string","title":"Filename"},"mimeType":{"type":"string","title":"Mimetype"},"text":{"type":"string","title":"Text"},"sections":{"items":{"$ref":"#/components/schemas/DocumentSectionPreview"},"type":"array","title":"Sections"},"truncated":{"type":"boolean","title":"Truncated"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"provenance":{"additionalProperties":true,"type":"object","title":"Provenance"}},"additionalProperties":false,"type":"object","required":["uploadId","fileName","mimeType","text","sections","truncated","warnings","provenance"],"title":"DocumentPreview"},"DocumentResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"workspace_id":{"type":"string","title":"Workspace Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"files":{"items":{"$ref":"#/components/schemas/DocumentFileResponse"},"type":"array","title":"Files"}},"type":"object","required":["id","name","description","tags","workspace_id","created_at","updated_at","files"],"title":"DocumentResponse"},"DocumentSectionPreview":{"properties":{"location":{"type":"string","title":"Location"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["location","text"],"title":"DocumentSectionPreview"},"DuplicateUseCaseResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","workspace_id","created_at"],"title":"DuplicateUseCaseResponse"},"EchoConfigResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspaceId":{"type":"string","title":"Workspaceid"},"position":{"type":"string","title":"Position"},"theme":{"type":"string","title":"Theme"},"agentName":{"type":"string","title":"Agentname"},"welcomeMessage":{"type":"string","title":"Welcomemessage"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logourl"},"primaryColor":{"type":"string","title":"Primarycolor"},"userBubbleColor":{"type":"string","title":"Userbubblecolor"},"userBubbleTextColor":{"type":"string","title":"Userbubbletextcolor"},"botBubbleColor":{"type":"string","title":"Botbubblecolor"},"botBubbleTextColor":{"type":"string","title":"Botbubbletextcolor"},"headerGradientFrom":{"type":"string","title":"Headergradientfrom"},"headerGradientTo":{"type":"string","title":"Headergradientto"},"launcherSize":{"type":"string","title":"Launchersize"},"borderRadius":{"type":"string","title":"Borderradius"},"shadowSize":{"type":"string","title":"Shadowsize"},"inputPlaceholder":{"type":"string","title":"Inputplaceholder"},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"},"hideSuggestionsOnInteract":{"type":"boolean","title":"Hidesuggestionsoninteract","default":true},"previewMessages":{"items":{"type":"string"},"type":"array","title":"Previewmessages"},"autoShowPreviewDelay":{"type":"integer","title":"Autoshowpreviewdelay","default":3000},"showBranding":{"type":"boolean","title":"Showbranding","default":true},"privacyPolicyUrl":{"type":"string","title":"Privacypolicyurl"},"enableLeadCapture":{"type":"boolean","title":"Enableleadcapture","default":false},"leadCaptureKeywords":{"items":{"type":"string"},"type":"array","title":"Leadcapturekeywords"},"leadCaptureMinutesThreshold":{"type":"integer","title":"Leadcaptureminutesthreshold","default":5},"leadCaptureMessageThreshold":{"type":"integer","title":"Leadcapturemessagethreshold","default":4},"targetAgentIdForLeads":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Targetagentidforleads"},"enableBrochure":{"type":"boolean","title":"Enablebrochure","default":false},"brochureSuggestionText":{"type":"string","title":"Brochuresuggestiontext"},"allowedDomains":{"items":{"type":"string"},"type":"array","title":"Alloweddomains"},"enableVoiceCall":{"type":"boolean","title":"Enablevoicecall","default":false},"selectedUseCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selectedusecaseid"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","workspaceId","position","theme","agentName","welcomeMessage","primaryColor","userBubbleColor","userBubbleTextColor","botBubbleColor","botBubbleTextColor","headerGradientFrom","headerGradientTo","launcherSize","borderRadius","shadowSize","inputPlaceholder","privacyPolicyUrl","brochureSuggestionText","createdAt","updatedAt"],"title":"EchoConfigResponse"},"EchoConfigUpdateRequest":{"properties":{"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"theme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Theme"},"agentName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentname"},"welcomeMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcomemessage"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logourl"},"primaryColor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primarycolor"},"userBubbleColor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userbubblecolor"},"userBubbleTextColor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userbubbletextcolor"},"botBubbleColor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Botbubblecolor"},"botBubbleTextColor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Botbubbletextcolor"},"headerGradientFrom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headergradientfrom"},"headerGradientTo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headergradientto"},"launcherSize":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launchersize"},"borderRadius":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borderradius"},"shadowSize":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shadowsize"},"inputPlaceholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inputplaceholder"},"suggestions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Suggestions"},"hideSuggestionsOnInteract":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidesuggestionsoninteract"},"previewMessages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Previewmessages"},"autoShowPreviewDelay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Autoshowpreviewdelay"},"showBranding":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Showbranding"},"privacyPolicyUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacypolicyurl"},"enableLeadCapture":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enableleadcapture"},"leadCaptureKeywords":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Leadcapturekeywords"},"leadCaptureMinutesThreshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Leadcaptureminutesthreshold"},"leadCaptureMessageThreshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Leadcapturemessagethreshold"},"targetAgentIdForLeads":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Targetagentidforleads"},"enableBrochure":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enablebrochure"},"brochureSuggestionText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brochuresuggestiontext"},"allowedDomains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Alloweddomains"},"enableVoiceCall":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enablevoicecall"},"selectedUseCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selectedusecaseid"}},"type":"object","title":"EchoConfigUpdateRequest"},"EchoConfigWithWorkspaceResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"information":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Information"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"callProvider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callprovider"},"enableVoiceCall":{"type":"boolean","title":"Enablevoicecall","default":false}},"type":"object","required":["id","name"],"title":"EchoConfigWithWorkspaceResponse"},"EchoVoiceSessionResponse":{"properties":{"join_url":{"type":"string","title":"Join Url"},"call_id":{"type":"string","title":"Call Id"},"session_id":{"type":"string","title":"Session Id"},"provider":{"type":"string","title":"Provider"}},"type":"object","required":["join_url","call_id","session_id","provider"],"title":"EchoVoiceSessionResponse","description":"Response containing WebRTC session details."},"EmailRequest":{"properties":{"to_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Email"},"lead_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Email"},"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body"},"visit_date":{"type":"string","title":"Visit Date"},"visit_time":{"type":"string","title":"Visit Time"},"visit_duration":{"type":"integer","title":"Visit Duration","default":60},"task_information":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Task Information"}},"type":"object","required":["subject","body","visit_date","visit_time"],"title":"EmailRequest"},"EntitlementItem":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"feature":{"type":"string","title":"Feature"},"enabled":{"type":"boolean","title":"Enabled"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"granted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","workspace_name","feature","enabled","reason","expires_at","granted_by","created_at","updated_at"],"title":"EntitlementItem"},"EntitlementListPagination":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["next_cursor","has_more"],"title":"EntitlementListPagination"},"EntitlementListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EntitlementItem"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/EntitlementListPagination"}},"type":"object","required":["items","pagination"],"title":"EntitlementListResponse"},"ErrorReportRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"error":{"anyOf":[{"anyOf":[{"$ref":"#/components/schemas/ClientErrorPayload"},{"type":"string"}],"maxLength":5000},{"type":"null"}],"title":"Error"},"additionalInfo":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Additionalinfo"}},"additionalProperties":false,"type":"object","title":"ErrorReportRequest"},"EscalationLinkCreateRequest":{"properties":{"sourceLeadId":{"type":"string","title":"Sourceleadid"},"escalationContactName":{"type":"string","title":"Escalationcontactname"},"escalationContactPhone":{"type":"string","title":"Escalationcontactphone"}},"type":"object","required":["sourceLeadId","escalationContactName","escalationContactPhone"],"title":"EscalationLinkCreateRequest"},"EscalationLinkDeleteRequest":{"properties":{"linkId":{"type":"string","title":"Linkid"}},"type":"object","required":["linkId"],"title":"EscalationLinkDeleteRequest"},"EscalationLinkEnvelopeResponse":{"properties":{"escalationLink":{"$ref":"#/components/schemas/EscalationLinkResponse"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["escalationLink"],"title":"EscalationLinkEnvelopeResponse"},"EscalationLinkListResponse":{"properties":{"escalationLinks":{"items":{"$ref":"#/components/schemas/EscalationLinkResponse"},"type":"array","title":"Escalationlinks"}},"type":"object","title":"EscalationLinkListResponse"},"EscalationLinkResponse":{"additionalProperties":true,"type":"object"},"EvaluationResultResponse":{"properties":{"id":{"type":"string","title":"Id"},"runId":{"type":"string","title":"Runid"},"personaId":{"type":"string","title":"Personaid"},"scenarioId":{"type":"string","title":"Scenarioid"},"personaName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personaname"},"scenarioName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenarioname"},"status":{"type":"string","title":"Status"},"leadId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leadid"},"callId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callid"},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Passed"},"evaluationNotes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluationnotes"},"suggestions":{"anyOf":[{},{"type":"null"}],"title":"Suggestions"},"criteriaResults":{"anyOf":[{},{"type":"null"}],"title":"Criteriaresults"},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startedat"},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completedat"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","runId","personaId","scenarioId","status","createdAt","updatedAt"],"title":"EvaluationResultResponse"},"EvaluationRunComparisonItem":{"properties":{"runId":{"type":"string","title":"Runid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"type":"string","title":"Status"},"totalCount":{"type":"integer","title":"Totalcount"},"passCount":{"type":"integer","title":"Passcount"},"failCount":{"type":"integer","title":"Failcount"},"passRate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Passrate"},"averageScore":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Averagescore"}},"type":"object","required":["runId","status","totalCount","passCount","failCount"],"title":"EvaluationRunComparisonItem"},"EvaluationRunComparisonResponse":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/EvaluationRunComparisonItem"},"type":"array","title":"Runs"}},"type":"object","required":["runs"],"title":"EvaluationRunComparisonResponse"},"EvaluationRunListResponse":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/EvaluationRunResponse"},"type":"array","title":"Runs"}},"type":"object","required":["runs"],"title":"EvaluationRunListResponse"},"EvaluationRunResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspaceId":{"type":"string","title":"Workspaceid"},"useCaseId":{"type":"string","title":"Usecaseid"},"useCaseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasename"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"type":"string","title":"Status"},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startedat"},"completedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completedat"},"results":{"items":{"$ref":"#/components/schemas/EvaluationResultResponse"},"type":"array","title":"Results"},"passCount":{"type":"integer","title":"Passcount","default":0},"failCount":{"type":"integer","title":"Failcount","default":0},"totalCount":{"type":"integer","title":"Totalcount","default":0},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","workspaceId","useCaseId","status","createdAt","updatedAt"],"title":"EvaluationRunResponse"},"ExistingLeadCallRequest":{"properties":{"leadId":{"type":"string","maxLength":191,"minLength":1,"title":"Leadid"}},"additionalProperties":false,"type":"object","required":["leadId"],"title":"ExistingLeadCallRequest"},"ExportBriefRequest":{"properties":{"format":{"type":"string","enum":["pdf","xlsx","csv","docx","png"],"title":"Format"},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"startDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"}},"additionalProperties":false,"type":"object","required":["format"],"title":"ExportBriefRequest"},"FailedCallGroup":{"properties":{"category":{"type":"string","title":"Category"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["category","count"],"title":"FailedCallGroup"},"FailedCallItem":{"properties":{"id":{"type":"string","title":"Id"},"useCaseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasename"},"leadName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leadname"},"occurredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurredat"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"category":{"type":"string","title":"Category"},"reason":{"type":"string","title":"Reason"},"appUrl":{"type":"string","title":"Appurl"}},"type":"object","required":["id","useCaseName","leadName","occurredAt","status","category","reason","appUrl"],"title":"FailedCallItem"},"FailedCalls":{"properties":{"dateRange":{"$ref":"#/components/schemas/DateRange"},"groups":{"items":{"$ref":"#/components/schemas/FailedCallGroup"},"type":"array","title":"Groups"},"items":{"items":{"$ref":"#/components/schemas/FailedCallItem"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"},"appUrl":{"type":"string","title":"Appurl"}},"type":"object","required":["dateRange","groups","items","count","appUrl"],"title":"FailedCalls"},"FailingIntegrationItem":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"provider":{"type":"string","title":"Provider"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"failure_count":{"type":"integer","title":"Failure Count"},"last_failed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Failed At"}},"type":"object","required":["id","workspace_id","workspace_name","provider","name","failure_count","last_failed_at"],"title":"FailingIntegrationItem"},"FeatureFlagItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key"},"flag_type":{"type":"string","enum":["rollout","kill_switch","experiment"],"title":"Flag Type"},"scope":{"type":"string","enum":["global","workspace"],"title":"Scope"},"enabled":{"type":"boolean","title":"Enabled","default":false},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"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"}},"type":"object","required":["id","name","key","flag_type","scope"],"title":"FeatureFlagItem"},"FeatureFlagListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FeatureFlagItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"FeatureFlagListResponse"},"FeatureFlagToggleRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["enabled"],"title":"FeatureFlagToggleRequest"},"FeatureFlagToggleResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"key":{"type":"string","title":"Key"},"enabled":{"type":"boolean","title":"Enabled"},"previous_enabled":{"type":"boolean","title":"Previous Enabled"},"toggled_at":{"type":"string","format":"date-time","title":"Toggled At"}},"type":"object","required":["id","name","key","enabled","previous_enabled","toggled_at"],"title":"FeatureFlagToggleResponse"},"FollowUpEmailSettingsInput":{"properties":{"enableFollowUpEmail":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enablefollowupemail"},"followUpEmailSendgridApiKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followupemailsendgridapikey"},"followUpEmailFromEmail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followupemailfromemail"}},"type":"object","title":"FollowUpEmailSettingsInput"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"GeminiWebSocketRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"workspace_id":{"type":"string","title":"Workspace Id"}},"type":"object","required":["session_id","workspace_id"],"title":"GeminiWebSocketRequest","description":"Request for Gemini WebSocket URL."},"GeminiWebSocketResponse":{"properties":{"ws_url":{"type":"string","title":"Ws Url"},"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["ws_url","session_id"],"title":"GeminiWebSocketResponse","description":"Response containing Gemini WebSocket URL."},"GenerateArtifactRequest":{"properties":{"type":{"type":"string","enum":["executive","campaign","agent_performance","conversation","lead","cost_roi","knowledge_base","compliance","summarizer_brief"],"title":"Type"},"format":{"type":"string","enum":["pdf","xlsx","csv","docx","png"],"title":"Format"},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"startDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"briefId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Briefid"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"additionalProperties":false,"type":"object","required":["type","format"],"title":"GenerateArtifactRequest"},"GenerateReportRequest":{"properties":{"type":{"type":"string","enum":["executive","campaign","agent_performance","conversation","lead","cost_roi","knowledge_base","compliance","summarizer_brief"],"title":"Type"},"format":{"type":"string","enum":["pdf","xlsx","csv","docx","png"],"title":"Format"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"startDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"campaignId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaignid"}},"type":"object","required":["type","format"],"title":"GenerateReportRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HumanAgentDeleteResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"HumanAgentDeleteResponse"},"HumanAgentEnvelopeResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"human_agent":{"$ref":"#/components/schemas/HumanAgentResponse"},"message":{"type":"string","title":"Message"}},"type":"object","required":["human_agent","message"],"title":"HumanAgentEnvelopeResponse"},"HumanAgentListResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"human_agents":{"items":{"$ref":"#/components/schemas/HumanAgentResponse"},"type":"array","title":"Human Agents"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"HumanAgentListResponse"},"HumanAgentResponse":{"additionalProperties":true,"type":"object"},"HumanAgentWriteRequest":{"properties":{"useCaseId":{"type":"string","title":"Usecaseid"},"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"countryCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Countrycode"}},"type":"object","required":["useCaseId","name","phone"],"title":"HumanAgentWriteRequest"},"InboundLeadCallResponse":{"properties":{"id":{"type":"string","title":"Id"},"callDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Callduration"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"tasks":{"items":{"$ref":"#/components/schemas/InboundLeadTaskResponse"},"type":"array","title":"Tasks"}},"type":"object","required":["id","createdAt"],"title":"InboundLeadCallResponse"},"InboundLeadListResponse":{"properties":{"leads":{"items":{"$ref":"#/components/schemas/InboundLeadResponse"},"type":"array","title":"Leads"},"count":{"type":"integer","title":"Count","default":0}},"type":"object","title":"InboundLeadListResponse"},"InboundLeadResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspaceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspaceid"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"calls":{"items":{"$ref":"#/components/schemas/InboundLeadCallResponse"},"type":"array","title":"Calls"}},"type":"object","required":["id","name","createdAt","updatedAt"],"title":"InboundLeadResponse"},"InboundLeadTaskResponse":{"properties":{"id":{"type":"string","title":"Id"},"task_types":{"items":{"type":"string"},"type":"array","title":"Task Types"},"status":{"type":"string","title":"Status"},"task_due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Task Due Date"},"task_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Description"},"integrations":{"items":{"type":"string"},"type":"array","title":"Integrations"}},"type":"object","required":["id","status"],"title":"InboundLeadTaskResponse"},"IncomingCallBody":{"properties":{"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number"},"to_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Number"},"call_uuid":{"type":"string","title":"Call Uuid"},"call_provider":{"type":"string","title":"Call Provider","default":"gemini"},"language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Code"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"knowledge_base_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Base Id"},"usecase_industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecase Industry"},"enable_deviation_tool":{"type":"boolean","title":"Enable Deviation Tool","default":false},"enable_manager_transfer":{"type":"boolean","title":"Enable Manager Transfer","default":false},"telephony_provider":{"type":"string","title":"Telephony Provider","default":"plivo"},"system_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"System Prompt"},"voice_id":{"type":"string","title":"Voice Id","default":"Kore"},"agent_talks_first":{"type":"boolean","title":"Agent Talks First","default":true},"custom_first_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom First Message"},"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"scheduling_enabled":{"type":"boolean","title":"Scheduling Enabled","default":false},"outcaller_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcaller Call Id"}},"type":"object","required":["call_uuid"],"title":"IncomingCallBody"},"IngestDocumentRequest":{"properties":{"uploadId":{"type":"string","title":"Uploadid"},"label":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Label"}},"additionalProperties":false,"type":"object","required":["uploadId"],"title":"IngestDocumentRequest"},"IngestionResult":{"properties":{"uploadId":{"type":"string","title":"Uploadid"},"sourceId":{"type":"string","title":"Sourceid"},"knowledgeBaseId":{"type":"string","title":"Knowledgebaseid"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"provenance":{"additionalProperties":true,"type":"object","title":"Provenance"}},"additionalProperties":false,"type":"object","required":["uploadId","sourceId","knowledgeBaseId","status","message","provenance"],"title":"IngestionResult"},"InitialMessageSettingsInput":{"properties":{"enableCustomFirstMessage":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enablecustomfirstmessage"},"customFirstMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customfirstmessage"}},"type":"object","title":"InitialMessageSettingsInput"},"InstructionsUpdateRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"},"instructions":{"type":"string","maxLength":50000,"minLength":1,"title":"Instructions"}},"additionalProperties":false,"type":"object","required":["instructions"],"title":"InstructionsUpdateRequest"},"IntegrationActionRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"type":"object","required":["reason"],"title":"IntegrationActionRequest"},"IntegrationAuth":{"properties":{"type":{"type":"string","title":"Type"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"}},"type":"object","required":["type"],"title":"IntegrationAuth"},"IntegrationConfigurationRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"},"integrationSlug":{"type":"string","maxLength":100,"minLength":1,"title":"Integrationslug"},"enabled":{"type":"boolean","title":"Enabled"}},"additionalProperties":false,"type":"object","required":["integrationSlug","enabled"],"title":"IntegrationConfigurationRequest"},"IntegrationConnectRequest":{"properties":{"credentials":{"additionalProperties":true,"type":"object","title":"Credentials","default":{}},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}}},"type":"object","title":"IntegrationConnectRequest"},"IntegrationDetail":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"provider":{"type":"string","title":"Provider"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"enabled":{"type":"boolean","title":"Enabled"},"health_state":{"type":"string","enum":["healthy","degraded","disconnected","unknown"],"title":"Health State"},"config_keys":{"items":{"type":"string"},"type":"array","title":"Config Keys"},"has_secret_ref":{"type":"boolean","title":"Has Secret Ref"},"recent_events":{"items":{"$ref":"#/components/schemas/IntegrationEvent"},"type":"array","title":"Recent Events"},"recent_failure_count":{"type":"integer","title":"Recent Failure Count"},"recent_recovery_count":{"type":"integer","title":"Recent Recovery Count"},"last_event_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Event At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","workspace_name","provider","name","enabled","health_state","config_keys","has_secret_ref","recent_events","recent_failure_count","recent_recovery_count","last_event_at","created_at","updated_at"],"title":"IntegrationDetail"},"IntegrationDiagnosticResult":{"properties":{"integration_id":{"type":"string","title":"Integration Id"},"provider":{"type":"string","title":"Provider"},"reachable":{"type":"boolean","title":"Reachable"},"credential_valid":{"type":"boolean","title":"Credential Valid"},"latency_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latency Ms"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"details":{"additionalProperties":true,"type":"object","title":"Details"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"}},"type":"object","required":["integration_id","provider","reachable","credential_valid","latency_ms","error","details","checked_at"],"title":"IntegrationDiagnosticResult"},"IntegrationDisconnectResult":{"properties":{"action":{"type":"string","title":"Action","default":"disconnect_integration"},"integration":{"type":"string","title":"Integration"},"changed":{"type":"boolean","title":"Changed"},"message":{"type":"string","title":"Message"},"appUrl":{"type":"string","title":"Appurl","default":"/integrations"}},"type":"object","required":["integration","changed","message"],"title":"IntegrationDisconnectResult"},"IntegrationEvent":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"severity":{"type":"string","title":"Severity"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","event_type","severity","metadata","created_at"],"title":"IntegrationEvent"},"IntegrationField":{"properties":{"label":{"type":"string","title":"Label"},"type":{"type":"string","title":"Type"},"required":{"type":"boolean","title":"Required"},"placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeholder"},"help":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help"}},"type":"object","required":["label","type","required"],"title":"IntegrationField"},"IntegrationHealth":{"properties":{"provider":{"type":"string","title":"Provider"},"enabled":{"type":"boolean","title":"Enabled"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["provider","enabled"],"title":"IntegrationHealth"},"IntegrationListItem":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"provider":{"type":"string","title":"Provider"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"enabled":{"type":"boolean","title":"Enabled"},"health_state":{"type":"string","enum":["healthy","degraded","disconnected","unknown"],"title":"Health State"},"last_event_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Event At"},"recent_failure_count":{"type":"integer","title":"Recent Failure Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","workspace_name","provider","name","enabled","health_state","last_event_at","recent_failure_count","created_at","updated_at"],"title":"IntegrationListItem"},"IntegrationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IntegrationListItem"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/CursorPage"}},"type":"object","required":["items","pagination"],"title":"IntegrationListResponse"},"IntegrationManifest":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"icon":{"type":"string","title":"Icon"},"auth":{"$ref":"#/components/schemas/IntegrationAuth"},"metadata_fields":{"additionalProperties":{"$ref":"#/components/schemas/IntegrationField"},"type":"object","title":"Metadata Fields","default":{}},"features":{"items":{"type":"string"},"type":"array","title":"Features","default":[]}},"type":"object","required":["id","slug","name","category","icon","auth"],"title":"IntegrationManifest"},"IntegrationTestEmailRequest":{"properties":{"toEmail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Toemail"},"fromEmail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fromemail"},"apiKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"},"sendgridApiKeyUnchanged":{"type":"boolean","title":"Sendgridapikeyunchanged","default":false},"resendApiKeyUnchanged":{"type":"boolean","title":"Resendapikeyunchanged","default":false}},"type":"object","title":"IntegrationTestEmailRequest","description":"Optional draft settings; omitted fields use saved workspace integration credentials."},"IntegrationTestEmailResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"toEmail":{"type":"string","title":"Toemail"}},"type":"object","required":["success","toEmail"],"title":"IntegrationTestEmailResponse"},"IntegrationTestResult":{"properties":{"action":{"type":"string","title":"Action","default":"test_integration"},"integration":{"type":"string","title":"Integration"},"connected":{"type":"boolean","title":"Connected"},"testable":{"type":"boolean","title":"Testable"},"healthy":{"type":"boolean","title":"Healthy"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"appUrl":{"type":"string","title":"Appurl","default":"/integrations"}},"type":"object","required":["integration","connected","testable","healthy","status","message"],"title":"IntegrationTestResult"},"InvitationListResponse":{"properties":{"invitations":{"items":{"$ref":"#/components/schemas/InvitationSummaryResponse"},"type":"array","title":"Invitations"},"message":{"type":"string","title":"Message","default":"Invitations fetched successfully"}},"type":"object","title":"InvitationListResponse"},"InvitationRespondRequest":{"properties":{"action":{"type":"string","enum":["accept","decline"],"title":"Action"}},"type":"object","required":["action"],"title":"InvitationRespondRequest"},"InvitationRespondResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"workspace":{"anyOf":[{"$ref":"#/components/schemas/InvitationRespondWorkspaceResponse"},{"type":"null"}]},"workspaceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspaceid"}},"type":"object","required":["message"],"title":"InvitationRespondResponse"},"InvitationRespondWorkspaceResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"InvitationRespondWorkspaceResponse"},"InvitationSendRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"type":"string","enum":["workspace_admin","workspace_member"],"title":"Role","default":"workspace_member"}},"type":"object","required":["email"],"title":"InvitationSendRequest"},"InvitationSendResponse":{"properties":{"message":{"type":"string","title":"Message"},"details":{"additionalProperties":{"items":{"$ref":"#/components/schemas/InvitationSendResult"},"type":"array"},"type":"object","title":"Details"}},"type":"object","required":["message","details"],"title":"InvitationSendResponse"},"InvitationSendResult":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["email","status"],"title":"InvitationSendResult"},"InvitationSummaryResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"token":{"type":"string","title":"Token"},"role":{"type":"string","enum":["workspace_admin","workspace_member"],"title":"Role","default":"workspace_member"},"accepted":{"type":"boolean","title":"Accepted","default":false},"status":{"type":"string","title":"Status"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat"},"invitedBy":{"type":"string","title":"Invitedby"},"workspace":{"anyOf":[{"$ref":"#/components/schemas/AuthWorkspace"},{"type":"null"}]}},"type":"object","required":["id","email","token","status","createdAt","updatedAt","expiresAt","invitedBy"],"title":"InvitationSummaryResponse"},"InvitationValidateResponse":{"properties":{"workspace":{"$ref":"#/components/schemas/AuthWorkspace"},"email":{"type":"string","format":"email","title":"Email"},"token":{"type":"string","title":"Token"}},"type":"object","required":["workspace","email","token"],"title":"InvitationValidateResponse"},"KnowledgeBaseApiSourceRequest":{"properties":{"url":{"type":"string","title":"Url"},"method":{"type":"string","title":"Method","default":"GET"},"bearerToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bearertoken"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"body":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Body"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"autoSyncEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autosyncenabled"},"syncToPgvector":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Synctopgvector"}},"type":"object","required":["url"],"title":"KnowledgeBaseApiSourceRequest"},"KnowledgeBaseDeleteResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"KnowledgeBaseDeleteResponse"},"KnowledgeBaseDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"status":{"type":"string","title":"Status"},"last_ingested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Ingested At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"sources_count":{"type":"integer","title":"Sources Count","default":0},"sources":{"items":{"$ref":"#/components/schemas/KnowledgeBaseDetailSourceItem"},"type":"array","title":"Sources","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","workspace_id","workspace_name","status","created_at","updated_at"],"title":"KnowledgeBaseDetailResponse"},"KnowledgeBaseDetailSourceItem":{"properties":{"id":{"type":"string","title":"Id"},"source_type":{"type":"string","title":"Source Type"},"display_name":{"type":"string","title":"Display Name"},"canonical_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonical Url"},"storage_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Url"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"status":{"type":"string","title":"Status"},"chunk_count":{"type":"integer","title":"Chunk Count","default":0},"last_fetched_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Fetched At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","source_type","display_name","status","created_at"],"title":"KnowledgeBaseDetailSourceItem"},"KnowledgeBaseDocumentResponse":{"properties":{"id":{"type":"string","title":"Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"name":{"type":"string","title":"Name"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"uploadedAt":{"type":"string","format":"date-time","title":"Uploadedat"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id","name","uploadedAt"],"title":"KnowledgeBaseDocumentResponse"},"KnowledgeBaseDocumentUploadResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"id":{"type":"string","title":"Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"name":{"type":"string","title":"Name"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"uploadedAt":{"type":"string","format":"date-time","title":"Uploadedat"},"operation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Operation"}},"type":"object","required":["id","name","uploadedAt"],"title":"KnowledgeBaseDocumentUploadResponse"},"KnowledgeBaseEnvelopeResponse":{"properties":{"knowledgeBase":{"anyOf":[{"$ref":"#/components/schemas/KnowledgeBaseResponse"},{"type":"null"}]},"operation":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Operation"}},"type":"object","title":"KnowledgeBaseEnvelopeResponse"},"KnowledgeBaseExternalSourceRequest":{"properties":{"providerSlug":{"type":"string","title":"Providerslug"},"externalId":{"type":"string","title":"Externalid"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"canonicalUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonicalurl"},"externalType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Externaltype"},"autoSyncEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autosyncenabled"}},"type":"object","required":["providerSlug","externalId"],"title":"KnowledgeBaseExternalSourceRequest"},"KnowledgeBaseExternalSourcesBatchRequest":{"properties":{"sources":{"items":{"$ref":"#/components/schemas/KnowledgeBaseExternalSourceRequest"},"type":"array","title":"Sources"}},"type":"object","required":["sources"],"title":"KnowledgeBaseExternalSourcesBatchRequest"},"KnowledgeBaseListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"status":{"type":"string","title":"Status"},"last_ingested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Ingested At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"sources_count":{"type":"integer","title":"Sources Count","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","workspace_id","workspace_name","status","created_at","updated_at"],"title":"KnowledgeBaseListItem"},"KnowledgeBaseResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspaceId":{"type":"string","title":"Workspaceid"},"name":{"type":"string","title":"Name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"sourceCount":{"type":"integer","title":"Sourcecount","default":0},"files":{"items":{"$ref":"#/components/schemas/KnowledgeBaseDocumentResponse"},"type":"array","title":"Files"},"websites":{"items":{"$ref":"#/components/schemas/KnowledgeBaseWebsiteResponse"},"type":"array","title":"Websites"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","workspaceId","name","createdAt","updatedAt"],"title":"KnowledgeBaseResponse"},"KnowledgeBaseSearchDebugMatchResponse":{"properties":{"chunkId":{"type":"string","title":"Chunkid"},"sourceId":{"type":"string","title":"Sourceid"},"sourceName":{"type":"string","title":"Sourcename"},"sourceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourceurl"},"score":{"type":"number","title":"Score"},"content":{"type":"string","title":"Content"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["chunkId","sourceId","sourceName","score","content"],"title":"KnowledgeBaseSearchDebugMatchResponse"},"KnowledgeBaseSearchDebugResponse":{"properties":{"query":{"type":"string","title":"Query"},"count":{"type":"integer","title":"Count","default":0},"matches":{"items":{"$ref":"#/components/schemas/KnowledgeBaseSearchDebugMatchResponse"},"type":"array","title":"Matches"}},"type":"object","required":["query"],"title":"KnowledgeBaseSearchDebugResponse"},"KnowledgeBaseSourceResponse":{"properties":{"id":{"type":"string","title":"Id"},"knowledgeBaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledgebaseid"},"sourceType":{"type":"string","title":"Sourcetype"},"displayName":{"type":"string","title":"Displayname"},"canonicalUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Canonicalurl"},"providerSlug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Providerslug"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Externalid"},"previewUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previewurl"},"status":{"type":"string","title":"Status"},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lasterror"},"lastFetchedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastfetchedat"},"chunkCount":{"type":"integer","title":"Chunkcount","default":0},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","sourceType","displayName","status","createdAt","updatedAt"],"title":"KnowledgeBaseSourceResponse"},"KnowledgeBaseSourceUpdateRequest":{"properties":{"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"bearerToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bearertoken"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"body":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Body"},"autoSyncEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autosyncenabled"},"syncToPgvector":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Synctopgvector"}},"type":"object","title":"KnowledgeBaseSourceUpdateRequest"},"KnowledgeBaseSourcesResponse":{"properties":{"sources":{"items":{"$ref":"#/components/schemas/KnowledgeBaseSourceResponse"},"type":"array","title":"Sources"},"count":{"type":"integer","title":"Count","default":0}},"type":"object","title":"KnowledgeBaseSourcesResponse"},"KnowledgeBaseWebsiteResponse":{"properties":{"url":{"type":"string","title":"Url"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["url"],"title":"KnowledgeBaseWebsiteResponse"},"KnowledgeBaseWebsiteUpdateRequest":{"properties":{"url":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"}],"title":"Url"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"autoSyncEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autosyncenabled"}},"type":"object","required":["url"],"title":"KnowledgeBaseWebsiteUpdateRequest"},"KnowledgeUrlRequest":{"properties":{"urls":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Urls"}},"additionalProperties":false,"type":"object","required":["urls"],"title":"KnowledgeUrlRequest"},"LeadCountMapResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"}},"type":"object","title":"LeadCountMapResponse"},"LeadCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"phone":{"type":"string","maxLength":32,"minLength":4,"title":"Phone"},"description":{"type":"string","maxLength":1000,"minLength":1,"title":"Description"}},"additionalProperties":false,"type":"object","required":["name","email","phone","description"],"title":"LeadCreateRequest"},"LeadImportExecuteRequest":{"properties":{"agentId":{"type":"string","maxLength":191,"minLength":1,"title":"Agentid"},"useCaseId":{"anyOf":[{"type":"string","maxLength":191,"minLength":1},{"type":"null"}],"title":"Usecaseid"},"items":{"items":{"$ref":"#/components/schemas/LeadCreateRequest"},"type":"array","maxItems":200,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["agentId","items"],"title":"LeadImportExecuteRequest"},"LeadImportResponse":{"properties":{"imported":{"type":"integer","title":"Imported"},"errors":{"type":"integer","title":"Errors"},"error_details":{"items":{"type":"string"},"type":"array","title":"Error Details","default":[]}},"type":"object","required":["imported","errors"],"title":"LeadImportResponse"},"LeadListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"use_case_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Name"},"use_case_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Type"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"external_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Source"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"synced_to_sheet":{"type":"boolean","title":"Synced To Sheet","default":false},"captured_from_chat":{"type":"boolean","title":"Captured From Chat","default":false},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","workspace_id","workspace_name","created_at","updated_at"],"title":"LeadListItem"},"LeadListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadListItem"},"type":"array","title":"Items"},"pagination":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"integer"},{"type":"null"}]},"type":"object","title":"Pagination"}},"type":"object","required":["items","pagination"],"title":"LeadListResponse"},"LeadResponse":{"additionalProperties":true,"type":"object"},"LeadSearchItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"useCaseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasename"},"agentName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentname"},"appUrl":{"type":"string","title":"Appurl"}},"additionalProperties":false,"type":"object","required":["id","name","phone","email","status","useCaseName","agentName","appUrl"],"title":"LeadSearchItem"},"LeadSearchResult":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadSearchItem"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"additionalProperties":false,"type":"object","required":["items","count"],"title":"LeadSearchResult"},"LeadSummaryResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","required":["id","name"],"title":"LeadSummaryResponse"},"LeadUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","maxLength":254,"minLength":3},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":32,"minLength":4},{"type":"null"}],"title":"Phone"},"description":{"anyOf":[{"type":"string","maxLength":1000,"minLength":1},{"type":"null"}],"title":"Description"}},"additionalProperties":false,"type":"object","title":"LeadUpdateRequest"},"LeadVoiceSessionRequest":{"properties":{"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"provider":{"type":"string","const":"ultravox","title":"Provider","default":"ultravox"}},"type":"object","title":"LeadVoiceSessionRequest","description":"Request to create a WebRTC voice session for a lead."},"LeadVoiceSessionResponse":{"properties":{"join_url":{"type":"string","title":"Join Url"},"session_id":{"type":"string","title":"Session Id"},"call_id":{"type":"string","title":"Call Id"},"provider":{"type":"string","title":"Provider"},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Name"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"}},"type":"object","required":["join_url","session_id","call_id","provider"],"title":"LeadVoiceSessionResponse","description":"Response containing voice session details for a lead."},"ListSpecializationsRequest":{"properties":{"callId":{"type":"string","minLength":1,"title":"Callid"},"query":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Query"},"limit":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Limit","default":50}},"type":"object","required":["callId"],"title":"ListSpecializationsRequest"},"LlmCategoryUsage":{"properties":{"input_tokens":{"type":"integer","title":"Input Tokens","default":0},"output_tokens":{"type":"integer","title":"Output Tokens","default":0},"cost_usd":{"type":"number","title":"Cost Usd","default":0.0},"cost_inr":{"type":"number","title":"Cost Inr","default":0.0}},"type":"object","title":"LlmCategoryUsage"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"ManualEscalationRequest":{"properties":{"linkId":{"type":"string","title":"Linkid"}},"type":"object","required":["linkId"],"title":"ManualEscalationRequest"},"McpJobResponse":{"properties":{"handle":{"type":"string","title":"Handle"},"toolName":{"type":"string","title":"Toolname"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled","expired"],"title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"maxAttempts":{"type":"integer","title":"Maxattempts"},"cancellationRequested":{"type":"boolean","title":"Cancellationrequested"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errorcode"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat"}},"type":"object","required":["handle","toolName","status","attempts","maxAttempts","cancellationRequested","createdAt","updatedAt","expiresAt"],"title":"McpJobResponse"},"McpTokenRevocationResponse":{"properties":{"id":{"type":"string","title":"Id"},"jti_hash_prefix":{"type":"string","title":"Jti Hash Prefix"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"reason":{"type":"string","title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","jti_hash_prefix","expires_at","reason","created_at"],"title":"McpTokenRevocationResponse"},"MeetingList":{"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"additionalProperties":false,"type":"object","required":["items","count"],"title":"MeetingList"},"MessageCreateRequest":{"properties":{"content":{"type":"string","maxLength":8000,"title":"Content","default":""},"attachments":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":10,"title":"Attachments"},"pageContext":{"anyOf":[{"type":"string","maxLength":12000},{"type":"null"}],"title":"Pagecontext"}},"type":"object","title":"MessageCreateRequest"},"MessageResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"MessageResponse"},"MetricSummary":{"properties":{"totalCalls":{"type":"integer","title":"Totalcalls"},"connectedCalls":{"type":"integer","title":"Connectedcalls"},"conversations":{"type":"integer","title":"Conversations"},"successfulCalls":{"type":"integer","title":"Successfulcalls"},"failedCalls":{"type":"integer","title":"Failedcalls"},"totalDurationSeconds":{"type":"integer","title":"Totaldurationseconds"},"totalCostInr":{"type":"number","title":"Totalcostinr"},"connectionRate":{"type":"number","title":"Connectionrate"},"successRate":{"type":"number","title":"Successrate"}},"type":"object","required":["totalCalls","connectedCalls","conversations","successfulCalls","failedCalls","totalDurationSeconds","totalCostInr","connectionRate","successRate"],"title":"MetricSummary"},"NewCallRequest":{"properties":{"to_number":{"type":"string","title":"To Number"},"agent_task_information":{"type":"string","title":"Agent Task Information"},"custom_prompt":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"string"},{"type":"null"}],"title":"Custom Prompt"},"task_objectives":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Objectives"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"existing_information":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Existing Information"},"additional_info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Additional Info"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"agent_gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Gender"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"}},"type":"object","required":["to_number","agent_task_information"],"title":"NewCallRequest","description":"A request to start a new call."},"NotificationSettingsInput":{"properties":{"sendEodReports":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sendeodreports"},"eodReportFrequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eodreportfrequency"}},"type":"object","title":"NotificationSettingsInput"},"OperationResult":{"properties":{"action":{"type":"string","title":"Action"},"resourceId":{"type":"string","title":"Resourceid"},"status":{"type":"string","title":"Status"},"changed":{"type":"boolean","title":"Changed"},"message":{"type":"string","title":"Message"},"appUrl":{"type":"string","title":"Appurl"}},"additionalProperties":false,"type":"object","required":["action","resourceId","status","changed","message","appUrl"],"title":"OperationResult"},"OutboundCallBody":{"properties":{"to_number":{"type":"string","title":"To Number"},"from_number":{"type":"string","title":"From Number"},"system_prompt":{"type":"string","title":"System Prompt"},"call_provider":{"type":"string","title":"Call Provider","default":"gemini"},"language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Code"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id","default":"Kore"},"telephony_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephony Provider","default":"plivo"},"agent_talks_first":{"type":"boolean","title":"Agent Talks First","default":true},"custom_first_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom First Message"},"knowledge_base_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge Base Id"},"usecase_industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecase Industry"},"enable_deviation_tool":{"type":"boolean","title":"Enable Deviation Tool","default":false},"enable_manager_transfer":{"type":"boolean","title":"Enable Manager Transfer","default":false},"corpus_url":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Corpus Url"},"corpus_file_path":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Corpus File Path"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id","default":"default_workspace"},"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"scheduling_enabled":{"type":"boolean","title":"Scheduling Enabled","default":false},"outcaller_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcaller Call Id"}},"type":"object","required":["to_number","from_number","system_prompt"],"title":"OutboundCallBody"},"PersonaResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspaceId":{"type":"string","title":"Workspaceid"},"name":{"type":"string","title":"Name"},"phoneNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenumber"},"age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age"},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nationality"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone"},"personality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personality"},"background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background"},"traits":{"anyOf":[{},{"type":"null"}],"title":"Traits"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","workspaceId","name","createdAt","updatedAt"],"title":"PersonaResponse"},"PersonaWriteRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"phoneNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenumber"},"age":{"anyOf":[{"type":"integer","maximum":120.0,"minimum":1.0},{"type":"null"}],"title":"Age"},"nationality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nationality"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone"},"personality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personality"},"background":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background"},"traits":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Traits"}},"type":"object","required":["name"],"title":"PersonaWriteRequest"},"PhoneNumbersSettingsInput":{"properties":{"outboundNumbers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Outboundnumbers"},"inboundNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inboundnumber"}},"type":"object","title":"PhoneNumbersSettingsInput"},"PlanLimitItem":{"properties":{"id":{"type":"string","title":"Id"},"plan_type":{"type":"string","title":"Plan Type"},"calls_limit":{"type":"integer","title":"Calls Limit"},"workspaces_limit":{"type":"integer","title":"Workspaces Limit"},"knowledge_bases_limit":{"type":"integer","title":"Knowledge Bases Limit"},"knowledge_base_sources_limit":{"type":"integer","title":"Knowledge Base Sources Limit"},"ask_ai_messages_limit":{"type":"integer","title":"Ask Ai Messages Limit"},"ask_ai_tool_calls_limit":{"type":"integer","title":"Ask Ai Tool Calls Limit"},"ask_ai_conversations_limit":{"type":"integer","title":"Ask Ai Conversations Limit"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","plan_type","calls_limit","workspaces_limit","knowledge_bases_limit","knowledge_base_sources_limit","ask_ai_messages_limit","ask_ai_tool_calls_limit","ask_ai_conversations_limit","created_at","updated_at"],"title":"PlanLimitItem"},"PlanLimitListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PlanLimitItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"PlanLimitListResponse"},"PlanLimitUpdateRequest":{"properties":{"calls_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Calls Limit"},"workspaces_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Workspaces Limit"},"knowledge_bases_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Knowledge Bases Limit"},"knowledge_base_sources_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Knowledge Base Sources Limit"},"ask_ai_messages_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Ask Ai Messages Limit"},"ask_ai_tool_calls_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Ask Ai Tool Calls Limit"},"ask_ai_conversations_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Ask Ai Conversations Limit"}},"type":"object","title":"PlanLimitUpdateRequest"},"PrefectFlowRun":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"flow_name":{"type":"string","title":"Flow Name"},"deployment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Name"},"state_name":{"type":"string","title":"State Name"},"state_type":{"type":"string","title":"State Type"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"expected_start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Start Time"},"total_run_time":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Run Time"},"run_count":{"type":"integer","title":"Run Count","default":1},"deployment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Id"}},"type":"object","required":["id","name","flow_name","state_name","state_type"],"title":"PrefectFlowRun"},"PrefectRunsResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"prefect_api_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefect Api Url"},"prefect_ui_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefect Ui Url"},"runs":{"items":{"$ref":"#/components/schemas/PrefectFlowRun"},"type":"array","title":"Runs"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["connected"],"title":"PrefectRunsResponse"},"PrefectStatsResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"prefect_api_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefect Api Url"},"prefect_ui_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefect Ui Url"},"total_runs_24h":{"type":"integer","title":"Total Runs 24H","default":0},"running_count":{"type":"integer","title":"Running Count","default":0},"failed_count":{"type":"integer","title":"Failed Count","default":0},"success_rate":{"type":"number","title":"Success Rate","default":0.0},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["connected"],"title":"PrefectStatsResponse"},"PrepareRecordingUploadRequest":{"properties":{"fileName":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"mimeType":{"type":"string","maxLength":191,"minLength":1,"title":"Mimetype"},"sizeBytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Sizebytes"}},"additionalProperties":false,"type":"object","required":["fileName","mimeType","sizeBytes"],"title":"PrepareRecordingUploadRequest"},"PromptGenerationContext":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"useCaseGoals":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasegoals"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},"type":"object","title":"PromptGenerationContext"},"ProviderOperationItem":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"provider":{"type":"string","title":"Provider"},"operation_kind":{"type":"string","title":"Operation Kind"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"provider_correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Correlation Id"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"reconciliation_state":{"type":"string","title":"Reconciliation State"},"last_attempt_at":{"type":"string","format":"date-time","title":"Last Attempt At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","provider","operation_kind","status","attempts","provider_correlation_id","error_code","reconciliation_state","last_attempt_at","updated_at"],"title":"ProviderOperationItem"},"ProviderOperationList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProviderOperationItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ProviderOperationList"},"ProviderOperationResolution":{"properties":{"outcome":{"type":"string","enum":["succeeded","confirmed_not_sent","failed"],"title":"Outcome"},"evidence":{"type":"string","maxLength":1000,"minLength":12,"title":"Evidence"},"provider_correlation_id":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Provider Correlation Id"}},"type":"object","required":["outcome","evidence"],"title":"ProviderOperationResolution"},"PublicAgentPreviewRequest":{"properties":{"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"}},"additionalProperties":false,"type":"object","title":"PublicAgentPreviewRequest"},"PublicAgentQuality":{"properties":{"agentId":{"type":"string","title":"Agentid"},"agentName":{"type":"string","title":"Agentname"},"callCount":{"type":"integer","title":"Callcount"},"answeredCount":{"type":"integer","title":"Answeredcount"},"ratedCallCount":{"type":"integer","title":"Ratedcallcount"},"successRate":{"type":"number","title":"Successrate"},"connectionRate":{"type":"number","title":"Connectionrate"},"averageRating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Averagerating"},"qualityScore":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Qualityscore"}},"type":"object","required":["agentId","agentName","callCount","answeredCount","ratedCallCount","successRate","connectionRate"],"title":"PublicAgentQuality"},"PublicBlogListItem":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"slug":{"type":"string","title":"Slug"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"featured_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Featured Image Url"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"reading_time_minutes":{"type":"integer","title":"Reading Time Minutes","default":1}},"type":"object","required":["id","title","slug"],"title":"PublicBlogListItem"},"PublicBlogListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublicBlogListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"PublicBlogListResponse"},"PublicConversationDetail":{"properties":{"id":{"type":"string","title":"Id"},"leadName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leadname"},"agentName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentname"},"usecaseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasename"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"successful":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Successful"},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startedat"},"durationSeconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Durationseconds"},"appUrl":{"type":"string","title":"Appurl"},"leadPhone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leadphone"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"recordingUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recordingurl"},"feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feedback"},"rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rating"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["id","leadName","agentName","usecaseName","status","outcome","successful","startedAt","durationSeconds","appUrl","leadPhone","summary","transcript","recordingUrl","feedback","rating","docsUrl"],"title":"PublicConversationDetail"},"PublicConversationList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublicConversationSummary"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["items","count"],"title":"PublicConversationList"},"PublicConversationSummary":{"properties":{"id":{"type":"string","title":"Id"},"leadName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leadname"},"agentName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentname"},"usecaseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasename"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"successful":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Successful"},"startedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Startedat"},"durationSeconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Durationseconds"},"appUrl":{"type":"string","title":"Appurl"}},"type":"object","required":["id","leadName","agentName","usecaseName","status","outcome","successful","startedAt","durationSeconds","appUrl"],"title":"PublicConversationSummary"},"PublicEchoSessionList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublicEchoSessionSummary"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["items","count"],"title":"PublicEchoSessionList"},"PublicEchoSessionSummary":{"properties":{"id":{"type":"string","title":"Id"},"sessionId":{"type":"string","title":"Sessionid"},"status":{"type":"string","title":"Status"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"lastActivityAt":{"type":"string","format":"date-time","title":"Lastactivityat"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat"},"messageCount":{"type":"integer","title":"Messagecount"},"assistantMessageCount":{"type":"integer","title":"Assistantmessagecount"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"leadName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leadname"},"agentName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentname"},"useCaseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasename"},"appUrl":{"type":"string","title":"Appurl"}},"type":"object","required":["id","sessionId","status","createdAt","lastActivityAt","expiresAt","messageCount","assistantMessageCount","summary","leadName","agentName","useCaseName","appUrl"],"title":"PublicEchoSessionSummary"},"PublicIntegrationCatalog":{"properties":{"integrationsPage":{"type":"string","title":"Integrationspage"},"documentationUrl":{"type":"string","title":"Documentationurl"},"items":{"items":{"$ref":"#/components/schemas/PublicIntegrationCatalogItem"},"type":"array","title":"Items"}},"type":"object","required":["integrationsPage","documentationUrl","items"],"title":"PublicIntegrationCatalog"},"PublicIntegrationCatalogItem":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"category":{"type":"string","title":"Category"},"features":{"items":{"type":"string"},"type":"array","title":"Features"},"connected":{"type":"boolean","title":"Connected"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"connectedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connectedat"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["name","slug","category","features","connected","appUrl","docsUrl"],"title":"PublicIntegrationCatalogItem"},"PublicIntegrationHealth":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"connected":{"type":"boolean","title":"Connected"},"status":{"type":"string","title":"Status"},"healthy":{"type":"boolean","title":"Healthy"},"attentionRequired":{"type":"boolean","title":"Attentionrequired"},"attentionReasons":{"items":{"type":"string"},"type":"array","title":"Attentionreasons"},"connectedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connectedat"},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastsyncedat"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["name","slug","connected","status","healthy","attentionRequired","attentionReasons","appUrl","docsUrl"],"title":"PublicIntegrationHealth"},"PublicIntegrationSetupGuide":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"prerequisites":{"items":{"type":"string"},"type":"array","title":"Prerequisites"},"steps":{"items":{"type":"string"},"type":"array","title":"Steps"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["name","slug","prerequisites","steps","appUrl","docsUrl"],"title":"PublicIntegrationSetupGuide"},"PublicKnowledgeBaseDetail":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"readiness":{"type":"string","title":"Readiness"},"sourceCount":{"type":"integer","title":"Sourcecount"},"linkedUsecases":{"items":{"type":"string"},"type":"array","title":"Linkedusecases"},"lastIngestedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastingestedat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"},"sources":{"items":{"$ref":"#/components/schemas/PublicKnowledgeBaseSourceSummary"},"type":"array","title":"Sources"}},"type":"object","required":["id","name","status","readiness","sourceCount","linkedUsecases","updatedAt","appUrl","docsUrl","sources"],"title":"PublicKnowledgeBaseDetail"},"PublicKnowledgeBaseHealth":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"readiness":{"type":"string","title":"Readiness"},"statusCounts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Statuscounts"},"attentionRequired":{"type":"boolean","title":"Attentionrequired"},"attentionReasons":{"items":{"type":"string"},"type":"array","title":"Attentionreasons"},"lastIngestedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastingestedat"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["id","name","readiness","statusCounts","attentionRequired","attentionReasons","appUrl","docsUrl"],"title":"PublicKnowledgeBaseHealth"},"PublicKnowledgeBaseList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublicKnowledgeBaseSummary"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["items","count","appUrl","docsUrl"],"title":"PublicKnowledgeBaseList"},"PublicKnowledgeBaseSourceSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"status":{"type":"string","title":"Status"},"lastFetchedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastfetchedat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","name","type","status","updatedAt"],"title":"PublicKnowledgeBaseSourceSummary"},"PublicKnowledgeBaseSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"readiness":{"type":"string","title":"Readiness"},"sourceCount":{"type":"integer","title":"Sourcecount"},"linkedUsecases":{"items":{"type":"string"},"type":"array","title":"Linkedusecases"},"lastIngestedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastingestedat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["id","name","status","readiness","sourceCount","linkedUsecases","updatedAt","appUrl","docsUrl"],"title":"PublicKnowledgeBaseSummary"},"PublicSchedulingConfiguration":{"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["items","count","appUrl","docsUrl"],"title":"PublicSchedulingConfiguration"},"PublicUsageMeter":{"properties":{"used":{"type":"integer","title":"Used"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining"},"unlimited":{"type":"boolean","title":"Unlimited"}},"type":"object","required":["used","limit","remaining","unlimited"],"title":"PublicUsageMeter"},"PublicUseCaseAgent":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"gender":{"type":"string","title":"Gender"},"voices":{"items":{"type":"string"},"type":"array","title":"Voices"}},"type":"object","required":["id","name","gender","voices"],"title":"PublicUseCaseAgent"},"PublicUseCaseConfiguration":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"type":"string","title":"Type"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"status":{"type":"string","title":"Status"},"phoneNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenumber"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"goals":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goals"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"firstMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firstmessage"},"agents":{"items":{"$ref":"#/components/schemas/PublicUseCaseAgent"},"type":"array","title":"Agents"},"knowledgeBase":{"anyOf":[{"$ref":"#/components/schemas/PublicUseCaseKnowledge"},{"type":"null"}]},"integrations":{"items":{"type":"string"},"type":"array","title":"Integrations"},"taskTypes":{"items":{"type":"string"},"type":"array","title":"Tasktypes"},"schedule":{"$ref":"#/components/schemas/PublicUseCaseSchedule"},"callbackTasksEnabled":{"type":"boolean","title":"Callbacktasksenabled"},"managerTransferEnabled":{"type":"boolean","title":"Managertransferenabled"},"concurrency":{"type":"integer","title":"Concurrency"},"defaultLanguage":{"type":"string","title":"Defaultlanguage"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["id","name","description","type","industry","status","phoneNumber","instructions","goals","conclusion","firstMessage","agents","knowledgeBase","integrations","taskTypes","schedule","callbackTasksEnabled","managerTransferEnabled","concurrency","defaultLanguage","appUrl","docsUrl"],"title":"PublicUseCaseConfiguration"},"PublicUseCaseKnowledge":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","name","status"],"title":"PublicUseCaseKnowledge"},"PublicUseCaseSchedule":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"startTime":{"type":"string","title":"Starttime"},"endTime":{"type":"string","title":"Endtime"},"callsPerWeek":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Callsperweek"},"maxAttempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxattempts"},"retryDelayHours":{"type":"integer","title":"Retrydelayhours"},"retryAttempts":{"type":"integer","title":"Retryattempts"}},"type":"object","required":["enabled","startTime","endTime","callsPerWeek","maxAttempts","retryDelayHours","retryAttempts"],"title":"PublicUseCaseSchedule"},"PublicWebhookConfiguration":{"properties":{"configured":{"type":"boolean","title":"Configured"},"destinationHost":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destinationhost"},"headerNames":{"items":{"type":"string"},"type":"array","title":"Headernames"},"appUrl":{"type":"string","title":"Appurl","default":"/settings"},"docsUrl":{"type":"string","title":"Docsurl","default":"/docs/integrations/webhooks"}},"type":"object","required":["configured"],"title":"PublicWebhookConfiguration"},"PublicWebhookDeleteResult":{"properties":{"deleted":{"type":"boolean","title":"Deleted"},"message":{"type":"string","title":"Message"},"appUrl":{"type":"string","title":"Appurl","default":"/settings"}},"type":"object","required":["deleted","message"],"title":"PublicWebhookDeleteResult"},"PublicWebhookList":{"properties":{"webhooks":{"items":{"$ref":"#/components/schemas/PublicWebhookConfiguration"},"type":"array","title":"Webhooks"}},"type":"object","title":"PublicWebhookList"},"PublicWebhookTestResult":{"properties":{"action":{"type":"string","title":"Action","default":"test_webhook"},"delivered":{"type":"boolean","title":"Delivered"},"message":{"type":"string","title":"Message"},"appUrl":{"type":"string","title":"Appurl","default":"/settings"}},"type":"object","required":["delivered","message"],"title":"PublicWebhookTestResult"},"PublicWebhookUpdateRequest":{"properties":{"webhookUrl":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Webhookurl"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object","maxProperties":30},{"type":"null"}],"title":"Headers"}},"additionalProperties":false,"type":"object","title":"PublicWebhookUpdateRequest"},"PublicWorkspaceEntitlement":{"properties":{"feature":{"type":"string","title":"Feature"},"enabled":{"type":"boolean","title":"Enabled"},"active":{"type":"boolean","title":"Active"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiresat"}},"type":"object","required":["feature","enabled","active"],"title":"PublicWorkspaceEntitlement"},"PublicWorkspaceEntitlements":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PublicWorkspaceEntitlement"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["items","count","appUrl","docsUrl"],"title":"PublicWorkspaceEntitlements"},"PublicWorkspaceMember":{"properties":{"id":{"type":"string","title":"Id"},"userId":{"type":"string","title":"Userid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"type":"string","title":"Role"},"joinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Joinedat"}},"type":"object","required":["id","userId","role"],"title":"PublicWorkspaceMember"},"PublicWorkspaceMembers":{"properties":{"members":{"items":{"$ref":"#/components/schemas/PublicWorkspaceMember"},"type":"array","title":"Members"},"count":{"type":"integer","title":"Count"},"appUrl":{"type":"string","title":"Appurl"}},"type":"object","required":["members","count","appUrl"],"title":"PublicWorkspaceMembers"},"PublicWorkspaceOverview":{"properties":{"workspaceName":{"type":"string","title":"Workspacename"},"usecaseCount":{"type":"integer","title":"Usecasecount"},"agentCount":{"type":"integer","title":"Agentcount"},"leadCount":{"type":"integer","title":"Leadcount"},"callCount":{"type":"integer","title":"Callcount"},"connectedIntegrationCount":{"type":"integer","title":"Connectedintegrationcount"},"knowledgeBaseCount":{"type":"integer","title":"Knowledgebasecount"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["workspaceName","usecaseCount","agentCount","leadCount","callCount","connectedIntegrationCount","knowledgeBaseCount","warnings","appUrl","docsUrl"],"title":"PublicWorkspaceOverview"},"PublicWorkspaceUsage":{"properties":{"plan":{"type":"string","title":"Plan"},"calls":{"$ref":"#/components/schemas/PublicUsageMeter"},"whatsapp":{"$ref":"#/components/schemas/PublicUsageMeter"},"echo":{"$ref":"#/components/schemas/PublicUsageMeter"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"}},"type":"object","required":["plan","calls","whatsapp","echo","appUrl","docsUrl"],"title":"PublicWorkspaceUsage"},"QueueHealthItem":{"properties":{"name":{"type":"string","title":"Name"},"depth":{"type":"integer","title":"Depth"},"status":{"type":"string","title":"Status"}},"type":"object","required":["name","depth","status"],"title":"QueueHealthItem"},"QueueSettingsInput":{"properties":{"batchSize":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Batchsize"},"batchDelaySeconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Batchdelayseconds"}},"type":"object","title":"QueueSettingsInput"},"RecentCallSummary":{"properties":{"id":{"type":"string","title":"Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"to_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Number"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"use_case_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Name"}},"type":"object","required":["id","status","to_number","duration_seconds","created_at"],"title":"RecentCallSummary"},"RecentErrorEvent":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"entity_type":{"type":"string","title":"Entity Type"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Id"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"severity":{"type":"string","title":"Severity"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","event_type","entity_type","entity_id","workspace_id","severity","metadata","created_at"],"title":"RecentErrorEvent"},"RecentFailedCallItem":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"to_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Number"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"}},"type":"object","required":["id","workspace_id","workspace_name","to_number","status","occurred_at"],"title":"RecentFailedCallItem"},"RecentFailedConversationItem":{"properties":{"id":{"type":"string","title":"Id"},"session_id":{"type":"string","title":"Session Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"status":{"type":"string","title":"Status"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"}},"type":"object","required":["id","session_id","workspace_id","workspace_name","status","occurred_at"],"title":"RecentFailedConversationItem"},"RecentIncident":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"type":"string","title":"Resource Id"},"severity":{"type":"string","title":"Severity"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"}},"type":"object","required":["id","title","resource_type","resource_id","severity","occurred_at"],"title":"RecentIncident"},"RecordingDownloadResponse":{"properties":{"call_id":{"type":"string","title":"Call Id"},"recording_url":{"type":"string","title":"Recording Url"}},"type":"object","required":["call_id","recording_url"],"title":"RecordingDownloadResponse"},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"name":{"type":"string","title":"Name"},"invitationToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invitationtoken"}},"type":"object","required":["email","password","name"],"title":"RegisterRequest"},"ReorderMediaRequest":{"properties":{"media_ids":{"items":{"type":"string"},"type":"array","title":"Media Ids"}},"type":"object","title":"ReorderMediaRequest"},"RescheduleMeetingRequest":{"properties":{"startTime":{"type":"string","title":"Starttime"}},"additionalProperties":false,"type":"object","required":["startTime"],"title":"RescheduleMeetingRequest"},"ResendOtpRequest":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"}},"type":"object","title":"ResendOtpRequest"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","title":"Password"}},"type":"object","required":["token","password"],"title":"ResetPasswordRequest"},"ResetUsageRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"type":"object","required":["reason"],"title":"ResetUsageRequest"},"ResetUsageResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"reset":{"type":"boolean","title":"Reset"}},"type":"object","required":["id","name","reset"],"title":"ResetUsageResponse"},"RetryHistoryEntry":{"properties":{"attempt":{"type":"integer","title":"Attempt"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"status":{"type":"string","title":"Status"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["attempt","timestamp","status","detail"],"title":"RetryHistoryEntry"},"RevokeMcpTokenRequest":{"properties":{"jti":{"type":"string","maxLength":255,"minLength":1,"title":"Jti"},"reason":{"type":"string","maxLength":1000,"minLength":12,"title":"Reason"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["jti","reason","expires_at"],"title":"RevokeMcpTokenRequest"},"SalesforceSyncNewRequest":{"properties":{"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":50},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"campaignId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaignid"}},"type":"object","title":"SalesforceSyncNewRequest"},"SalesforceWebhookPayload":{"properties":{"operation":{"type":"string","title":"Operation"},"module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module"},"ids":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Ids"}},"type":"object","required":["operation"],"title":"SalesforceWebhookPayload"},"ScenarioGenerationContext":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"openingLine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openingline"},"expectedOutcomes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expectedoutcomes"},"successCriteria":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Successcriteria"}},"type":"object","title":"ScenarioGenerationContext"},"ScenarioGenerationRequest":{"properties":{"description":{"type":"string","maxLength":8000,"minLength":1,"title":"Description"},"sessionId":{"type":"string","maxLength":128,"minLength":1,"title":"Sessionid"},"context":{"anyOf":[{"$ref":"#/components/schemas/ScenarioGenerationContext"},{"type":"null"}]}},"type":"object","required":["description","sessionId"],"title":"ScenarioGenerationRequest"},"ScenarioGenerationResponse":{"properties":{"context":{"type":"string","title":"Context","default":""},"openingLine":{"type":"string","title":"Openingline","default":""},"expectedOutcomes":{"type":"string","title":"Expectedoutcomes","default":""},"successCriteria":{"items":{"type":"string"},"type":"array","title":"Successcriteria"},"scenarioAiGenerationsUsed":{"type":"integer","title":"Scenarioaigenerationsused"},"generationsRemaining":{"type":"integer","title":"Generationsremaining"}},"type":"object","required":["scenarioAiGenerationsUsed","generationsRemaining"],"title":"ScenarioGenerationResponse"},"ScenarioResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspaceId":{"type":"string","title":"Workspaceid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"openingLine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openingline"},"expectedOutcomes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expectedoutcomes"},"successCriteria":{"anyOf":[{},{"type":"null"}],"title":"Successcriteria"},"autoCutSeconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Autocutseconds"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","workspaceId","name","createdAt","updatedAt"],"title":"ScenarioResponse"},"ScenarioWriteRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"openingLine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openingline"},"expectedOutcomes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expectedoutcomes"},"successCriteria":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Successcriteria"},"autoCutSeconds":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":1.0},{"type":"null"}],"title":"Autocutseconds"}},"type":"object","required":["name"],"title":"ScenarioWriteRequest"},"ScheduleRequest":{"properties":{"type":{"type":"string","enum":["executive","campaign","agent_performance","conversation","lead","cost_roi","knowledge_base","compliance","summarizer_brief"],"title":"Type"},"format":{"type":"string","enum":["pdf","xlsx","csv","docx","png"],"title":"Format"},"name":{"type":"string","title":"Name"},"frequency":{"type":"string","enum":["daily","weekly","monthly"],"title":"Frequency"},"hourIst":{"type":"integer","maximum":23.0,"minimum":0.0,"title":"Hourist","default":9},"dayOfWeek":{"anyOf":[{"type":"integer","maximum":6.0,"minimum":0.0},{"type":"null"}],"title":"Dayofweek"},"dayOfMonth":{"anyOf":[{"type":"integer","maximum":28.0,"minimum":1.0},{"type":"null"}],"title":"Dayofmonth"},"recipients":{"items":{"type":"string"},"type":"array","title":"Recipients"},"startDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["type","format","name","frequency"],"title":"ScheduleRequest"},"ScheduleSettingsInput":{"properties":{"scheduleEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Scheduleenabled"},"scheduledCallingAgentIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scheduledcallingagentids"},"callbackTasksEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Callbacktasksenabled"},"scheduledCallRetryDelayEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Scheduledcallretrydelayenabled"},"scheduledCallRetryDelayHours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scheduledcallretrydelayhours"},"scheduledCallMaxRetryAttempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scheduledcallmaxretryattempts"},"startTime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Starttime"},"endTime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endtime"}},"type":"object","title":"ScheduleSettingsInput"},"ScheduleUpdateRequest":{"properties":{"isActive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isactive"},"recipients":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Recipients"},"hourIst":{"anyOf":[{"type":"integer","maximum":23.0,"minimum":0.0},{"type":"null"}],"title":"Hourist"},"dayOfWeek":{"anyOf":[{"type":"integer","maximum":6.0,"minimum":0.0},{"type":"null"}],"title":"Dayofweek"},"dayOfMonth":{"anyOf":[{"type":"integer","maximum":28.0,"minimum":1.0},{"type":"null"}],"title":"Dayofmonth"},"startDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startdate"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enddate"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"campaignId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaignid"}},"type":"object","title":"ScheduleUpdateRequest"},"ScriptSuggestionResponse":{"properties":{"suggestedPrompt":{"type":"string","title":"Suggestedprompt"},"useCaseId":{"type":"string","title":"Usecaseid"},"useCaseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasename"}},"type":"object","required":["suggestedPrompt","useCaseId"],"title":"ScriptSuggestionResponse"},"SearchDoctorsRequest":{"properties":{"callId":{"type":"string","minLength":1,"title":"Callid"},"doctorName":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Doctorname"},"doctorCode":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Doctorcode"},"specializationCode":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Specializationcode"},"gender":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Gender"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":10}},"type":"object","required":["callId"],"title":"SearchDoctorsRequest"},"SelfSuspendRequest":{"properties":{"reason":{"type":"string","title":"Reason","description":"Optional reason for self-suspension","default":""}},"type":"object","title":"SelfSuspendRequest"},"ServiceHealthItem":{"properties":{"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"response_time_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Response Time Ms"},"last_checked":{"type":"string","format":"date-time","title":"Last Checked"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["name","status","last_checked"],"title":"ServiceHealthItem"},"StartEvaluationRunRequest":{"properties":{"useCaseId":{"type":"string","title":"Usecaseid"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"},"personaIds":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Personaids"},"scenarioIds":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Scenarioids"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["useCaseId","personaIds","scenarioIds"],"title":"StartEvaluationRunRequest"},"SummarizerBriefDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspaceId":{"type":"string","title":"Workspaceid"},"createdById":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdbyid"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"taskObjectives":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taskobjectives"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"language":{"type":"string","title":"Language","default":"detect"},"recordingCount":{"type":"integer","title":"Recordingcount","default":0},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"recordings":{"items":{"$ref":"#/components/schemas/SummarizerRecordingSummary"},"type":"array","title":"Recordings"}},"type":"object","required":["id","workspaceId","name","createdAt","updatedAt"],"title":"SummarizerBriefDetailResponse"},"SummarizerBriefEnvelopeResponse":{"properties":{"brief":{"$ref":"#/components/schemas/SummarizerBriefResponse"}},"type":"object","required":["brief"],"title":"SummarizerBriefEnvelopeResponse"},"SummarizerBriefListResponse":{"properties":{"briefs":{"items":{"$ref":"#/components/schemas/SummarizerBriefResponse"},"type":"array","title":"Briefs"},"count":{"type":"integer","title":"Count","default":0},"page":{"type":"integer","title":"Page","default":1},"pageSize":{"type":"integer","title":"Pagesize","default":50}},"type":"object","title":"SummarizerBriefListResponse"},"SummarizerBriefResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspaceId":{"type":"string","title":"Workspaceid"},"createdById":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdbyid"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"taskObjectives":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taskobjectives"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"language":{"type":"string","title":"Language","default":"detect"},"recordingCount":{"type":"integer","title":"Recordingcount","default":0},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","workspaceId","name","createdAt","updatedAt"],"title":"SummarizerBriefResponse"},"SummarizerBriefWriteRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"industry":{"anyOf":[{"type":"string","enum":["REAL_ESTATE","HOSPITAL","LOGISTICS","PHARMACY","SCHOOL","OTHERS"]},{"type":"null"}],"title":"Industry"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"taskObjectives":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taskobjectives"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"language":{"type":"string","maxLength":8,"minLength":2,"title":"Language","default":"detect"}},"type":"object","required":["name"],"title":"SummarizerBriefWriteRequest"},"SummarizerGenerateSummaryRequest":{"properties":{"recordingIds":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Recordingids"}},"additionalProperties":false,"type":"object","required":["recordingIds"],"title":"SummarizerGenerateSummaryRequest"},"SummarizerGenerateSummaryResponse":{"properties":{"action":{"type":"string","title":"Action","default":"generate_summary"},"briefId":{"type":"string","title":"Briefid"},"requested":{"type":"integer","title":"Requested"},"scheduled":{"type":"integer","title":"Scheduled"},"recordings":{"items":{"$ref":"#/components/schemas/SummarizerRecordingResponse"},"type":"array","title":"Recordings"}},"type":"object","required":["briefId","requested","scheduled"],"title":"SummarizerGenerateSummaryResponse"},"SummarizerRecordingListResponse":{"properties":{"recordings":{"items":{"$ref":"#/components/schemas/SummarizerRecordingResponse"},"type":"array","title":"Recordings"},"count":{"type":"integer","title":"Count","default":0},"page":{"type":"integer","title":"Page","default":1},"pageSize":{"type":"integer","title":"Pagesize","default":50}},"type":"object","title":"SummarizerRecordingListResponse"},"SummarizerRecordingResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspaceId":{"type":"string","title":"Workspaceid"},"briefId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Briefid"},"uploadedById":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploadedbyid"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"originalFileName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Originalfilename"},"hasRecording":{"type":"boolean","title":"Hasrecording","default":false},"transcription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcription"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"callRating":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Callrating"},"callFeedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callfeedback"},"isSuccessful":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Issuccessful"},"status":{"type":"string","title":"Status"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"},"taskObjectives":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Taskobjectives"},"conclusionContext":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusioncontext"},"agentTaskInformation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agenttaskinformation"},"durationSeconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Durationseconds"},"transcriptionProvider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcriptionprovider"},"summaryProvider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summaryprovider"},"metaData":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","workspaceId","status","createdAt","updatedAt"],"title":"SummarizerRecordingResponse"},"SummarizerRecordingSummary":{"properties":{"id":{"type":"string","title":"Id"},"briefId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Briefid"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"originalFileName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Originalfilename"},"status":{"type":"string","title":"Status"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"callRating":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Callrating"},"isSuccessful":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Issuccessful"},"durationSeconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Durationseconds"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","status","createdAt","updatedAt"],"title":"SummarizerRecordingSummary"},"SummarizerRecordingUploadResponse":{"properties":{"recording":{"$ref":"#/components/schemas/SummarizerRecordingResponse"}},"type":"object","required":["recording"],"title":"SummarizerRecordingUploadResponse"},"SuspendUserRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"SuspendUserRequest"},"SuspendUserResponse":{"properties":{"id":{"type":"string","title":"Id"},"suspended":{"type":"boolean","title":"Suspended"},"suspended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Suspended At"}},"type":"object","required":["id","suspended","suspended_at"],"title":"SuspendUserResponse"},"SuspendWorkspaceRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"type":"object","required":["reason"],"title":"SuspendWorkspaceRequest"},"SyncNewRequest":{"properties":{"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":50},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"campaignId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaignid"}},"type":"object","title":"SyncNewRequest"},"SyncRequest":{"properties":{"workspace_id":{"anyOf":[{"type":"string"},{"type":"integer"}],"title":"Workspace Id"},"sync_doctors":{"type":"boolean","title":"Sync Doctors","default":true},"sync_departments":{"type":"boolean","title":"Sync Departments","default":true},"sync_specialities":{"type":"boolean","title":"Sync Specialities","default":true},"sync_locations":{"type":"boolean","title":"Sync Locations","default":true},"force_update":{"type":"boolean","title":"Force Update","default":false}},"type":"object","required":["workspace_id"],"title":"SyncRequest"},"SystemCounters":{"properties":{"total_users":{"type":"integer","title":"Total Users"},"total_workspaces":{"type":"integer","title":"Total Workspaces"},"total_admin_users":{"type":"integer","title":"Total Admin Users"},"active_admin_sessions":{"type":"integer","title":"Active Admin Sessions"},"total_calls":{"type":"integer","title":"Total Calls"},"active_calls":{"type":"integer","title":"Active Calls"},"calls_today":{"type":"integer","title":"Calls Today"},"error_events_1h":{"type":"integer","title":"Error Events 1H"},"warning_events_1h":{"type":"integer","title":"Warning Events 1H"}},"type":"object","required":["total_users","total_workspaces","total_admin_users","active_admin_sessions","total_calls","active_calls","calls_today","error_events_1h","warning_events_1h"],"title":"SystemCounters"},"SystemHealthResponse":{"properties":{"db":{"$ref":"#/components/schemas/DbStatus"},"counters":{"$ref":"#/components/schemas/SystemCounters"},"queue_health":{"items":{"$ref":"#/components/schemas/QueueHealthItem"},"type":"array","title":"Queue Health"},"recent_errors":{"items":{"$ref":"#/components/schemas/RecentErrorEvent"},"type":"array","title":"Recent Errors"},"computed_at":{"type":"string","format":"date-time","title":"Computed At"}},"type":"object","required":["db","counters","queue_health","recent_errors","computed_at"],"title":"SystemHealthResponse"},"SystemStatusResponse":{"properties":{"overall":{"type":"string","title":"Overall"},"services":{"items":{"$ref":"#/components/schemas/ServiceHealthItem"},"type":"array","title":"Services"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"}},"type":"object","required":["overall","services","checked_at"],"title":"SystemStatusResponse"},"TabularPreview":{"properties":{"uploadId":{"type":"string","title":"Uploadid"},"sheet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sheet"},"sheets":{"items":{"type":"string"},"type":"array","title":"Sheets"},"columns":{"items":{"type":"string"},"type":"array","title":"Columns"},"rows":{"items":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":"object"},"type":"array","title":"Rows"},"rowCount":{"type":"integer","title":"Rowcount"},"truncated":{"type":"boolean","title":"Truncated"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"provenance":{"additionalProperties":true,"type":"object","title":"Provenance"}},"additionalProperties":false,"type":"object","required":["uploadId","sheet","sheets","columns","rows","rowCount","truncated","warnings","provenance"],"title":"TabularPreview"},"TaskItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"taskType":{"type":"string","title":"Tasktype"},"status":{"type":"string","title":"Status"},"dueAt":{"type":"string","format":"date-time","title":"Dueat"},"integrations":{"items":{"type":"string"},"type":"array","title":"Integrations"},"useCaseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasename"},"leadName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leadname"},"appUrl":{"type":"string","title":"Appurl"}},"additionalProperties":false,"type":"object","required":["id","name","description","taskType","status","dueAt","integrations","useCaseName","leadName","appUrl"],"title":"TaskItem"},"TaskList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TaskItem"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"additionalProperties":false,"type":"object","required":["items","count"],"title":"TaskList"},"TemplateButtonPayload":{"properties":{"type":{"type":"string","enum":["QUICK_REPLY","URL","PHONE_NUMBER"],"title":"Type"},"text":{"type":"string","maxLength":25,"minLength":1,"title":"Text"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"phoneNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenumber"}},"type":"object","required":["type","text"],"title":"TemplateButtonPayload"},"TokenCreateRequest":{"properties":{},"type":"object","title":"TokenCreateRequest"},"TokenCreateResponse":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","key","created_at"],"title":"TokenCreateResponse"},"TokenSummaryResponse":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","key","created_at"],"title":"TokenSummaryResponse"},"TranscriptPushRequest":{"properties":{"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"turns":{"items":{"$ref":"#/components/schemas/TranscriptTurn"},"type":"array","title":"Turns"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"ended_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ended At"}},"type":"object","title":"TranscriptPushRequest"},"TranscriptTurn":{"properties":{"role":{"type":"string","title":"Role"},"text":{"type":"string","title":"Text"}},"type":"object","required":["role","text"],"title":"TranscriptTurn"},"TransferOwnershipRequest":{"properties":{"new_owner_user_id":{"type":"string","title":"New Owner User Id"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["new_owner_user_id"],"title":"TransferOwnershipRequest"},"TransferOwnershipResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"new_owner_id":{"type":"string","title":"New Owner Id"},"new_owner_email":{"type":"string","title":"New Owner Email"},"new_owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Owner Name"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","new_owner_id","new_owner_email","updated_at"],"title":"TransferOwnershipResponse"},"TransferSettingsInput":{"properties":{"enableHumanTransfer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enablehumantransfer"},"enableDeviationTool":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabledeviationtool"}},"type":"object","title":"TransferSettingsInput"},"UnhealthyWorkspaceItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"failed_calls_24h":{"type":"integer","title":"Failed Calls 24H"},"failed_integrations":{"type":"integer","title":"Failed Integrations"}},"type":"object","required":["id","name","failed_calls_24h","failed_integrations"],"title":"UnhealthyWorkspaceItem"},"UnifiedConversationItem":{"properties":{"id":{"type":"string","title":"Id"},"channel":{"type":"string","enum":["echo","call"],"title":"Channel"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"contact_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Identifier"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"has_recording":{"type":"boolean","title":"Has Recording","default":false},"has_transcript":{"type":"boolean","title":"Has Transcript","default":false},"has_lead_capture":{"type":"boolean","title":"Has Lead Capture","default":false},"started_at":{"type":"string","format":"date-time","title":"Started At"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"}},"type":"object","required":["id","channel","workspace_id","workspace_name","started_at","last_activity_at"],"title":"UnifiedConversationItem"},"UnifiedConversationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UnifiedConversationItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["items"],"title":"UnifiedConversationListResponse"},"UnsubscribeRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"UnsubscribeRequest"},"UnsubscribeResponse":{"properties":{"unsubscribed":{"type":"boolean","title":"Unsubscribed"}},"type":"object","required":["unsubscribed"],"title":"UnsubscribeResponse"},"UnsuspendWorkspaceRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","title":"UnsuspendWorkspaceRequest"},"UpdateAdminUserRequest":{"properties":{"role":{"anyOf":[{"$ref":"#/components/schemas/AdminRole"},{"type":"null"}]},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"}},"type":"object","required":["reason"],"title":"UpdateAdminUserRequest"},"UpdateAgentRequest":{"properties":{"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"voice_id":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Voice Id"},"voice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Url"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature"},"agent_talks_first":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Agent Talks First"},"interruptable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Interruptable"},"vad_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vad Enabled"},"minimum_turn_duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimum Turn Duration"},"turn_endpoint_delay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turn Endpoint Delay"},"minimum_interruption_duration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimum Interruption Duration"}},"type":"object","title":"UpdateAgentRequest"},"UpdateBlogPostRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Title"},"excerpt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Excerpt"},"content_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Html"},"featured_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Featured Image Url"},"publish_mode":{"anyOf":[{"$ref":"#/components/schemas/BlogPublishMode"},{"type":"null"}]},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"},"manual_tags":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manual Tags"}},"type":"object","title":"UpdateBlogPostRequest"},"UpdateLeadRequest":{"properties":{"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Phone"},"description":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Description"},"custom_fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom Fields"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"external_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Source"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"}},"type":"object","title":"UpdateLeadRequest"},"UpdateProfileRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"UpdateProfileRequest"},"UpdateProfileResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"}},"type":"object","required":["id","email"],"title":"UpdateProfileResponse"},"UpdateUsageRequest":{"properties":{"period_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period End"},"total_call_usage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Call Usage"},"total_whatsapp_usage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Whatsapp Usage"},"total_call_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Call Cost"},"total_whatsapp_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Whatsapp Cost"},"total_elevenlabs_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Elevenlabs Cost"},"total_elevenlabs_usage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Elevenlabs Usage"},"total_echo_input_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Echo Input Tokens"},"total_echo_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Echo Output Tokens"},"total_echo_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Echo Cost"},"total_cost":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Cost"}},"type":"object","title":"UpdateUsageRequest"},"UpdateUseCaseRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"anyOf":[{"type":"string","enum":["OUTBOUND","INBOUND","ONE_WAY"]},{"type":"null"}],"title":"Type"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"use_case_goals":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Goals"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"max_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Attempts"},"escalation_window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Escalation Window Days"},"calls_per_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Calls Per Week"},"escalation_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Escalation Enabled"},"enable_manager_transfer":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Manager Transfer"},"schedule_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Schedule Enabled"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"scheduled_call_retry_delay_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scheduled Call Retry Delay Hours"},"scheduled_call_max_retry_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scheduled Call Max Retry Attempts"},"concurrency":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Concurrency"},"integrations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Integrations"},"task_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Task Types"},"escalation_use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Use Case Id"}},"type":"object","title":"UpdateUseCaseRequest"},"UpdateUserRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"admin_role":{"anyOf":[{"type":"string","pattern":"^(SUPER_ADMIN|SUPPORT_ADMIN|OPS_ADMIN|AUDIT_VIEWER)$|^$"},{"type":"null"}],"title":"Admin Role"}},"type":"object","title":"UpdateUserRequest"},"UpdateWebhookRequest":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"integration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration Id"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved At"},"next_retry_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Retry At"},"last_attempt_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Attempt At"},"attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attempts"}},"type":"object","title":"UpdateWebhookRequest"},"UpdateWhatsAppTemplatePayload":{"properties":{"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language","default":"en_US"},"category":{"type":"string","title":"Category","default":"UTILITY"},"bodyText":{"type":"string","minLength":1,"title":"Bodytext"},"headerFormat":{"anyOf":[{"type":"string","enum":["NONE","TEXT","IMAGE","VIDEO","DOCUMENT","LOCATION","GIF"]},{"type":"null"}],"title":"Headerformat","default":"NONE"},"headerText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headertext"},"headerHandle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headerhandle"},"footerText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footertext"},"buttons":{"items":{"$ref":"#/components/schemas/TemplateButtonPayload"},"type":"array","title":"Buttons"}},"type":"object","required":["name","bodyText"],"title":"UpdateWhatsAppTemplatePayload"},"UpdateWorkspaceMaxUsageRequest":{"properties":{"custom_max_usage":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Custom Max Usage"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["custom_max_usage"],"title":"UpdateWorkspaceMaxUsageRequest"},"UpdateWorkspaceMaxUsageResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"custom_max_usage":{"type":"integer","title":"Custom Max Usage"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","custom_max_usage","updated_at"],"title":"UpdateWorkspaceMaxUsageResponse"},"UpdateWorkspacePlanRequest":{"properties":{"plan":{"type":"string","pattern":"^(free|business|enterprise)$","title":"Plan"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","required":["plan"],"title":"UpdateWorkspacePlanRequest"},"UpdateWorkspacePlanResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"plan":{"type":"string","title":"Plan"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","plan","updated_at"],"title":"UpdateWorkspacePlanResponse"},"UpdateWorkspaceRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":2},{"type":"null"}],"title":"Name"},"telephony_provider":{"anyOf":[{"type":"string","pattern":"^(plivo|telnyx|twilio)$|^$"},{"type":"null"}],"title":"Telephony Provider"},"call_provider":{"anyOf":[{"type":"string","pattern":"^(ultravox|gemini|elevenlabs|selfhost)$|^$"},{"type":"null"}],"title":"Call Provider"},"summary_provider":{"anyOf":[{"type":"string","pattern":"^(cloud|selfhost)$|^$"},{"type":"null"}],"title":"Summary Provider"},"is_primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Primary"}},"type":"object","title":"UpdateWorkspaceRequest"},"UpdateWorkspaceResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"telephony_provider":{"type":"string","title":"Telephony Provider"},"call_provider":{"type":"string","title":"Call Provider"},"summary_provider":{"type":"string","title":"Summary Provider"},"is_primary":{"type":"boolean","title":"Is Primary"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","telephony_provider","call_provider","summary_provider","is_primary","updated_at"],"title":"UpdateWorkspaceResponse"},"UpdateWorkspaceRoleRequest":{"properties":{"role":{"type":"string","enum":["workspace_admin","workspace_member"],"title":"Role"}},"type":"object","required":["role"],"title":"UpdateWorkspaceRoleRequest"},"UploadHandle":{"properties":{"id":{"type":"string","title":"Id"},"fileName":{"type":"string","title":"Filename"},"mimeType":{"type":"string","title":"Mimetype"},"sizeBytes":{"type":"integer","title":"Sizebytes"},"purpose":{"type":"string","title":"Purpose"},"status":{"type":"string","title":"Status"},"uploadUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploadurl"},"uploadHeaders":{"additionalProperties":{"type":"string"},"type":"object","title":"Uploadheaders"},"expiresAt":{"title":"Expiresat"}},"additionalProperties":false,"type":"object","required":["id","fileName","mimeType","sizeBytes","purpose","status","uploadUrl","uploadHeaders","expiresAt"],"title":"UploadHandle"},"UploadMediaResponse":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"type":"object","required":["url","filename","mime_type","size_bytes"],"title":"UploadMediaResponse"},"UploadStatus":{"properties":{"id":{"type":"string","title":"Id"},"fileName":{"type":"string","title":"Filename"},"mimeType":{"type":"string","title":"Mimetype"},"sizeBytes":{"type":"integer","title":"Sizebytes"},"purpose":{"type":"string","title":"Purpose"},"status":{"type":"string","title":"Status"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"sourceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sourceid"},"createdAt":{"title":"Createdat"},"finalizedAt":{"title":"Finalizedat"},"expiresAt":{"title":"Expiresat"}},"additionalProperties":false,"type":"object","required":["id","fileName","mimeType","sizeBytes","purpose","status","warnings","sha256","sourceId","createdAt","finalizedAt","expiresAt"],"title":"UploadStatus"},"UpsertEntitlementRequest":{"properties":{"feature":{"type":"string","maxLength":100,"minLength":1,"title":"Feature"},"enabled":{"type":"boolean","title":"Enabled"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["feature","enabled"],"title":"UpsertEntitlementRequest"},"UsageAggregateSummary":{"properties":{"total_workspaces":{"type":"integer","title":"Total Workspaces","default":0},"total_custom_max_usage":{"type":"integer","title":"Total Custom Max Usage","default":0},"total_calls":{"type":"integer","title":"Total Calls","default":0},"total_calls_minutes":{"type":"number","title":"Total Calls Minutes","default":0.0},"total_call_cost":{"type":"number","title":"Total Call Cost","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"total_whatsapp_usage":{"type":"integer","title":"Total Whatsapp Usage","default":0},"total_elevenlabs_usage":{"type":"integer","title":"Total Elevenlabs Usage","default":0},"total_echo_input_tokens":{"type":"integer","title":"Total Echo Input Tokens","default":0},"total_echo_output_tokens":{"type":"integer","title":"Total Echo Output Tokens","default":0},"total_echo_cost":{"type":"number","title":"Total Echo Cost","default":0.0},"total_llm_input_tokens":{"type":"integer","title":"Total Llm Input Tokens","default":0},"total_llm_output_tokens":{"type":"integer","title":"Total Llm Output Tokens","default":0},"total_llm_cost":{"type":"number","title":"Total Llm Cost","default":0.0},"total_evaluation_cost":{"type":"number","title":"Total Evaluation Cost","default":0.0},"total_summarizer_cost":{"type":"number","title":"Total Summarizer Cost","default":0.0}},"type":"object","title":"UsageAggregateSummary"},"UsageDetail":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"},"total_call_usage":{"type":"integer","title":"Total Call Usage"},"total_whatsapp_usage":{"type":"integer","title":"Total Whatsapp Usage"},"total_call_cost":{"type":"number","title":"Total Call Cost"},"total_whatsapp_cost":{"type":"number","title":"Total Whatsapp Cost"},"total_elevenlabs_cost":{"type":"number","title":"Total Elevenlabs Cost"},"total_elevenlabs_usage":{"type":"integer","title":"Total Elevenlabs Usage"},"total_echo_input_tokens":{"type":"integer","title":"Total Echo Input Tokens"},"total_echo_output_tokens":{"type":"integer","title":"Total Echo Output Tokens"},"total_echo_cost":{"type":"number","title":"Total Echo Cost"},"total_cost":{"type":"number","title":"Total Cost"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","workspace_name","period_start","period_end","total_call_usage","total_whatsapp_usage","total_call_cost","total_whatsapp_cost","total_elevenlabs_cost","total_elevenlabs_usage","total_echo_input_tokens","total_echo_output_tokens","total_echo_cost","total_cost","created_at","updated_at"],"title":"UsageDetail"},"UsagePagination":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","title":"UsagePagination"},"UsageSummary":{"properties":{"total_calls":{"type":"integer","title":"Total Calls","default":0},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"whatsapp_usage":{"type":"integer","title":"Whatsapp Usage","default":0},"period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"}},"type":"object","title":"UsageSummary"},"UseCaseActionRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","title":"UseCaseActionRequest"},"UseCaseActionResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"action":{"type":"string","title":"Action"},"success":{"type":"boolean","title":"Success"},"new_status":{"anyOf":[{"type":"string","enum":["active","paused","draft","archived"]},{"type":"null"}],"title":"New Status"}},"type":"object","required":["id","name","action","success"],"title":"UseCaseActionResponse"},"UseCaseCallsRequest":{"properties":{"leadIds":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Leadids"}},"additionalProperties":false,"type":"object","required":["leadIds"],"title":"UseCaseCallsRequest"},"UseCaseCollaboratorAddRequest":{"properties":{"userId":{"type":"string","title":"Userid"},"role":{"type":"string","enum":["editor","collaborator"],"title":"Role","default":"collaborator"}},"type":"object","required":["userId"],"title":"UseCaseCollaboratorAddRequest"},"UseCaseComparison":{"properties":{"dateRange":{"$ref":"#/components/schemas/DateRange"},"filters":{"additionalProperties":true,"type":"object","title":"Filters"},"items":{"items":{"$ref":"#/components/schemas/UseCasePerformance"},"type":"array","title":"Items"},"appUrl":{"type":"string","title":"Appurl"}},"type":"object","required":["dateRange","filters","items","appUrl"],"title":"UseCaseComparison"},"UseCaseCountsResponse":{"additionalProperties":true,"type":"object"},"UseCaseDetail":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"type":{"type":"string","enum":["OUTBOUND","INBOUND","ONE_WAY"],"title":"Type"},"status":{"type":"string","enum":["active","paused","draft","archived"],"title":"Status"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"use_case_goals":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Goals"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"max_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Attempts"},"escalation_window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Escalation Window Days"},"escalation_use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Use Case Id"},"calls_per_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Calls Per Week"},"concurrency":{"type":"integer","title":"Concurrency","default":5},"escalation_enabled":{"type":"boolean","title":"Escalation Enabled","default":false},"enable_manager_transfer":{"type":"boolean","title":"Enable Manager Transfer","default":false},"schedule_enabled":{"type":"boolean","title":"Schedule Enabled","default":false},"start_time":{"type":"string","title":"Start Time","default":"09:00"},"end_time":{"type":"string","title":"End Time","default":"17:00"},"scheduled_call_retry_delay_hours":{"type":"integer","title":"Scheduled Call Retry Delay Hours","default":4},"scheduled_call_max_retry_attempts":{"type":"integer","title":"Scheduled Call Max Retry Attempts","default":3},"integrations":{"items":{"type":"string"},"type":"array","title":"Integrations","default":[]},"task_types":{"items":{"type":"string"},"type":"array","title":"Task Types","default":[]},"leads_count":{"type":"integer","title":"Leads Count","default":0},"active_calls":{"type":"integer","title":"Active Calls","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","workspace_id","workspace_name","type","status","created_at","updated_at"],"title":"UseCaseDetail"},"UseCaseEnvelopeResponse":{"additionalProperties":true,"type":"object"},"UseCaseHumanAgentWriteRequest":{"properties":{"name":{"type":"string","title":"Name"},"phone":{"type":"string","title":"Phone"}},"type":"object","required":["name","phone"],"title":"UseCaseHumanAgentWriteRequest"},"UseCaseListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"type":{"type":"string","enum":["OUTBOUND","INBOUND","ONE_WAY"],"title":"Type"},"status":{"type":"string","enum":["active","paused","draft","archived"],"title":"Status"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"max_attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Attempts"},"calls_per_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Calls Per Week"},"concurrency":{"type":"integer","title":"Concurrency","default":5},"escalation_enabled":{"type":"boolean","title":"Escalation Enabled","default":false},"schedule_enabled":{"type":"boolean","title":"Schedule Enabled","default":false},"leads_count":{"type":"integer","title":"Leads Count","default":0},"active_calls":{"type":"integer","title":"Active Calls","default":0},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","workspace_id","workspace_name","type","status","created_at","updated_at"],"title":"UseCaseListItem"},"UseCasePerformance":{"properties":{"dateRange":{"$ref":"#/components/schemas/DateRange"},"metrics":{"$ref":"#/components/schemas/MetricSummary"},"filters":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Filters"},"appUrl":{"type":"string","title":"Appurl"},"docsUrl":{"type":"string","title":"Docsurl"},"chartSpec":{"additionalProperties":true,"type":"object","title":"Chartspec"},"useCaseId":{"type":"string","title":"Usecaseid"},"useCaseName":{"type":"string","title":"Usecasename"}},"type":"object","required":["dateRange","metrics","filters","appUrl","docsUrl","chartSpec","useCaseId","useCaseName"],"title":"UseCasePerformance"},"UseCasePromptGenerationRequest":{"properties":{"description":{"type":"string","maxLength":24000,"minLength":1,"title":"Description"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"sessionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sessionid"},"context":{"anyOf":[{"$ref":"#/components/schemas/PromptGenerationContext"},{"type":"null"}]}},"type":"object","required":["description"],"title":"UseCasePromptGenerationRequest"},"UseCasePromptGenerationResponse":{"properties":{"prompt":{"type":"string","title":"Prompt"},"agentInstructions":{"type":"string","title":"Agentinstructions","default":""},"greeting":{"type":"string","title":"Greeting","default":""},"mainConversationFlow":{"type":"string","title":"Mainconversationflow","default":""},"closing":{"type":"string","title":"Closing","default":""},"objectionHandling":{"type":"string","title":"Objectionhandling","default":""},"guardrails":{"type":"string","title":"Guardrails","default":""},"useCaseGoals":{"type":"string","title":"Usecasegoals","default":""},"conclusion":{"type":"string","title":"Conclusion","default":""},"promptAiGenerationsUsed":{"type":"integer","title":"Promptaigenerationsused"},"generationsRemaining":{"type":"integer","title":"Generationsremaining"}},"type":"object","required":["prompt","promptAiGenerationsUsed","generationsRemaining"],"title":"UseCasePromptGenerationResponse"},"UseCaseResponse":{"additionalProperties":true,"type":"object"},"UseCaseScriptSectionOptimizeRequest":{"properties":{"section":{"type":"string","enum":["agentInstructions","greeting","mainConversationFlow","closing","objectionHandling","guardrails"],"title":"Section"},"content":{"type":"string","maxLength":12000,"minLength":1,"title":"Content"},"example":{"type":"string","maxLength":12000,"minLength":1,"title":"Example"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"sessionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sessionid"},"context":{"anyOf":[{"$ref":"#/components/schemas/PromptGenerationContext"},{"type":"null"}]}},"type":"object","required":["section","content","example"],"title":"UseCaseScriptSectionOptimizeRequest"},"UseCaseScriptSectionOptimizeResponse":{"properties":{"section":{"type":"string","enum":["agentInstructions","greeting","mainConversationFlow","closing","objectionHandling","guardrails"],"title":"Section"},"optimizedText":{"type":"string","title":"Optimizedtext"},"scriptOptimizeUsage":{"additionalProperties":{"type":"integer"},"type":"object","title":"Scriptoptimizeusage"},"optimizationsRemaining":{"type":"integer","title":"Optimizationsremaining"}},"type":"object","required":["section","optimizedText","optimizationsRemaining"],"title":"UseCaseScriptSectionOptimizeResponse"},"UseCaseSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"leads_count":{"type":"integer","title":"Leads Count","default":0}},"type":"object","required":["id","name","type"],"title":"UseCaseSummary"},"UseCaseWriteRequest":{"properties":{"name":{"type":"string","title":"Name"},"selectedKnowledgeBaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selectedknowledgebaseid"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"useCaseGoals":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecasegoals"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"type":{"type":"string","enum":["OUTBOUND","INBOUND","ONE_WAY"],"title":"Type","default":"OUTBOUND"},"agentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentid"},"escalationEnabled":{"type":"boolean","title":"Escalationenabled","default":false},"maxAttempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxattempts","default":4},"escalationWindowDays":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Escalationwindowdays","default":14},"callsPerWeek":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Callsperweek","default":2},"escalationUseCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalationusecaseid"},"phoneNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phonenumber"},"inboundNumber":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inboundnumber"},"enableManagerTransfer":{"type":"boolean","title":"Enablemanagertransfer","default":false},"scheduleEnabled":{"type":"boolean","title":"Scheduleenabled","default":false},"callbackTasksEnabled":{"type":"boolean","title":"Callbacktasksenabled","default":false},"scheduledCallRetryDelayHours":{"type":"integer","title":"Scheduledcallretrydelayhours","default":4},"scheduledCallMaxRetryAttempts":{"type":"integer","title":"Scheduledcallmaxretryattempts","default":3},"startTime":{"type":"string","title":"Starttime","default":"09:00"},"endTime":{"type":"string","title":"Endtime","default":"17:00"},"integrations":{"items":{"type":"string"},"type":"array","title":"Integrations"},"taskTypes":{"items":{"type":"string"},"type":"array","title":"Tasktypes"},"concurrency":{"type":"integer","title":"Concurrency","default":5},"defaultTtsLanguage":{"type":"string","title":"Defaultttslanguage","default":"hi-IN"},"defaultTtsVoice":{"type":"string","title":"Defaultttsvoice","default":"anushka"},"defaultTtsPace":{"type":"number","maximum":2.0,"minimum":0.5,"title":"Defaultttspace","default":1.0},"defaultTtsPitch":{"type":"number","maximum":0.75,"minimum":-0.75,"title":"Defaultttspitch","default":0.0},"promptAiSessionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promptaisessionid"},"tasksSchedulerConfig":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tasksschedulerconfig"},"humanAgents":{"anyOf":[{"items":{"$ref":"#/components/schemas/UseCaseHumanAgentWriteRequest"},"type":"array"},{"type":"null"}],"title":"Humanagents"}},"type":"object","required":["name"],"title":"UseCaseWriteRequest"},"UserDetail":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"type":"string","title":"Email"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"email_verified":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Email Verified"},"is_admin":{"type":"boolean","title":"Is Admin"},"admin_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Role"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"failed_login_attempts":{"type":"integer","title":"Failed Login Attempts"},"locked_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Locked Until"},"workspace_memberships":{"items":{"$ref":"#/components/schemas/UserWorkspaceMembership"},"type":"array","title":"Workspace Memberships"},"recent_events":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Recent Events"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","email","image","email_verified","is_admin","admin_role","is_active","failed_login_attempts","locked_until","workspace_memberships","recent_events","created_at","updated_at"],"title":"UserDetail"},"UserListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"type":"string","title":"Email"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"is_admin":{"type":"boolean","title":"Is Admin"},"admin_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Role"},"workspace_count":{"type":"integer","title":"Workspace Count"},"email_verified":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Email Verified"},"locked_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Locked Until"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","email","image","is_admin","admin_role","workspace_count","email_verified","created_at"],"title":"UserListItem"},"UserListPagination":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["next_cursor","has_more"],"title":"UserListPagination"},"UserListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserListItem"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/UserListPagination"}},"type":"object","required":["items","pagination"],"title":"UserListResponse"},"UserRoleResponse":{"properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"isWorkspaceAdmin":{"type":"boolean","title":"Isworkspaceadmin","default":false},"isAdmin":{"type":"boolean","title":"Isadmin","default":false}},"type":"object","title":"UserRoleResponse"},"UserWorkspaceMembership":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"role":{"type":"string","title":"Role"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"}},"type":"object","required":["workspace_id","workspace_name","role","joined_at"],"title":"UserWorkspaceMembership"},"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"},"VerifyOtpRequest":{"properties":{"otpCode":{"type":"string","title":"Otpcode"}},"type":"object","required":["otpCode"],"title":"VerifyOtpRequest"},"VerifyStatusResponse":{"properties":{"isVerified":{"type":"boolean","title":"Isverified"}},"type":"object","required":["isVerified"],"title":"VerifyStatusResponse"},"VoiceCatalog":{"properties":{"items":{"items":{"$ref":"#/components/schemas/VoiceCatalogItem"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"},"appUrl":{"type":"string","title":"Appurl"}},"additionalProperties":false,"type":"object","required":["items","count","appUrl"],"title":"VoiceCatalog"},"VoiceCatalogItem":{"properties":{"voiceId":{"type":"string","title":"Voiceid"},"name":{"type":"string","title":"Name"},"provider":{"type":"string","title":"Provider"},"gender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gender"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"available":{"type":"boolean","title":"Available","default":true}},"additionalProperties":false,"type":"object","required":["voiceId","name","provider","gender","language"],"title":"VoiceCatalogItem"},"VoiceSettingsInput":{"properties":{"vadEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Vadenabled"},"minimumTurnDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimumturnduration"},"turnEndpointDelay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turnendpointdelay"},"minimumInterruptionDuration":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimuminterruptionduration"}},"type":"object","title":"VoiceSettingsInput"},"VoiceUpdateRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"},"voiceId":{"type":"string","maxLength":191,"minLength":1,"title":"Voiceid"}},"additionalProperties":false,"type":"object","required":["voiceId"],"title":"VoiceUpdateRequest"},"WebhookDeliveryHealth":{"properties":{"total":{"type":"integer","title":"Total"},"byStatus":{"additionalProperties":{"type":"integer"},"type":"object","title":"Bystatus"},"retryable":{"type":"integer","title":"Retryable"},"attentionRequired":{"type":"boolean","title":"Attentionrequired"},"latestAttemptAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latestattemptat"}},"additionalProperties":false,"type":"object","required":["total","byStatus","retryable","attentionRequired"],"title":"WebhookDeliveryHealth"},"WebhookDeliveryList":{"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"count":{"type":"integer","title":"Count"}},"additionalProperties":false,"type":"object","required":["items","count"],"title":"WebhookDeliveryList"},"WebhookDetail":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"integration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration Id"},"provider":{"type":"string","title":"Provider"},"event_type":{"type":"string","title":"Event Type"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"max_attempts":{"type":"integer","title":"Max Attempts"},"last_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempt At"},"next_retry_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Retry At"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Headers"},"retry_history":{"items":{"$ref":"#/components/schemas/RetryHistoryEntry"},"type":"array","title":"Retry History"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"retry_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retry Of"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","workspace_name","integration_id","provider","event_type","status","attempts","max_attempts","last_attempt_at","next_retry_at","failure_reason","payload","headers","retry_history","resolved_at","retry_of","created_at","updated_at"],"title":"WebhookDetail"},"WebhookListItem":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"provider":{"type":"string","title":"Provider"},"event_type":{"type":"string","title":"Event Type"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"last_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempt At"},"next_retry_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Retry At"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","workspace_name","provider","event_type","status","attempts","last_attempt_at","next_retry_at","failure_reason","created_at"],"title":"WebhookListItem"},"WebhookListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WebhookListItem"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/CursorPage"}},"type":"object","required":["items","pagination"],"title":"WebhookListResponse"},"WebhookRetryRequest":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"WebhookRetryRequest"},"WhatsAppMessageDetailResponse":{"properties":{"messages":{"$ref":"#/components/schemas/WhatsAppMessageResponse"}},"type":"object","required":["messages"],"title":"WhatsAppMessageDetailResponse"},"WhatsAppMessageRequest":{"properties":{"recipient":{"type":"string","maxLength":32,"minLength":8,"title":"Recipient"},"message":{"type":"string","maxLength":4096,"minLength":1,"title":"Message"}},"additionalProperties":false,"type":"object","required":["recipient","message"],"title":"WhatsAppMessageRequest"},"WhatsAppMessageResponse":{"properties":{"id":{"type":"string","title":"Id"},"contactPhone":{"type":"string","title":"Contactphone"},"contactName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contactname"},"responses":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Responses"},"summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Summary"},"workspaceId":{"type":"string","title":"Workspaceid"},"lastMessageTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastmessagetime"},"isHumanControlled":{"type":"boolean","title":"Ishumancontrolled","default":false},"assignedOperatorId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedoperatorid"},"takeoverStartedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Takeoverstartedat"},"aiPausedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Aipausedat"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"workspace":{"anyOf":[{"$ref":"#/components/schemas/AuthWorkspace"},{"type":"null"}]}},"type":"object","required":["id","contactPhone","workspaceId","createdAt","updatedAt"],"title":"WhatsAppMessageResponse"},"WhatsAppMessagesListResponse":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/WhatsAppMessageResponse"},"type":"array","title":"Messages"}},"type":"object","title":"WhatsAppMessagesListResponse"},"WorkspaceCreateRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"WorkspaceCreateRequest"},"WorkspaceDeleteResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["id","name","deleted"],"title":"WorkspaceDeleteResponse"},"WorkspaceDetail":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"plan":{"type":"string","title":"Plan"},"is_primary":{"type":"boolean","title":"Is Primary"},"telephony_provider":{"type":"string","title":"Telephony Provider"},"call_provider":{"type":"string","title":"Call Provider"},"summary_provider":{"type":"string","title":"Summary Provider"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"owner_id":{"type":"string","title":"Owner Id"},"owner_email":{"type":"string","title":"Owner Email"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"total_calls":{"type":"integer","title":"Total Calls","default":0},"active_calls":{"type":"integer","title":"Active Calls","default":0},"failed_calls_24h":{"type":"integer","title":"Failed Calls 24H","default":0},"failed_calls_7d":{"type":"integer","title":"Failed Calls 7D","default":0},"total_usecases":{"type":"integer","title":"Total Usecases","default":0},"total_agents":{"type":"integer","title":"Total Agents","default":0},"total_integrations":{"type":"integer","title":"Total Integrations","default":0},"active_integrations":{"type":"integer","title":"Active Integrations","default":0},"total_leads":{"type":"integer","title":"Total Leads","default":0},"total_members":{"type":"integer","title":"Total Members","default":0},"total_api_keys":{"type":"integer","title":"Total Api Keys","default":0},"usage":{"$ref":"#/components/schemas/UsageSummary"},"custom_max_usage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Custom Max Usage"},"integrations":{"items":{"$ref":"#/components/schemas/IntegrationHealth"},"type":"array","title":"Integrations","default":[]},"recent_calls":{"items":{"$ref":"#/components/schemas/RecentCallSummary"},"type":"array","title":"Recent Calls","default":[]},"agents":{"items":{"$ref":"#/components/schemas/AgentSummary"},"type":"array","title":"Agents","default":[]},"usecases":{"items":{"$ref":"#/components/schemas/UseCaseSummary"},"type":"array","title":"Usecases","default":[]},"members":{"items":{"$ref":"#/components/schemas/WorkspaceMemberSummary"},"type":"array","title":"Members","default":[]},"has_more_integrations":{"type":"boolean","title":"Has More Integrations","default":false},"has_more_members":{"type":"boolean","title":"Has More Members","default":false},"last_call_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Call At"},"suspended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Suspended At"},"suspended_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suspended Reason"}},"type":"object","required":["id","name","plan","is_primary","telephony_provider","call_provider","summary_provider","created_at","updated_at","owner_id","owner_email","usage"],"title":"WorkspaceDetail"},"WorkspaceFeatureOverrideItem":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"feature":{"type":"string","title":"Feature"},"enabled":{"type":"boolean","title":"Enabled"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"granted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","workspace_name","feature","enabled","created_at","updated_at"],"title":"WorkspaceFeatureOverrideItem"},"WorkspaceFeatureOverrideListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkspaceFeatureOverrideItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"WorkspaceFeatureOverrideListResponse"},"WorkspaceFeatureOverrideRequest":{"properties":{"workspace_id":{"type":"string","maxLength":100,"minLength":1,"title":"Workspace Id"},"feature":{"type":"string","maxLength":100,"minLength":1,"title":"Feature"},"enabled":{"type":"boolean","title":"Enabled"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["workspace_id","feature","enabled","reason"],"title":"WorkspaceFeatureOverrideRequest"},"WorkspaceFeaturesResponse":{"properties":{"features":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Features"},"suspended":{"type":"boolean","title":"Suspended"},"suspended_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suspended Reason"}},"type":"object","required":["features","suspended"],"title":"WorkspaceFeaturesResponse"},"WorkspaceListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"plan":{"type":"string","title":"Plan"},"owner_email":{"type":"string","title":"Owner Email"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"active_integrations":{"type":"integer","title":"Active Integrations","default":0},"active_usecases":{"type":"integer","title":"Active Usecases","default":0},"failed_calls_24h":{"type":"integer","title":"Failed Calls 24H","default":0},"active_calls":{"type":"integer","title":"Active Calls","default":0},"usage":{"$ref":"#/components/schemas/UsageSummary"},"custom_max_usage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Custom Max Usage"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_call_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Call At"},"suspended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Suspended At"},"suspended_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suspended Reason"}},"type":"object","required":["id","name","plan","owner_email","usage","created_at"],"title":"WorkspaceListItem"},"WorkspaceListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkspaceListItem"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/CursorPage"}},"type":"object","required":["items","pagination"],"title":"WorkspaceListResponse"},"WorkspaceMemberSummary":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"type":"string","title":"Role"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"}},"type":"object","required":["user_id","role","joined_at"],"title":"WorkspaceMemberSummary"},"WorkspaceMembershipResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"role":{"type":"string","title":"Role"}},"type":"object","required":["user_id","workspace_id","role"],"title":"WorkspaceMembershipResponse"},"WorkspaceNumberResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspaceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspaceid"},"phoneNumber":{"type":"string","title":"Phonenumber"},"region":{"type":"string","title":"Region"},"country":{"type":"string","title":"Country"},"application":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Application"},"active":{"type":"boolean","title":"Active","default":true},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"telephonyProvider":{"type":"string","title":"Telephonyprovider","default":"plivo"}},"type":"object","required":["id","phoneNumber","region","country"],"title":"WorkspaceNumberResponse"},"WorkspaceNumbersResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"numbers":{"items":{"$ref":"#/components/schemas/WorkspaceNumberResponse"},"type":"array","title":"Numbers"},"hasAssignedNumbers":{"type":"boolean","title":"Hasassignednumbers","default":false},"assignedInbound":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedinbound"},"assignedOutbound":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedoutbound"},"assignedInboundApplication":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedinboundapplication"},"assignedOutboundApplication":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignedoutboundapplication"}},"type":"object","title":"WorkspaceNumbersResponse"},"WorkspaceResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","name","createdAt","updatedAt"],"title":"WorkspaceResponse"},"WorkspaceSettingsResponse":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"sidebarPages":{"items":{"type":"string"},"type":"array","title":"Sidebarpages"},"scheduleEnabled":{"type":"boolean","title":"Scheduleenabled","default":false},"scheduledCallingAgentIds":{"items":{"type":"string"},"type":"array","title":"Scheduledcallingagentids"},"callbackTasksEnabled":{"type":"boolean","title":"Callbacktasksenabled","default":false},"scheduledCallRetryDelayEnabled":{"type":"boolean","title":"Scheduledcallretrydelayenabled","default":true},"scheduledCallRetryDelayHours":{"type":"integer","title":"Scheduledcallretrydelayhours","default":4},"scheduledCallMaxRetryAttempts":{"type":"integer","title":"Scheduledcallmaxretryattempts","default":3},"startTime":{"type":"string","title":"Starttime","default":"09:00"},"endTime":{"type":"string","title":"Endtime","default":"17:00"},"temperature":{"type":"number","title":"Temperature","default":0.7},"agentTalksFirst":{"type":"boolean","title":"Agenttalksfirst","default":true},"interruptable":{"type":"boolean","title":"Interruptable","default":false},"vadEnabled":{"type":"boolean","title":"Vadenabled","default":true},"minimumTurnDuration":{"type":"integer","title":"Minimumturnduration","default":90},"turnEndpointDelay":{"type":"integer","title":"Turnendpointdelay","default":800},"minimumInterruptionDuration":{"type":"integer","title":"Minimuminterruptionduration","default":300},"sendEodReports":{"type":"boolean","title":"Sendeodreports","default":false},"eodReportFrequency":{"type":"string","title":"Eodreportfrequency","default":"disabled"},"enableFollowUpEmail":{"type":"boolean","title":"Enablefollowupemail","default":false},"followUpEmailFromEmail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followupemailfromemail"},"enableManagerTransfer":{"type":"boolean","title":"Enablemanagertransfer","default":false},"enableDeviationTool":{"type":"boolean","title":"Enabledeviationtool","default":false},"enableCustomFirstMessage":{"type":"boolean","title":"Enablecustomfirstmessage","default":false},"customFirstMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customfirstmessage"},"callBatchSize":{"type":"integer","title":"Callbatchsize","default":5},"callBatchDelaySeconds":{"type":"integer","title":"Callbatchdelayseconds","default":240},"callProvider":{"type":"string","title":"Callprovider","default":"ultravox"},"telephonyProvider":{"type":"string","title":"Telephonyprovider","default":"plivo"},"includePreviousCallContext":{"type":"boolean","title":"Includepreviouscallcontext","default":false},"hasFollowUpEmailApiKey":{"type":"boolean","title":"Hasfollowupemailapikey","default":false},"outboundNumbers":{"items":{"type":"string"},"type":"array","title":"Outboundnumbers"},"inboundNumber":{"type":"string","title":"Inboundnumber","default":""}},"type":"object","title":"WorkspaceSettingsResponse"},"WorkspaceSettingsUpdateRequest":{"properties":{"phoneNumbers":{"anyOf":[{"$ref":"#/components/schemas/PhoneNumbersSettingsInput"},{"type":"null"}]},"voiceSettings":{"anyOf":[{"$ref":"#/components/schemas/VoiceSettingsInput"},{"type":"null"}]},"aiSettings":{"anyOf":[{"$ref":"#/components/schemas/AISettingsInput"},{"type":"null"}]},"transferSettings":{"anyOf":[{"$ref":"#/components/schemas/TransferSettingsInput"},{"type":"null"}]},"initialMessageSettings":{"anyOf":[{"$ref":"#/components/schemas/InitialMessageSettingsInput"},{"type":"null"}]},"notificationSettings":{"anyOf":[{"$ref":"#/components/schemas/NotificationSettingsInput"},{"type":"null"}]},"followUpEmailSettings":{"anyOf":[{"$ref":"#/components/schemas/FollowUpEmailSettingsInput"},{"type":"null"}]},"aiContextSettings":{"anyOf":[{"$ref":"#/components/schemas/AIContextSettingsInput"},{"type":"null"}]},"scheduleSettings":{"anyOf":[{"$ref":"#/components/schemas/ScheduleSettingsInput"},{"type":"null"}]},"queueSettings":{"anyOf":[{"$ref":"#/components/schemas/QueueSettingsInput"},{"type":"null"}]}},"type":"object","title":"WorkspaceSettingsUpdateRequest"},"WorkspaceSuspendResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"suspended":{"type":"boolean","title":"Suspended"},"suspended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Suspended At"},"suspended_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suspended Reason"}},"type":"object","required":["id","name","suspended","suspended_at","suspended_reason"],"title":"WorkspaceSuspendResponse"},"WorkspaceUpdateResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"workspace":{"$ref":"#/components/schemas/WorkspaceResponse"}},"type":"object","required":["success","workspace"],"title":"WorkspaceUpdateResponse"},"WorkspaceUsageItem":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"plan":{"type":"string","title":"Plan"},"custom_max_usage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Custom Max Usage"},"total_calls":{"type":"integer","title":"Total Calls","default":0},"total_calls_minutes":{"type":"number","title":"Total Calls Minutes","default":0.0},"total_calls_limit_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Calls Limit Minutes"},"call_cost":{"type":"number","title":"Call Cost","default":0.0},"total_cost":{"type":"number","title":"Total Cost","default":0.0},"whatsapp_usage":{"type":"integer","title":"Whatsapp Usage","default":0},"elevenlabs_usage":{"type":"integer","title":"Elevenlabs Usage","default":0},"echo_input_tokens":{"type":"integer","title":"Echo Input Tokens","default":0},"echo_output_tokens":{"type":"integer","title":"Echo Output Tokens","default":0},"echo_cost":{"type":"number","title":"Echo Cost","default":0.0},"llm_input_tokens":{"type":"integer","title":"Llm Input Tokens","default":0},"llm_output_tokens":{"type":"integer","title":"Llm Output Tokens","default":0},"llm_cost":{"type":"number","title":"Llm Cost","default":0.0},"evaluation_cost":{"type":"number","title":"Evaluation Cost","default":0.0},"summarizer_cost":{"type":"number","title":"Summarizer Cost","default":0.0},"llm_by_category":{"additionalProperties":{"$ref":"#/components/schemas/LlmCategoryUsage"},"type":"object","title":"Llm By Category"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"}},"type":"object","required":["workspace_id","workspace_name","plan"],"title":"WorkspaceUsageItem"},"ZohoWebhookPayload":{"properties":{"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"operation":{"type":"string","title":"Operation"},"module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module"},"ids":{"items":{"type":"string"},"type":"array","title":"Ids"}},"type":"object","required":["operation"],"title":"ZohoWebhookPayload"},"outcaller_api__admin__schemas__agents__CreateAgentRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"use_case_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Use Case Id"},"name":{"type":"string","title":"Name"},"gender":{"type":"string","title":"Gender","default":"female"},"voice_id":{"items":{"type":"string"},"type":"array","title":"Voice Id","default":[]},"voice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Url"},"temperature":{"type":"number","title":"Temperature","default":0.7},"agent_talks_first":{"type":"boolean","title":"Agent Talks First","default":true},"interruptable":{"type":"boolean","title":"Interruptable","default":false},"vad_enabled":{"type":"boolean","title":"Vad Enabled","default":true},"minimum_turn_duration":{"type":"integer","title":"Minimum Turn Duration","default":90},"turn_endpoint_delay":{"type":"integer","title":"Turn Endpoint Delay","default":800},"minimum_interruption_duration":{"type":"integer","title":"Minimum Interruption Duration","default":300}},"type":"object","required":["workspace_id","name"],"title":"CreateAgentRequest"},"outcaller_api__admin__schemas__calls__CallListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CallListItem"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/CursorPage"}},"type":"object","required":["items","pagination"],"title":"CallListResponse"},"outcaller_api__admin__schemas__knowledge_base__KnowledgeBaseCreateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"workspace_id":{"type":"string","title":"Workspace Id"}},"type":"object","required":["workspace_id"],"title":"KnowledgeBaseCreateRequest"},"outcaller_api__admin__schemas__knowledge_base__KnowledgeBaseListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/KnowledgeBaseListItem"},"type":"array","title":"Items"},"pagination":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"integer"},{"type":"null"}]},"type":"object","title":"Pagination"}},"type":"object","required":["items","pagination"],"title":"KnowledgeBaseListResponse"},"outcaller_api__admin__schemas__knowledge_base__KnowledgeBaseUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","title":"KnowledgeBaseUpdateRequest"},"outcaller_api__admin__schemas__usecases__UseCaseListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UseCaseListItem"},"type":"array","title":"Items"},"pagination":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"integer"},{"type":"null"}]},"type":"object","title":"Pagination"}},"type":"object","required":["items","pagination"],"title":"UseCaseListResponse"},"outcaller_api__api__public__schemas__AgentResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"gender":{"type":"string","title":"Gender"},"temperature":{"type":"number","title":"Temperature"},"agentTalksFirst":{"type":"boolean","title":"Agenttalksfirst"},"interruptable":{"type":"boolean","title":"Interruptable"},"vadEnabled":{"type":"boolean","title":"Vadenabled"},"minimumTurnDuration":{"type":"integer","title":"Minimumturnduration"},"turnEndpointDelay":{"type":"integer","title":"Turnendpointdelay"},"minimumInterruptionDuration":{"type":"integer","title":"Minimuminterruptionduration"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","name","gender","temperature","agentTalksFirst","interruptable","vadEnabled","minimumTurnDuration","turnEndpointDelay","minimumInterruptionDuration","createdAt","updatedAt"],"title":"AgentResponse"},"outcaller_api__api__public__schemas__KnowledgeBaseCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"KnowledgeBaseCreateRequest"},"outcaller_api__api__public__schemas__WorkspaceUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","title":"WorkspaceUpdateRequest"},"outcaller_api__api__routes__workspaces__WorkspaceUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name"},"callProvider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callprovider"},"telephonyProvider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephonyprovider"},"customMaxUsage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Custommaxusage"},"planType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plantype"},"webHookUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhookurl"},"webHookHeaders":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Webhookheaders"}},"type":"object","title":"WorkspaceUpdateRequest"},"outcaller_api__types__api__AgentResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"gender":{"type":"string","title":"Gender"},"voice_id":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Voice Id"},"voice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Url"},"primary_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Language"},"workspace_id":{"type":"string","title":"Workspace Id"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","name","gender","workspace_id","created_at","updated_at"],"title":"AgentResponse","description":"Response model for agent data."},"outcaller_api__types__api__CreateAgentRequest":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"gender":{"type":"string","title":"Gender"},"voice_id":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Voice Id"},"voice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Url"},"primary_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Language"},"workspace_id":{"type":"string","title":"Workspace Id"}},"type":"object","required":["name","gender","workspace_id"],"title":"CreateAgentRequest","description":"A request to create a new agent."},"outcaller_api__types__workspace_management__AgentResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"gender":{"type":"string","title":"Gender"},"useCaseId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usecaseid"},"voiceId":{"items":{"type":"string"},"type":"array","title":"Voiceid"},"voiceUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voiceurl"},"primaryLanguage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primarylanguage"},"temperature":{"type":"number","title":"Temperature","default":0.7},"agentTalksFirst":{"type":"boolean","title":"Agenttalksfirst","default":true},"interruptable":{"type":"boolean","title":"Interruptable","default":false},"vadEnabled":{"type":"boolean","title":"Vadenabled","default":true},"minimumTurnDuration":{"type":"integer","title":"Minimumturnduration","default":90},"turnEndpointDelay":{"type":"integer","title":"Turnendpointdelay","default":800},"minimumInterruptionDuration":{"type":"integer","title":"Minimuminterruptionduration","default":300},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","name","gender","createdAt","updatedAt"],"title":"AgentResponse"},"outcaller_api__types__workspace_management__CallListResponse":{"properties":{"calls":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Calls"},"totalCount":{"type":"integer","title":"Totalcount"},"totalPages":{"type":"integer","title":"Totalpages"},"currentPage":{"type":"integer","title":"Currentpage"},"uniqueAgents":{"items":{"type":"string"},"type":"array","title":"Uniqueagents"}},"type":"object","required":["calls","totalCount","totalPages","currentPage","uniqueAgents"],"title":"CallListResponse"},"outcaller_api__types__workspace_management__KnowledgeBaseCreateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"KnowledgeBaseCreateRequest"},"outcaller_api__types__workspace_management__KnowledgeBaseListResponse":{"properties":{"knowledgeBases":{"items":{"$ref":"#/components/schemas/KnowledgeBaseResponse"},"type":"array","title":"Knowledgebases"},"count":{"type":"integer","title":"Count","default":0}},"type":"object","title":"KnowledgeBaseListResponse"},"outcaller_api__types__workspace_management__KnowledgeBaseUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"KnowledgeBaseUpdateRequest"},"outcaller_api__types__workspace_management__UseCaseListResponse":{"additionalProperties":true,"type":"object"}}}}