{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_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/ResponseModel_LoginData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Ends this token's session; one already ended still signs out cleanly.","operationId":"logout_users_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/sessions":{"get":{"tags":["auth"],"summary":"Get User Sessions","description":"Where the user is signed in, most recently active first.","operationId":"get_user_sessions_users_sessions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_UserSessionData__"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/sessions/{session_id}":{"delete":{"tags":["auth"],"summary":"Delete User Session","operationId":"delete_user_session_users_sessions__session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/sessions/sign-out-others":{"post":{"tags":["auth"],"summary":"Sign Out Other Sessions","operationId":"sign_out_other_sessions_users_sessions_sign_out_others_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/sessions/sign-out-everywhere":{"post":{"tags":["auth"],"summary":"Sign Out Everywhere","description":"Ends every session of the user, this device's too.","operationId":"sign_out_everywhere_users_sessions_sign_out_everywhere_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/sign-ins":{"get":{"tags":["auth"],"summary":"Get Sign Ins","description":"Recent sign-ins and, apart, recent failed password attempts, newest first.","operationId":"get_sign_ins_users_sign_ins_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_SignInHistory_"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/profile":{"get":{"tags":["auth"],"summary":"Get User Profile","operationId":"get_user_profile_users_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_UserProfile_"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["auth"],"summary":"Update User Profile","operationId":"update_user_profile_users_profile_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_UserProfile_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/profile/phone/code":{"post":{"tags":["auth"],"summary":"Send Profile Phone Code","operationId":"send_profile_phone_code_users_profile_phone_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendPhoneCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/profile/phone/verify":{"post":{"tags":["auth"],"summary":"Verify Profile Phone","description":"Save the number as the user's verified phone when the code matches.","operationId":"verify_profile_phone_users_profile_phone_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyPhoneCodeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_UserProfile_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/users/change-password":{"patch":{"tags":["auth"],"summary":"Change Password","description":"Change the password; the response carries the new session token.","operationId":"change_password_users_change_password_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_LoginData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/signup":{"post":{"tags":["auth"],"summary":"Signup","operationId":"signup_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Union_LoginData__dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/google-auth":{"post":{"tags":["auth"],"summary":"Google Auth","operationId":"google_auth_google_auth_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_LoginData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","operationId":"verify_email_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/resend-verification":{"post":{"tags":["auth"],"summary":"Resend Verification","operationId":"resend_verification_resend_verification_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","operationId":"forgot_password_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/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_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/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/upload-profile-picture":{"post":{"tags":["auth"],"summary":"Upload Profile Picture","operationId":"upload_profile_picture_users_upload_profile_picture_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_profile_picture_users_upload_profile_picture_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/organizations/{organization_id}/projects/{project_id}/automation-catalog":{"get":{"tags":["automations"],"summary":"Get Automation Catalog","operationId":"get_automation_catalog_organizations__organization_id__projects__project_id__automation_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/automation-rules":{"get":{"tags":["automations"],"summary":"List Automations","operationId":"list_automations_organizations__organization_id__projects__project_id__automation_rules_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["automations"],"summary":"Create Automation","operationId":"create_automation_organizations__organization_id__projects__project_id__automation_rules_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/automation-rules/{rule_id}":{"get":{"tags":["automations"],"summary":"Get Automation","operationId":"get_automation_organizations__organization_id__projects__project_id__automation_rules__rule_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["automations"],"summary":"Save Automation","operationId":"save_automation_organizations__organization_id__projects__project_id__automation_rules__rule_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["automations"],"summary":"Delete Automation","operationId":"delete_automation_organizations__organization_id__projects__project_id__automation_rules__rule_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/automation-rules/{rule_id}/enabled":{"patch":{"tags":["automations"],"summary":"Set Automation Enabled","operationId":"set_automation_enabled_organizations__organization_id__projects__project_id__automation_rules__rule_id__enabled_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnabledBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/automation-rules/{rule_id}/runs-on":{"patch":{"tags":["automations"],"summary":"Change Automation Runs On","operationId":"change_automation_runs_on_organizations__organization_id__projects__project_id__automation_rules__rule_id__runs_on_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"rule_id","in":"path","required":true,"schema":{"type":"string","title":"Rule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunsOnChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/automation-runs":{"get":{"tags":["automations"],"summary":"List Automation Runs","operationId":"list_automation_runs_organizations__organization_id__projects__project_id__automation_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"automation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Automation Id"}},{"name":"conversation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["processing","waiting","completed","failed","stopped","skipped"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"active","in":"query","required":false,"schema":{"type":"boolean","description":"Only runs still waiting or working","default":false,"title":"Active"},"description":"Only runs still waiting or working"},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/automation-runs/{run_id}/stop":{"post":{"tags":["automations"],"summary":"Stop Automation Run","operationId":"stop_automation_run_organizations__organization_id__projects__project_id__automation_runs__run_id__stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/automation-runs/{run_id}/retry":{"post":{"tags":["automations"],"summary":"Retry Automation Step","operationId":"retry_automation_step_organizations__organization_id__projects__project_id__automation_runs__run_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryStepBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/captured-fields":{"get":{"tags":["automations"],"summary":"List Captured Fields","description":"Fields conversations already capture, offered when picking columns,\nwith how each automation that pulls one out asks for it.","operationId":"list_captured_fields_organizations__organization_id__projects__project_id__captured_fields_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/automation-rules/trigger":{"post":{"tags":["automations"],"summary":"Trigger Automation Rules","description":"Secured custom webhook: run the automations listening for this event.","operationId":"trigger_automation_rules_organizations__organization_id__projects__project_id__automation_rules_trigger_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationTriggerBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations":{"get":{"tags":["organizations"],"summary":"Get User Organizations","operationId":"get_user_organizations_organizations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g., {\"name\": \"John\", \"status\": \"active\"})","title":"Filters"},"description":"MongoDB compatible query object (e.g., {\"name\": \"John\", \"status\": \"active\"})"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})"},{"name":"projection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible projection object (e.g., {\"name\": 1, \"status\": 1})","title":"Projection"},"description":"MongoDB compatible projection object (e.g., {\"name\": 1, \"status\": 1})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}":{"patch":{"tags":["organizations"],"summary":"Update Organization","operationId":"update_organization_organizations__organization_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrganizationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Organization_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["organizations"],"summary":"Get Organization","operationId":"get_organization_organizations__organization_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Organization_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects":{"post":{"tags":["projects"],"summary":"Create Project","operationId":"create_project_organizations__organization_id__projects_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Project_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["projects"],"summary":"Get Projects","operationId":"get_projects_organizations__organization_id__projects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g., {\"name\": \"John\", \"status\": \"active\"})","title":"Filters"},"description":"MongoDB compatible query object (e.g., {\"name\": \"John\", \"status\": \"active\"})"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})"},{"name":"projection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible projection object (e.g., {\"name\": 1, \"bot_icon\": 1})","title":"Projection"},"description":"MongoDB compatible projection object (e.g., {\"name\": 1, \"bot_icon\": 1})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}":{"get":{"tags":["projects"],"summary":"Get Project","operationId":"get_project_organizations__organization_id__projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Project_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["projects"],"summary":"Update Project","operationId":"update_project_organizations__organization_id__projects__project_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Project_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project","operationId":"delete_project_organizations__organization_id__projects__project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/ai-config":{"get":{"tags":["projects"],"summary":"Get Ai Config","description":"Get AI configuration including available models, tools, and prompt templates","operationId":"get_ai_config_organizations__organization_id__projects__project_id__ai_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"voice_only","in":"query","required":false,"schema":{"type":"boolean","description":"Only return tools available for voice agents","default":false,"title":"Voice Only"},"description":"Only return tools available for voice agents"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/voice-config":{"get":{"tags":["projects"],"summary":"Get Voice Config","description":"Get complete voice configuration including curated voices and parameters for all providers","operationId":"get_voice_config_organizations__organization_id__projects__project_id__voice_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/attachments/upload":{"post":{"tags":["media_assets"],"summary":"Upload Attachment","description":"Upload a conversation attachment for a customer of this project, from\nthe public widget (the visitor's own profile) or the inbox.","operationId":"upload_attachment_organizations__organization_id__projects__project_id__attachments_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Visitor-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Visitor-Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_attachment_organizations__organization_id__projects__project_id__attachments_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_AttachmentUploadResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/media-assets":{"post":{"tags":["media_assets"],"summary":"Create Media Asset","description":"Create one media asset: explicit kind + one file or one external URL.","operationId":"create_media_asset_organizations__organization_id__projects__project_id__media_assets_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_media_asset_organizations__organization_id__projects__project_id__media_assets_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["media_assets"],"summary":"List Media Assets","operationId":"list_media_assets_organizations__organization_id__projects__project_id__media_assets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/media-assets/by-url":{"delete":{"tags":["media_assets"],"summary":"Delete Media Asset By Url","operationId":"delete_media_asset_by_url_organizations__organization_id__projects__project_id__media_assets_by_url_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/media-assets/{asset_id}":{"delete":{"tags":["media_assets"],"summary":"Delete Media Asset","operationId":"delete_media_asset_organizations__organization_id__projects__project_id__media_assets__asset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{org_id}/users":{"get":{"tags":["users"],"summary":"Get Users","operationId":"get_users_organizations__org_id__users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_OrganizationUserData__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/users":{"get":{"tags":["users"],"summary":"Get Project Users Permissions","operationId":"get_project_users_permissions_organizations__organization_id__projects__project_id__users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_ProjectUserAccess__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/staff/me":{"get":{"tags":["staff"],"summary":"Get Staff Me","description":"Whether the current user is a staff admin (drives the staff page link).","operationId":"get_staff_me_staff_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_StaffMe_"}}}}},"security":[{"HTTPBearer":[]}]}},"/staff/users":{"get":{"tags":["staff"],"summary":"List Staff Users","description":"Every active account on the staff domain, with its staff role.","operationId":"list_staff_users_staff_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_StaffUser__"}}}}},"security":[{"HTTPBearer":[]}]}},"/staff/users/{user_id}/role":{"put":{"tags":["staff"],"summary":"Update Staff Role","description":"Grant ``super_developer`` / ``super_admin``, or revoke with ``null``.","operationId":"update_staff_role_staff_users__user_id__role_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStaffRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_StaffUser_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/staff/invitations":{"get":{"tags":["staff"],"summary":"List Staff Invitations","description":"Unexpired invitations for people who have no account yet (applied at\ntheir first verified login).","operationId":"list_staff_invitations_staff_invitations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_StaffInvitationResponse__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["staff"],"summary":"Invite Staff","description":"Give a staff-domain email a staff role, now or on their first login.","operationId":"invite_staff_staff_invitations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteStaffRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_InviteStaffResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/staff/invitations/{invitation_id}":{"delete":{"tags":["staff"],"summary":"Cancel Staff Invitation","operationId":"cancel_staff_invitation_staff_invitations__invitation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources/files":{"post":{"tags":["sources"],"summary":"Upload Files","operationId":"upload_files_organizations__organization_id__projects__project_id__sources_files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_files_organizations__organization_id__projects__project_id__sources_files_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources/urls":{"post":{"tags":["sources"],"summary":"Upload Urls","operationId":"upload_urls_organizations__organization_id__projects__project_id__sources_urls_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadDocumentUrlsRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources/domains":{"post":{"tags":["sources"],"summary":"Upload Domains","operationId":"upload_domains_organizations__organization_id__projects__project_id__sources_domains_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadDocumentDomainsRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources/google-business-profile/locations":{"get":{"tags":["sources"],"summary":"List Google Business Profile Locations","description":"List managed Business Profile locations for a connected Google account.","operationId":"list_google_business_profile_locations_organizations__organization_id__projects__project_id__sources_google_business_profile_locations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"query","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources/google-business-profile":{"post":{"tags":["sources"],"summary":"Create Google Business Profile Sources","description":"Create/update one Knowledge Base source for each selected managed GBP location.","operationId":"create_google_business_profile_sources_organizations__organization_id__projects__project_id__sources_google_business_profile_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessProfileSourceRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources":{"get":{"tags":["sources"],"summary":"Get Sources","description":"Get sources for a project with pagination","operationId":"get_sources_organizations__organization_id__projects__project_id__sources_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g., {\"source_type\": \"files\", \"sync_status\": \"success\"})","title":"Filters"},"description":"MongoDB compatible query object (e.g., {\"source_type\": \"files\", \"sync_status\": \"success\"})"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_SourceListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources/{source_id}":{"delete":{"tags":["sources"],"summary":"Delete Document","operationId":"delete_document_organizations__organization_id__projects__project_id__sources__source_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project 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/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources/{source_id}/download":{"get":{"tags":["sources"],"summary":"Download Source","description":"Download the original file or crawled content from S3.\nReturns the file content with appropriate content type and filename.","operationId":"download_source_organizations__organization_id__projects__project_id__sources__source_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources/{source_id}/sync":{"post":{"tags":["sources"],"summary":"Sync Source","description":"Start a sync process for a specific source.\nThis will re-index the source based on its type (URL, domain, or file).","operationId":"sync_source_organizations__organization_id__projects__project_id__sources__source_id__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project 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/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources/bulk-delete":{"post":{"tags":["sources"],"summary":"Bulk Delete Sources","description":"Delete multiple sources from the knowledge base.\nSupports deleting files, URLs, and domains in bulk.\nFor domain sources, also deletes all related URL sources.","operationId":"bulk_delete_sources_organizations__organization_id__projects__project_id__sources_bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteSourcesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/sources/domains/{source_id}":{"patch":{"tags":["sources"],"summary":"Update Domain Source","description":"Update configuration for a domain source.\nAllows updating max_pages, max_depth, exclude_patterns, and frequency_days.","operationId":"update_domain_source_organizations__organization_id__projects__project_id__sources_domains__source_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDomainSourceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/users/{user_id}":{"delete":{"tags":["access"],"summary":"Remove User From Organization","description":"Remove a member, or leave the organization (AccessService checks who may).","operationId":"remove_user_from_organization_organizations__organization_id__users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"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/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{org_id}/projects/{project_id}/users":{"post":{"tags":["access"],"summary":"Add Users To Project","operationId":"add_users_to_project_organizations__org_id__projects__project_id__users_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProjectUserAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{org_id}/projects/{project_id}/users/{user_id}":{"delete":{"tags":["access"],"summary":"Remove User From Project","operationId":"remove_user_from_project_organizations__org_id__projects__project_id__users__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"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/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{org_id}/projects/{project_id}/users/{user_id}/access":{"patch":{"tags":["access"],"summary":"Update User Project Access","operationId":"update_user_project_access_organizations__org_id__projects__project_id__users__user_id__access_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserProjectAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{org_id}/users/{user_id}/access":{"patch":{"tags":["access"],"summary":"Update User Organization Access","operationId":"update_user_organization_access_organizations__org_id__users__user_id__access_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserOrganizationAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/channels/meta/webhook":{"get":{"tags":["channels"],"summary":"Verify Meta App Webhook","description":"Verify the shared Meta app webhook of SaaS-managed Meta channels.\nThe Meta app needs the messages and leadgen webhook fields subscribed.","operationId":"verify_meta_app_webhook_channels_meta_webhook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["channels"],"summary":"Receive Meta App Webhook","description":"Receive shared Meta messaging and Instant Form leadgen events.","operationId":"receive_meta_app_webhook_channels_meta_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/channels/meta/deauthorize":{"post":{"tags":["channels"],"summary":"Meta Deauthorize Callback","description":"Meta callback when a user removes the app from their account.","operationId":"meta_deauthorize_callback_channels_meta_deauthorize_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_meta_deauthorize_callback_channels_meta_deauthorize_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/channels/meta/data-deletion":{"post":{"tags":["channels"],"summary":"Meta Data Deletion Callback","description":"Meta callback when a user requests deletion of data held by the app.","operationId":"meta_data_deletion_callback_channels_meta_data_deletion_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_meta_data_deletion_callback_channels_meta_data_deletion_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/channels/meta/data-deletion/status":{"get":{"tags":["channels"],"summary":"Meta Data Deletion Status","description":"Public status page referenced in Meta data-deletion callback responses.","operationId":"meta_data_deletion_status_channels_meta_data_deletion_status_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","description":"Meta data-deletion confirmation code","title":"Code"},"description":"Meta data-deletion confirmation code"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channels/{channel_id}/webhook":{"get":{"tags":["channels"],"summary":"Verify Webhook","description":"Handle provider webhook verification challenges.","operationId":"verify_webhook_organizations__organization_id__projects__project_id__channels__channel_id__webhook_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["channels"],"summary":"Receive Webhook","description":"Webhook endpoint for messages from every channel.","operationId":"receive_webhook_organizations__organization_id__projects__project_id__channels__channel_id__webhook_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channels":{"post":{"tags":["channels"],"summary":"Create Channel Config","operationId":"create_channel_config_organizations__organization_id__projects__project_id__channels_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChannelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Channel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["channels"],"summary":"Get Project Channels","description":"Inbox readers without channels:read (messages:read, e.g. Support agent)\nget each channel with only its quick replies and AI reply setting.","operationId":"get_project_channels_organizations__organization_id__projects__project_id__channels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_Channel__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channels/{channel_id}":{"get":{"tags":["channels"],"summary":"Get Channel","operationId":"get_channel_organizations__organization_id__projects__project_id__channels__channel_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Channel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["channels"],"summary":"Delete Channel","operationId":"delete_channel_organizations__organization_id__projects__project_id__channels__channel_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["channels"],"summary":"Update Channel","operationId":"update_channel_organizations__organization_id__projects__project_id__channels__channel_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Channel Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Channel_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channels/{channel_id}/rotate-api-key":{"post":{"tags":["channels"],"summary":"Rotate Channel Api Key","description":"Rotate an API channel's key; the new key is returned only once.","operationId":"rotate_channel_api_key_organizations__organization_id__projects__project_id__channels__channel_id__rotate_api_key_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channels/{channel_id}/disconnect":{"post":{"tags":["channels"],"summary":"Disconnect Channel","description":"Soft-disconnect an OAuth or webhook-backed channel from its external provider.","operationId":"disconnect_channel_organizations__organization_id__projects__project_id__channels__channel_id__disconnect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channels/validate":{"post":{"tags":["channels"],"summary":"Validate Channel Config","description":"Validate a channel configuration without creating it.","operationId":"validate_channel_config_organizations__organization_id__projects__project_id__channels_validate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChannelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channels/{channel_id}/bot-icon":{"post":{"tags":["channels"],"summary":"Upload Bot Icon","operationId":"upload_bot_icon_organizations__organization_id__projects__project_id__channels__channel_id__bot_icon_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_bot_icon_organizations__organization_id__projects__project_id__channels__channel_id__bot_icon_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channel-definitions":{"get":{"tags":["channels"],"summary":"List Channel Definitions","description":"List all channel definitions (including coming soon ones)","operationId":"list_channel_definitions_organizations__organization_id__projects__project_id__channel_definitions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channels/actions/{action_name}":{"post":{"tags":["channels"],"summary":"Execute Channel Action","description":"Execute a generic channel action without a channel instance (e.g. token\nvalidation).","operationId":"execute_channel_action_organizations__organization_id__projects__project_id__channels_actions__action_name__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"action_name","in":"path","required":true,"schema":{"type":"string","title":"Action Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channels/{channel_id}/actions/{action_name}":{"post":{"tags":["channels"],"summary":"Execute Channel Instance Action","description":"Execute an action bound to a specific channel (OAuth, resource picking, save).","operationId":"execute_channel_instance_action_organizations__organization_id__projects__project_id__channels__channel_id__actions__action_name__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"action_name","in":"path","required":true,"schema":{"type":"string","title":"Action Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/analytics":{"get":{"tags":["analytics"],"summary":"Get Organization Analytics","operationId":"get_organization_analytics_organizations__organization_id__analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from date","title":"Start Date"},"description":"Filter from date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to date","title":"End Date"},"description":"Filter to date"},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by project id","title":"Project Id"},"description":"Filter by project id"},{"name":"channel_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by channel type","title":"Channel Type"},"description":"Filter by channel type"},{"name":"lead_scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lead identity scope: chat (default) or all (chat + inbound)","title":"Lead Scope"},"description":"Lead identity scope: chat (default) or all (chat + inbound)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Analytics_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/analytics":{"get":{"tags":["analytics"],"summary":"Get Project Analytics","operationId":"get_project_analytics_organizations__organization_id__projects__project_id__analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from date","title":"Start Date"},"description":"Filter from date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to date","title":"End Date"},"description":"Filter to date"},{"name":"channel_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by channel type","title":"Channel Type"},"description":"Filter by channel type"},{"name":"lead_scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lead identity scope: chat (default) or all (chat + inbound)","title":"Lead Scope"},"description":"Lead identity scope: chat (default) or all (chat + inbound)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Analytics_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/conversation-analytics":{"get":{"tags":["analytics"],"summary":"Get Organization Conversation Analytics","operationId":"get_organization_conversation_analytics_organizations__organization_id__conversation_analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g., {\"status\": \"closed\", \"start_time\": {\"$gte\": \"2024-01-01\", \"$lte\": \"2024-12-31\"}})","title":"Filters"},"description":"MongoDB compatible query object (e.g., {\"status\": \"closed\", \"start_time\": {\"$gte\": \"2024-01-01\", \"$lte\": \"2024-12-31\"}})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversation-analytics":{"get":{"tags":["analytics"],"summary":"Get Project Conversation Analytics","operationId":"get_project_conversation_analytics_organizations__organization_id__projects__project_id__conversation_analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g., {\"status\": \"closed\", \"start_time\": {\"$gte\": \"2024-01-01\", \"$lte\": \"2024-12-31\"}})","title":"Filters"},"description":"MongoDB compatible query object (e.g., {\"status\": \"closed\", \"start_time\": {\"$gte\": \"2024-01-01\", \"$lte\": \"2024-12-31\"}})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/business-insights":{"get":{"tags":["analytics"],"summary":"Get Project Business Insights","operationId":"get_project_business_insights_organizations__organization_id__projects__project_id__business_insights_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from date","title":"Start Date"},"description":"Filter from date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to date","title":"End Date"},"description":"Filter to date"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/business-insights/conversations":{"get":{"tags":["analytics"],"summary":"Get Business Insights Conversations","description":"The conversations behind one slice of a disposition chart.","operationId":"get_business_insights_conversations_organizations__organization_id__projects__project_id__business_insights_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_key","in":"query","required":true,"schema":{"type":"string","description":"Disposition list key","title":"List Key"},"description":"Disposition list key"},{"name":"value","in":"query","required":true,"schema":{"type":"string","description":"Disposition value","title":"Value"},"description":"Disposition value"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from date","title":"Start Date"},"description":"Filter from date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to date","title":"End Date"},"description":"Filter to date"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/audit-logs":{"get":{"tags":["audit"],"summary":"Get Audit Logs","operationId":"get_audit_logs_organizations__organization_id__audit_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of filters","title":"Filters"},"description":"JSON string of filters"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of sort criteria","title":"Sort"},"description":"JSON string of sort criteria"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}/summary":{"post":{"tags":["conversations"],"summary":"Generate Conversation Summary","description":"Queue a summary (stored on the Conversation); skipped when it is already\nup to date with last_message_at.","operationId":"generate_conversation_summary_organizations__organization_id__projects__project_id__conversations__conversation_id__summary_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations":{"get":{"tags":["conversations"],"summary":"Get Conversation History","operationId":"get_conversation_history_organizations__organization_id__projects__project_id__conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of filters","title":"Filters"},"description":"JSON string of filters"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of sort criteria","title":"Sort"},"description":"JSON string of sort criteria"},{"name":"unique","in":"query","required":false,"schema":{"type":"boolean","description":"Whether to return only unique callers (latest call per user)","default":false,"title":"Unique"},"description":"Whether to return only unique callers (latest call per user)"},{"name":"follow_up","in":"query","required":false,"schema":{"anyOf":[{"enum":["mine","unassigned"],"type":"string"},{"type":"null"}],"description":"Filter by follow-up owner","title":"Follow Up"},"description":"Filter by follow-up owner"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversation-tags":{"get":{"tags":["conversations"],"summary":"Get Project Conversation Tags","description":"Tags on the project's conversations, most used first.","operationId":"get_project_conversation_tags_organizations__organization_id__projects__project_id__conversation_tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_str__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversation-profiles":{"get":{"tags":["conversations"],"summary":"Get Conversation Profiles","description":"Conversation-backed chat inbox (conversation_type chat; filterable by\nchannel_type).","operationId":"get_conversation_profiles_organizations__organization_id__projects__project_id__conversation_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of filters","title":"Filters"},"description":"JSON string of filters"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of sort criteria","title":"Sort"},"description":"JSON string of sort criteria"},{"name":"assignment","in":"query","required":false,"schema":{"anyOf":[{"enum":["mine","unassigned"],"type":"string"},{"type":"null"}],"description":"Filter by who owns the handover","title":"Assignment"},"description":"Filter by who owns the handover"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}/handler":{"post":{"tags":["conversations"],"summary":"Set Conversation Handler","description":"Hand a live chat to a roster agent or back to the AI.","operationId":"set_conversation_handler_organizations__organization_id__projects__project_id__conversations__conversation_id__handler_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetConversationHandlerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}/follow-up-owner":{"put":{"tags":["conversations"],"summary":"Set Follow Up Owner","description":"Set or clear who follows up on an ended call or closed chat.","operationId":"set_follow_up_owner_organizations__organization_id__projects__project_id__conversations__conversation_id__follow_up_owner_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetFollowUpOwnerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}/follow-up-due-date":{"put":{"tags":["conversations"],"summary":"Set Follow Up Due Date","description":"Set or clear the day an owned follow-up is due.","operationId":"set_follow_up_due_date_organizations__organization_id__projects__project_id__conversations__conversation_id__follow_up_due_date_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetFollowUpDueDateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}":{"patch":{"tags":["conversations"],"summary":"Update Conversation","description":"Partially update a conversation (tags or resolution, chat or voice).","operationId":"update_conversation_organizations__organization_id__projects__project_id__conversations__conversation_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["conversations"],"summary":"Get Conversation History By Id","description":"Get a specific conversation record by ID with email enrichment.","operationId":"get_conversation_history_by_id_organizations__organization_id__projects__project_id__conversations__conversation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"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"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}/close":{"post":{"tags":["conversations"],"summary":"Close Conversation","description":"Close a live chat by hand; while someone holds it only an admin or that\nassignee may close it.","operationId":"close_conversation_organizations__organization_id__projects__project_id__conversations__conversation_id__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"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/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}/whatsapp/templates":{"post":{"tags":["conversations"],"summary":"Send Whatsapp Inbox Template","description":"Send an approved WhatsApp template from inbox when the 24h window is closed.","operationId":"send_whatsapp_inbox_template_organizations__organization_id__projects__project_id__conversations__conversation_id__whatsapp_templates_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWhatsAppInboxTemplateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}/metadata":{"get":{"tags":["conversations"],"summary":"Get Conversation Metadata","description":"Authenticated conversation metadata for dashboard session timing.","operationId":"get_conversation_metadata_organizations__organization_id__projects__project_id__conversations__conversation_id__metadata_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"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/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}/messages":{"get":{"tags":["conversations"],"summary":"Get Conversation Messages","description":"Authenticated transcript endpoint for chat, webvoice, and voice conversations.","operationId":"get_conversation_messages_organizations__organization_id__projects__project_id__conversations__conversation_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of messages to skip","default":0,"title":"Skip"},"description":"Number of messages to skip"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"description":"Maximum messages to return","title":"Limit"},"description":"Maximum messages to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/campaigns/{campaign_id}/report":{"get":{"tags":["conversations"],"summary":"Get Campaign Report","description":"Tabular report for a specific outbound campaign.","operationId":"get_campaign_report_organizations__organization_id__projects__project_id__campaigns__campaign_id__report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g. {\"status\": \"closed\"})","title":"Filters"},"description":"MongoDB compatible query object (e.g. {\"status\": \"closed\"})"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g. {\"created_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g. {\"created_at\": -1})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/inbounds/{inbound_id}/report":{"get":{"tags":["conversations"],"summary":"Get Inbound Report","description":"Tabular report for a specific inbound campaign.","operationId":"get_inbound_report_organizations__organization_id__projects__project_id__inbounds__inbound_id__report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"inbound_id","in":"path","required":true,"schema":{"type":"string","title":"Inbound Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g. {\"status\": \"closed\"})","title":"Filters"},"description":"MongoDB compatible query object (e.g. {\"status\": \"closed\"})"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g. {\"created_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g. {\"created_at\": -1})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/channels/{channel_id}/report":{"get":{"tags":["conversations"],"summary":"Get Channel Report","description":"Tabular report for a specific chat or web voice channel.","operationId":"get_channel_report_organizations__organization_id__projects__project_id__channels__channel_id__report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g. {\"status\": \"closed\"})","title":"Filters"},"description":"MongoDB compatible query object (e.g. {\"status\": \"closed\"})"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g. {\"created_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g. {\"created_at\": -1})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}/monitor-token":{"get":{"tags":["conversations"],"summary":"Get Monitor Token","description":"Get a LiveKit token to monitor (listen/view transcript) a specific call.","operationId":"get_monitor_token_organizations__organization_id__projects__project_id__conversations__conversation_id__monitor_token_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"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"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/{conversation_id}/recording-url":{"get":{"tags":["conversations"],"summary":"Get Recording Signed Url","operationId":"get_recording_signed_url_organizations__organization_id__projects__project_id__conversations__conversation_id__recording_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"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"}}}}}}},"/organizations/{organization_id}/conversations/analytics/content":{"get":{"tags":["conversations"],"summary":"Get Organization Content Analytics","description":"Get content analytics (topics, sentiment, resolution) for organization.","operationId":"get_organization_content_analytics_organizations__organization_id__conversations_analytics_content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of filters","title":"Filters"},"description":"JSON string of filters"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/conversations/analytics/content":{"get":{"tags":["conversations"],"summary":"Get Project Content Analytics","description":"Get content analytics (topics, sentiment, resolution) for project.","operationId":"get_project_content_analytics_organizations__organization_id__projects__project_id__conversations_analytics_content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of filters","title":"Filters"},"description":"JSON string of filters"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/customer-profiles":{"get":{"tags":["customer-profiles"],"summary":"List Customer Profiles","description":"Paginated list of unified customer profiles (one row per real person).","operationId":"list_customer_profiles_organizations__organization_id__projects__project_id__customer_profiles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by channel_type","title":"Channel"},"description":"Filter by channel_type"},{"name":"sort_field","in":"query","required":false,"schema":{"type":"string","default":"last_interaction_at","title":"Sort Field"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"integer","description":"1 for asc, -1 for desc","default":-1,"title":"Sort Order"},"description":"1 for asc, -1 for desc"},{"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"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CustomerProfileListData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["customer-profiles"],"summary":"Create Customer Profile","description":"Add a customer; an existing phone or email updates that customer instead.","operationId":"create_customer_profile_organizations__organization_id__projects__project_id__customer_profiles_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerProfileCreatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CustomerProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/customer-fields":{"get":{"tags":["customer-profiles"],"summary":"Get Customer Fields","operationId":"get_customer_fields_organizations__organization_id__projects__project_id__customer_fields_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_CustomerField__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["customer-profiles"],"summary":"Save Customer Fields","description":"Replace the project's customer fields; stored values stay on customers.","operationId":"save_customer_fields_organizations__organization_id__projects__project_id__customer_fields_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveCustomerFieldsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_CustomerField__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/customer-profiles/{customer_profile_id}":{"get":{"tags":["customer-profiles"],"summary":"Get Customer Profile","operationId":"get_customer_profile_organizations__organization_id__projects__project_id__customer_profiles__customer_profile_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"customer_profile_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CustomerProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["customer-profiles"],"summary":"Update Customer Profile","operationId":"update_customer_profile_organizations__organization_id__projects__project_id__customer_profiles__customer_profile_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"customer_profile_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Profile Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerProfileUpdatePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CustomerProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["customer-profiles"],"summary":"Erase Customer Profile","description":"Erase everything kept about this customer (privacy request); can't be undone.","operationId":"erase_customer_profile_organizations__organization_id__projects__project_id__customer_profiles__customer_profile_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"customer_profile_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/customer-profiles/{customer_profile_id}/chat-conversations":{"get":{"tags":["customer-profiles"],"summary":"Get Customer Profile Chat Conversations","description":"Chat threads for one customer profile (dashboard ⋮ menu and thread picker).","operationId":"get_customer_profile_chat_conversations_organizations__organization_id__projects__project_id__customer_profiles__customer_profile_id__chat_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"customer_profile_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_ChatConversationThreadsData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/customer-profiles/{customer_profile_id}/whatsapp/templates":{"post":{"tags":["customer-profiles"],"summary":"Send Customer Profile Whatsapp Template","description":"Send an approved WhatsApp template to a customer (cross-channel inbox).","operationId":"send_customer_profile_whatsapp_template_organizations__organization_id__projects__project_id__customer_profiles__customer_profile_id__whatsapp_templates_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"customer_profile_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Profile Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWhatsAppInboxTemplateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/customer-profiles/{customer_profile_id}/whatsapp-broadcasts":{"get":{"tags":["customer-profiles"],"summary":"Get Customer Profile Whatsapp Broadcasts","description":"Recent WhatsApp broadcast and inbox template sends for this customer profile\n(newest first).","operationId":"get_customer_profile_whatsapp_broadcasts_organizations__organization_id__projects__project_id__customer_profiles__customer_profile_id__whatsapp_broadcasts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"customer_profile_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Profile Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"description":"Max recent WhatsApp broadcasts to return","default":3,"title":"Limit"},"description":"Max recent WhatsApp broadcasts to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_WhatsAppBroadcastLatestResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/customer-profiles/{customer_profile_id}/timeline":{"get":{"tags":["customer-profiles"],"summary":"Get Customer Profile Timeline","operationId":"get_customer_profile_timeline_organizations__organization_id__projects__project_id__customer_profiles__customer_profile_id__timeline_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"customer_profile_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_TimelineEventResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-export/recipients":{"get":{"tags":["csv-export"],"summary":"Get Csv Export Recipients","description":"Project members who may receive this export (they hold its permission).","operationId":"get_csv_export_recipients_organizations__organization_id__projects__project_id__csv_export_recipients_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"source_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["campaign","inbound","channel","broadcast"],"type":"string"},{"type":"null"}],"title":"Source Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_CsvExportRecipient__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-export":{"post":{"tags":["csv-export"],"summary":"Export Csv","description":"Email a date-range CSV as a signed S3 link.","operationId":"export_csv_organizations__organization_id__projects__project_id__csv_export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvExportRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CsvExportData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-imports/customers":{"post":{"tags":["csv-imports"],"summary":"Import Customers Csv","description":"Queue a CSV import that adds or updates one customer per row.","operationId":"import_customers_csv_organizations__organization_id__projects__project_id__csv_imports_customers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_customers_csv_organizations__organization_id__projects__project_id__csv_imports_customers_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CsvImportStartData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-imports/lists/{list_id}":{"post":{"tags":["csv-imports"],"summary":"Import List Csv","description":"Queue a CSV import that adds one contact per row to the list.","operationId":"import_list_csv_organizations__organization_id__projects__project_id__csv_imports_lists__list_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_list_csv_organizations__organization_id__projects__project_id__csv_imports_lists__list_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CsvImportStartData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-imports/lists":{"post":{"tags":["csv-imports"],"summary":"Import New List Csv","description":"Create a list once the file passes the checks, and queue its import.","operationId":"import_new_list_csv_organizations__organization_id__projects__project_id__csv_imports_lists_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_new_list_csv_organizations__organization_id__projects__project_id__csv_imports_lists_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CsvImportStartData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-imports/header-checks":{"post":{"tags":["csv-imports"],"summary":"Check Csv Header","description":"Check a file's header row before it is uploaded; 400 says why it cannot be\nimported. The import checks it again.","operationId":"check_csv_header_organizations__organization_id__projects__project_id__csv_imports_header_checks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsvHeaderCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-imports":{"get":{"tags":["csv-imports"],"summary":"List Csv Imports","description":"The project's CSV imports into targets the user can read, newest first.","operationId":"list_csv_imports_organizations__organization_id__projects__project_id__csv_imports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CsvImportHistoryPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-imports/active":{"get":{"tags":["csv-imports"],"summary":"Get Active Csv Import","description":"The project's running CSV import, if any.","operationId":"get_active_csv_import_organizations__organization_id__projects__project_id__csv_imports_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Union_CsvImportData__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-imports/{import_id}":{"get":{"tags":["csv-imports"],"summary":"Get Csv Import","description":"Progress and row counts of a CSV import.","operationId":"get_csv_import_organizations__organization_id__projects__project_id__csv_imports__import_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"import_id","in":"path","required":true,"schema":{"type":"string","title":"Import Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CsvImportData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-imports/{import_id}/cancel":{"post":{"tags":["csv-imports"],"summary":"Cancel Csv Import","description":"Stop a queued or running import; rows already saved stay saved.","operationId":"cancel_csv_import_organizations__organization_id__projects__project_id__csv_imports__import_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"import_id","in":"path","required":true,"schema":{"type":"string","title":"Import Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CsvImportData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/csv-imports/{import_id}/failed-rows":{"get":{"tags":["csv-imports"],"summary":"Download Csv Import Failed Rows","description":"The rows a CSV import could not save, as uploaded, with each reason.","operationId":"download_csv_import_failed_rows_organizations__organization_id__projects__project_id__csv_imports__import_id__failed_rows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"import_id","in":"path","required":true,"schema":{"type":"string","title":"Import Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/conversations/{conversation_id}/messages":{"get":{"tags":["messages"],"summary":"Get Conversation Messages","description":"Public widget endpoint for the visitor's own conversation history.\nThe dashboard uses the org-scoped route on the conversation router.","operationId":"get_conversation_messages_projects__project_id__conversations__conversation_id__messages_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"customer_profile_id","in":"query","required":true,"schema":{"type":"string","description":"The visitor's profile id","title":"Customer Profile Id"},"description":"The visitor's profile id"},{"name":"X-Visitor-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Visitor-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/notifications/stream":{"get":{"tags":["notifications"],"summary":"Stream User Notifications","description":"SSE stream for real-time user notifications.","operationId":"stream_user_notifications_users_notifications_stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter events by organization ID","title":"Organization Id"},"description":"Filter events by organization ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/notifications":{"get":{"tags":["notifications"],"summary":"List User Notifications","operationId":"list_user_notifications_users_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by organization ID","title":"Organization Id"},"description":"Filter by organization ID"},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["notifications"],"summary":"Mark Notifications Read","operationId":"mark_notifications_read_users_notifications_patch","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkNotificationsReadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/notifications/{notification_id}":{"patch":{"tags":["notifications"],"summary":"Update User Notification","operationId":"update_user_notification_users_notifications__notification_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotificationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/permissions":{"get":{"tags":["permissions"],"summary":"Get Organization User Permissions","description":"The signed-in user's permissions in the organization, for the dashboard.","operationId":"get_organization_user_permissions_organizations__organization_id__permissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_UserPermissionsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/permissions/catalog":{"get":{"tags":["permissions"],"summary":"Get Permission Catalog","description":"Every permission, grouped by area, for the role editor (the same for\neveryone signed in).","operationId":"get_permission_catalog_permissions_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_PermissionCatalogResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/organizations/{organization_id}/roles":{"get":{"tags":["roles"],"summary":"List Roles","description":"The roles the organization's pickers offer: built-in, then its own.","operationId":"list_roles_organizations__organization_id__roles_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_RolesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["roles"],"summary":"Create Role","operationId":"create_role_organizations__organization_id__roles_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRoleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_RoleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/roles/{role_id}":{"patch":{"tags":["roles"],"summary":"Update Role","operationId":"update_role_organizations__organization_id__roles__role_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_RoleResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["roles"],"summary":"Delete Role","operationId":"delete_role_organizations__organization_id__roles__role_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shopify/install":{"get":{"tags":["shopify"],"summary":"Shopify App Store Install Entry","description":"App URL entry: verify Shopify request and hand off to the dashboard.","operationId":"shopify_app_store_install_entry_shopify_install_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/shopify":{"post":{"tags":["shopify"],"summary":"Shopify Webhook Ingress","description":"Unified Shopify webhook ingress with durable delivery.","operationId":"shopify_webhook_ingress_webhooks_shopify_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/organizations/{organization_id}/projects/{project_id}/shopify/app-embed":{"post":{"tags":["shopify"],"summary":"Prepare Shopify Storefront App Embed","description":"Bind a webchat channel to Shopify and return the theme App Embed deep link.","operationId":"prepare_shopify_storefront_app_embed_organizations__organization_id__projects__project_id__shopify_app_embed_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShopifyAppEmbedPrepareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/google-ads-leads/{integration_id}":{"post":{"tags":["google-ads-leads"],"summary":"Google Ads Lead Form Webhook","description":"Public Google Ads lead form webhook. Auth is the google_key in the JSON body.","operationId":"google_ads_lead_form_webhook_webhooks_google_ads_leads__integration_id__post","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/local-services/integrations/{integration_id}/settings":{"put":{"tags":["local-services"],"summary":"Update Local Services Settings","description":"AI replies with a chat workflow, or off.","operationId":"update_local_services_settings_organizations__organization_id__projects__project_id__local_services_integrations__integration_id__settings_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/one-time-payment-link":{"post":{"tags":["billing"],"summary":"Create Payment Link","operationId":"create_payment_link_organizations__organization_id__billing_one_time_payment_link_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_PaymentLinkData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/payments":{"get":{"tags":["billing"],"summary":"Get Payments","operationId":"get_payments_organizations__organization_id__billing_payments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_PaymentsPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/payments/sync":{"post":{"tags":["billing"],"summary":"Sync Payments","operationId":"sync_payments_organizations__organization_id__billing_payments_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_SyncResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/payments/{payment_id}/invoice":{"get":{"tags":["billing"],"summary":"Get Invoice","operationId":"get_invoice_organizations__organization_id__billing_payments__payment_id__invoice_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/subscriptions":{"post":{"tags":["billing"],"summary":"Create Subscription","operationId":"create_subscription_organizations__organization_id__billing_subscriptions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubscriptionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CreateSubscriptionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/subscriptions/sync":{"post":{"tags":["billing"],"summary":"Sync Subscriptions","operationId":"sync_subscriptions_organizations__organization_id__billing_subscriptions_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_SyncResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/subscriptions/active":{"get":{"tags":["billing"],"summary":"Get Active Subscription","operationId":"get_active_subscription_organizations__organization_id__billing_subscriptions_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_ActiveSubscriptionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/subscriptions/{subscription_id}":{"delete":{"tags":["billing"],"summary":"Cancel Subscription","operationId":"cancel_subscription_organizations__organization_id__billing_subscriptions__subscription_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}},{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_SubscriptionChangeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/subscriptions/{subscription_id}/resume":{"post":{"tags":["billing"],"summary":"Resume Subscription","operationId":"resume_subscription_organizations__organization_id__billing_subscriptions__subscription_id__resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}},{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_SubscriptionChangeResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/customer-portal":{"post":{"tags":["billing"],"summary":"Open Customer Portal","operationId":"open_customer_portal_organizations__organization_id__billing_customer_portal_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CustomerPortalData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/{provider}":{"post":{"tags":["billing"],"summary":"Payment Webhook","description":"2xx acknowledges the delivery; 5xx asks the provider to redeliver it.","operationId":"payment_webhook_webhooks__provider__post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/billing/entitlements":{"get":{"tags":["billing"],"summary":"Get Billing Entitlements","operationId":"get_billing_entitlements_organizations__organization_id__billing_entitlements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_EntitlementsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/handover-agents":{"get":{"tags":["handover-agents"],"summary":"List Handover Agents","operationId":"list_handover_agents_organizations__organization_id__projects__project_id__handover_agents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["handover-agents"],"summary":"Create Handover Agent","description":"Add a team member or an external contact to the roster.","operationId":"create_handover_agent_organizations__organization_id__projects__project_id__handover_agents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateHandoverAgentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/handover-agents/performance":{"get":{"tags":["handover-agents"],"summary":"Get Handover Agent Performance","description":"Handover totals and per-agent chat and voice performance.","operationId":"get_handover_agent_performance_organizations__organization_id__projects__project_id__handover_agents_performance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project 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"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/HandoverAgentChannel"},{"type":"null"}],"title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/handover-agents/can-text":{"get":{"tags":["handover-agents"],"summary":"Can Text Handover Agents","description":"Whether the organization has a number to text team members off hours.","operationId":"can_text_handover_agents_organizations__organization_id__projects__project_id__handover_agents_can_text_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/handover-agents/me":{"get":{"tags":["handover-agents"],"summary":"Get My Handover Agent","description":"The current user's agent record, or null when they are not an agent here.","operationId":"get_my_handover_agent_organizations__organization_id__projects__project_id__handover_agents_me_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Union_dict__NoneType__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/handover-agents/me/enabled":{"put":{"tags":["handover-agents"],"summary":"Update My Handover Agent Enabled","description":"Switch the current user on or off for handovers. Needs only handovers:read:\nit changes nothing but the caller's own availability.","operationId":"update_my_handover_agent_enabled_organizations__organization_id__projects__project_id__handover_agents_me_enabled_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateHandoverAgentEnabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/handover-agents/{agent_id}":{"patch":{"tags":["handover-agents"],"summary":"Update Handover Agent","description":"Edit an agent's name, phone number, channels, working hours or\noff-hours handover texts.","operationId":"update_handover_agent_organizations__organization_id__projects__project_id__handover_agents__agent_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateHandoverAgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["handover-agents"],"summary":"Delete Handover Agent","description":"Remove an agent from the roster; its handover history is kept.","operationId":"delete_handover_agent_organizations__organization_id__projects__project_id__handover_agents__agent_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project 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/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/handover-agents/{agent_id}/enabled":{"put":{"tags":["handover-agents"],"summary":"Update Handover Agent Enabled","description":"Switch any agent on or off, including external contacts.","operationId":"update_handover_agent_enabled_organizations__organization_id__projects__project_id__handover_agents__agent_id__enabled_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateHandoverAgentEnabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/handover-agents/{agent_id}/handovers":{"get":{"tags":["handover-agents"],"summary":"List Handover Agent Handovers","description":"One agent's recent handovers with their outcome for that agent.","operationId":"list_handover_agent_handovers_organizations__organization_id__projects__project_id__handover_agents__agent_id__handovers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent 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"}},{"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":{"$ref":"#/components/schemas/ResponseModel_List_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"tags":["health","health"],"summary":"Health Check","description":"Report the app and database status; 503 when MongoDB is unreachable, so\nthe container healthcheck fails.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_HealthInfo_"}}}}}}},"/plans":{"get":{"tags":["plans"],"summary":"Get Plans","description":"Active plans for pricing pages and checkout. (PUBLIC ENDPOINT)","operationId":"get_plans_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_PublicPlan__"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/tickets":{"get":{"tags":["tickets"],"summary":"Get Tickets","operationId":"get_tickets_organizations__organization_id__projects__project_id__tickets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g., {\"name\": \"John\", \"status\": \"open\"})","title":"Filters"},"description":"MongoDB compatible query object (e.g., {\"name\": \"John\", \"status\": \"open\"})"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_TicketListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tickets"],"summary":"Create Ticket","description":"Create a support ticket from the admin dashboard.","operationId":"create_ticket_organizations__organization_id__projects__project_id__tickets_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTicketRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_TicketResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/tickets/stats":{"get":{"tags":["tickets"],"summary":"Get Organization Ticket Stats","description":"Get ticket statistics rolled up across the organization.","operationId":"get_organization_ticket_stats_organizations__organization_id__tickets_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filters"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_TicketStatsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/tickets/stats":{"get":{"tags":["tickets"],"summary":"Get Ticket Stats","operationId":"get_ticket_stats_organizations__organization_id__projects__project_id__tickets_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g., {\"name\": \"John\", \"status\": \"open\", \"created_at\": {\"$gte\": \"2024-01-01\", \"$lte\": \"2024-12-31\"}})","title":"Filters"},"description":"MongoDB compatible query object (e.g., {\"name\": \"John\", \"status\": \"open\", \"created_at\": {\"$gte\": \"2024-01-01\", \"$lte\": \"2024-12-31\"}})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_TicketStatsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/tickets/{ticket_id}":{"get":{"tags":["tickets"],"summary":"Get Ticket","operationId":"get_ticket_organizations__organization_id__projects__project_id__tickets__ticket_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_TicketResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["tickets"],"summary":"Update Ticket","operationId":"update_ticket_organizations__organization_id__projects__project_id__tickets__ticket_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTicketRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_TicketResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/bookings":{"get":{"tags":["bookings"],"summary":"Get Bookings","operationId":"get_bookings_organizations__organization_id__projects__project_id__bookings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":20,"title":"Limit"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filters"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_BookingListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/bookings/stats":{"get":{"tags":["bookings"],"summary":"Get Organization Booking Stats","operationId":"get_organization_booking_stats_organizations__organization_id__bookings_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filters"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_BookingStatsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/bookings/stats":{"get":{"tags":["bookings"],"summary":"Get Booking Stats","operationId":"get_booking_stats_organizations__organization_id__projects__project_id__bookings_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filters"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_BookingStatsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/bookings/{booking_id}":{"get":{"tags":["bookings"],"summary":"Get Booking","operationId":"get_booking_organizations__organization_id__projects__project_id__bookings__booking_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_BookingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["bookings"],"summary":"Update Booking","operationId":"update_booking_organizations__organization_id__projects__project_id__bookings__booking_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBookingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_BookingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/bookings/{booking_id}/status":{"post":{"tags":["bookings"],"summary":"Set Booking Status","description":"Mark a booking confirmed, completed or a no-show (our record only).","operationId":"set_booking_status_organizations__organization_id__projects__project_id__bookings__booking_id__status_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_BookingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/channels/{channel_id}/embed-config":{"get":{"tags":["widgets"],"summary":"Get Channel Embed Config","description":"Public widget/embed config by channel ID, for webchat and webvoice.","operationId":"get_channel_embed_config_channels__channel_id__embed_config_get","parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Union_WidgetConfigResponse__WebVoiceWidgetConfigResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/proactive-prompt":{"post":{"tags":["widgets"],"summary":"Get Proactive Prompt","description":"Public: a proactive prompt for the current page, found with RAG.","operationId":"get_proactive_prompt_organizations__organization_id__projects__project_id__proactive_prompt_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProactivePromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_ProactivePromptResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/customer-profile-init":{"post":{"tags":["widgets"],"summary":"Init Customer Profile","description":"Public: ensure a profile for this browser visitor and return its token.\nPlayground init is for signed-in users with workflow_definitions:read.","operationId":"init_customer_profile_organizations__organization_id__projects__project_id__customer_profile_init_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerProfileInitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CustomerProfileInitResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/customer-profiles/{customer_profile_id}/chat-conversations":{"get":{"tags":["widgets"],"summary":"Get Widget Customer Profile Chat Conversations","description":"Public widget endpoint: recent chat threads of the current browser profile.","operationId":"get_widget_customer_profile_chat_conversations_projects__project_id__customer_profiles__customer_profile_id__chat_conversations_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"customer_profile_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Profile Id"}},{"name":"X-Visitor-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Visitor-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_ChatConversationThreadsData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/industry-setup":{"get":{"tags":["industry_setup"],"summary":"Get Industry Setup","operationId":"get_industry_setup_organizations__organization_id__projects__project_id__industry_setup_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["industry_setup"],"summary":"Save Industry Setup","operationId":"save_industry_setup_organizations__organization_id__projects__project_id__industry_setup_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveIndustrySetupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/industry-setup/dispositions":{"put":{"tags":["industry_setup"],"summary":"Save Disposition Lists","operationId":"save_disposition_lists_organizations__organization_id__projects__project_id__industry_setup_dispositions_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveDispositionListsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["industry_setup"],"summary":"Reset Disposition Lists","operationId":"reset_disposition_lists_organizations__organization_id__projects__project_id__industry_setup_dispositions_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/contact/inquiries":{"post":{"tags":["inquiries"],"summary":"Create Inquiry","operationId":"create_inquiry_contact_inquiries_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InquiryCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/channels/{channel_id}/catalog/embed-config":{"get":{"tags":["catalogs"],"summary":"Get Catalog Channel Embed Config","description":"Public catalog embed config by channel id (catalog-app entry point).","operationId":"get_catalog_channel_embed_config_channels__channel_id__catalog_embed_config_get","parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/catalogs":{"get":{"tags":["catalogs"],"summary":"List Catalogs","description":"List catalogs with fixed catalog filters and pagination.","operationId":"list_catalogs_organizations__organization_id__projects__project_id__catalogs_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Records to skip (same as leads/tickets)","default":0,"title":"Skip"},"description":"Records to skip (same as leads/tickets)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size (default 20; use with skip)","default":20,"title":"Limit"},"description":"Page size (default 20; use with skip)"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Catalog filters as JSON: {\"catalog_location_id\":\"...\"}, {\"city_key\":\"...\"}, or {\"_id\":\"...\"}","title":"Filters"},"description":"Catalog filters as JSON: {\"catalog_location_id\":\"...\"}, {\"city_key\":\"...\"}, or {\"_id\":\"...\"}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["catalogs"],"summary":"Create Catalog Entry","operationId":"create_catalog_entry_organizations__organization_id__projects__project_id__catalogs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogItemPayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/catalogs/{catalog_id}":{"get":{"tags":["catalogs"],"summary":"Get Catalog Entry","operationId":"get_catalog_entry_organizations__organization_id__projects__project_id__catalogs__catalog_id__get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"catalog_id","in":"path","required":true,"schema":{"type":"string","title":"Catalog Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["catalogs"],"summary":"Update Catalog Entry","operationId":"update_catalog_entry_organizations__organization_id__projects__project_id__catalogs__catalog_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"catalog_id","in":"path","required":true,"schema":{"type":"string","title":"Catalog Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogItemPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalogs"],"summary":"Delete Catalog Entry","operationId":"delete_catalog_entry_organizations__organization_id__projects__project_id__catalogs__catalog_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"catalog_id","in":"path","required":true,"schema":{"type":"string","title":"Catalog Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/catalog-locations":{"get":{"tags":["catalog_locations"],"summary":"List Catalog Locations","operationId":"list_catalog_locations_organizations__organization_id__projects__project_id__catalog_locations_get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["catalog_locations"],"summary":"Create Catalog Location","operationId":"create_catalog_location_organizations__organization_id__projects__project_id__catalog_locations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogLocationPayload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/catalog-locations/{location_id}":{"put":{"tags":["catalog_locations"],"summary":"Update Catalog Location","operationId":"update_catalog_location_organizations__organization_id__projects__project_id__catalog_locations__location_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogLocationPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalog_locations"],"summary":"Delete Catalog Location","operationId":"delete_catalog_location_organizations__organization_id__projects__project_id__catalog_locations__location_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"location_id","in":"path","required":true,"schema":{"type":"string","title":"Location Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/ai-actions":{"get":{"tags":["ai_actions"],"summary":"Get Ai Actions","operationId":"get_ai_actions_organizations__organization_id__projects__project_id__ai_actions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_AiAction__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["ai_actions"],"summary":"Create Ai Action","operationId":"create_ai_action_organizations__organization_id__projects__project_id__ai_actions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Action Data"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_AiAction_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/ai-actions/{action_id}":{"get":{"tags":["ai_actions"],"summary":"Get Ai Action","operationId":"get_ai_action_organizations__organization_id__projects__project_id__ai_actions__action_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_AiAction_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["ai_actions"],"summary":"Update Ai Action","operationId":"update_ai_action_organizations__organization_id__projects__project_id__ai_actions__action_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiActionForm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ai_actions"],"summary":"Delete Ai Action","operationId":"delete_ai_action_organizations__organization_id__projects__project_id__ai_actions__action_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/ai-actions/test":{"post":{"tags":["ai_actions"],"summary":"Test Ai Action","operationId":"test_ai_action_organizations__organization_id__projects__project_id__ai_actions_test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestAiActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/mcp-servers":{"get":{"tags":["mcp_servers"],"summary":"List Mcp Servers","operationId":"list_mcp_servers_organizations__organization_id__projects__project_id__mcp_servers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_McpServer__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["mcp_servers"],"summary":"Create Mcp Server","operationId":"create_mcp_server_organizations__organization_id__projects__project_id__mcp_servers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMcpServerRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_McpServer_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/mcp-servers/{server_id}":{"get":{"tags":["mcp_servers"],"summary":"Get Mcp Server","operationId":"get_mcp_server_organizations__organization_id__projects__project_id__mcp_servers__server_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_McpServer_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["mcp_servers"],"summary":"Update Mcp Server","operationId":"update_mcp_server_organizations__organization_id__projects__project_id__mcp_servers__server_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMcpServerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_McpServer_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["mcp_servers"],"summary":"Delete Mcp Server","operationId":"delete_mcp_server_organizations__organization_id__projects__project_id__mcp_servers__server_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_Dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/mcp-servers/{server_id}/sync":{"post":{"tags":["mcp_servers"],"summary":"Sync Mcp Server Tools","operationId":"sync_mcp_server_tools_organizations__organization_id__projects__project_id__mcp_servers__server_id__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"server_id","in":"path","required":true,"schema":{"type":"string","title":"Server Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_McpServer_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/invitations":{"post":{"tags":["invitations"],"summary":"Create Organization Invitation","operationId":"create_organization_invitation_organizations__organization_id__invitations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendInvitationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["invitations"],"summary":"Get Organization Invitations","description":"The organization's pending and expired invitations.","operationId":"get_organization_invitations_organizations__organization_id__invitations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/invitations/{invitation_id}/accept":{"post":{"tags":["invitations"],"summary":"Accept Invitation","operationId":"accept_invitation_organizations__organization_id__invitations__invitation_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/invitations/{invitation_id}":{"delete":{"tags":["invitations"],"summary":"Delete Organization Invitation","operationId":"delete_organization_invitation_organizations__organization_id__invitations__invitation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["invitations"],"summary":"Get Invitation Details","description":"Public: the invitee may not be signed in yet.","operationId":"get_invitation_details_organizations__organization_id__invitations__invitation_id__get","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/lists/{list_id}/contacts":{"get":{"tags":["contacts"],"summary":"Get Contacts","operationId":"get_contacts_organizations__organization_id__projects__project_id__lists__list_id__contacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of filters","title":"Filters"},"description":"JSON string of filters"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of sort criteria","title":"Sort"},"description":"JSON string of sort criteria"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["contacts"],"summary":"Create Contact","operationId":"create_contact_organizations__organization_id__projects__project_id__lists__list_id__contacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/lists/{list_id}/contacts/{contact_id}":{"patch":{"tags":["contacts"],"summary":"Update Contact","operationId":"update_contact_organizations__organization_id__projects__project_id__lists__list_id__contacts__contact_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contacts"],"summary":"Delete Contact","operationId":"delete_contact_organizations__organization_id__projects__project_id__lists__list_id__contacts__contact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/lists/{list_id}/contacts/bulk-delete":{"post":{"tags":["contacts"],"summary":"Bulk Delete Contacts","operationId":"bulk_delete_contacts_organizations__organization_id__projects__project_id__lists__list_id__contacts_bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteContactsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/lists/contact-fields":{"get":{"tags":["lists"],"summary":"Get List Contact Fields","description":"Return the complete contact field catalog for the selected lists.","operationId":"get_list_contact_fields_organizations__organization_id__projects__project_id__lists_contact_fields_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_ids","in":"query","required":true,"schema":{"type":"string","description":"Comma-separated list IDs","title":"List Ids"},"description":"Comma-separated list IDs"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/lists":{"get":{"tags":["lists"],"summary":"Get Lists","operationId":"get_lists_organizations__organization_id__projects__project_id__lists_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"created_at","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["lists"],"summary":"Create List","operationId":"create_list_organizations__organization_id__projects__project_id__lists_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/list-syncs":{"get":{"tags":["lists"],"summary":"Get List Syncs","description":"Every list of the project with a sync source (CRM, Sheets or lead form), its\nstatus and latest run.","operationId":"get_list_syncs_organizations__organization_id__projects__project_id__list_syncs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/lists/{list_id}":{"get":{"tags":["lists"],"summary":"Get List By Id","description":"Get a specific list by ID (includes contact_sync attach).","operationId":"get_list_by_id_organizations__organization_id__projects__project_id__lists__list_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["lists"],"summary":"Update List","description":"Update a list (optional contact_sync attach: omit / null / save payload).","operationId":"update_list_organizations__organization_id__projects__project_id__lists__list_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lists"],"summary":"Delete List","description":"Delete a list and all its customers.","operationId":"delete_list_organizations__organization_id__projects__project_id__lists__list_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/lists/{list_id}/history":{"get":{"tags":["lists"],"summary":"Get List History","operationId":"get_list_history_organizations__organization_id__projects__project_id__lists__list_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/lists/{list_id}/sync-trigger":{"post":{"tags":["lists"],"summary":"Trigger List Sync","operationId":"trigger_list_sync_organizations__organization_id__projects__project_id__lists__list_id__sync_trigger_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/campaigns":{"get":{"tags":["campaigns"],"summary":"Get Campaigns","operationId":"get_campaigns_organizations__organization_id__projects__project_id__campaigns_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g., {\"name\": \"Campaign Name\", \"status\": \"running\"})","title":"Filters"},"description":"MongoDB compatible query object (e.g., {\"name\": \"Campaign Name\", \"status\": \"running\"})"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})"},{"name":"projection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of projection criteria","title":"Projection"},"description":"JSON string of projection criteria"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["campaigns"],"summary":"Create Campaign","operationId":"create_campaign_organizations__organization_id__projects__project_id__campaigns_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/campaigns/{campaign_id}":{"get":{"tags":["campaigns"],"summary":"Get Campaign","operationId":"get_campaign_organizations__organization_id__projects__project_id__campaigns__campaign_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["campaigns"],"summary":"Update Campaign","operationId":"update_campaign_organizations__organization_id__projects__project_id__campaigns__campaign_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["campaigns"],"summary":"Delete Campaign","operationId":"delete_campaign_organizations__organization_id__projects__project_id__campaigns__campaign_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/campaigns/{campaign_id}/retry-call":{"post":{"tags":["campaigns"],"summary":"Retry Single Call","description":"Retry a failed call by phone number: started now when capacity and\nschedule allow, otherwise queued for the campaign tick.","operationId":"retry_single_call_organizations__organization_id__projects__project_id__campaigns__campaign_id__retry_call_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/campaigns/{campaign_id}/calls":{"post":{"tags":["campaigns"],"summary":"Create Campaign Call","description":"Queue a voice outbound call on a campaign, following its calling hours and capacity.\n\nInside calling hours with a free slot the call starts now; otherwise it waits in the\ncampaign queue. Create the campaign in the dashboard (workflow/static + caller ID).\nLists and starting the campaign are only required for bulk dialing, not this\nendpoint.\nRequires a Bearer API key with calls:create scope for the organization and project.","operationId":"create_campaign_call_organizations__organization_id__projects__project_id__campaigns__campaign_id__calls_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CreateCallResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/campaigns/{campaign_id}/clone":{"post":{"tags":["campaigns"],"summary":"Clone Campaign","operationId":"clone_campaign_organizations__organization_id__projects__project_id__campaigns__campaign_id__clone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/campaigns/{campaign_id}/overview":{"get":{"tags":["campaigns"],"summary":"Get Campaign Overview","operationId":"get_campaign_overview_organizations__organization_id__projects__project_id__campaigns__campaign_id__overview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from date","title":"Start Date"},"description":"Filter from date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to date","title":"End Date"},"description":"Filter to date"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by call status","title":"Status"},"description":"Filter by call status"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_CampaignOverviewResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts":{"get":{"tags":["broadcasts"],"summary":"List Broadcasts","operationId":"list_broadcasts_organizations__organization_id__projects__project_id__broadcasts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g., {\"status\": \"running\"})","title":"Filters"},"description":"MongoDB compatible query object (e.g., {\"status\": \"running\"})"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g., {\"created_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g., {\"created_at\": -1})"},{"name":"projection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON string of projection criteria","title":"Projection"},"description":"JSON string of projection criteria"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["broadcasts"],"summary":"Create Broadcast","operationId":"create_broadcast_organizations__organization_id__projects__project_id__broadcasts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}":{"get":{"tags":["broadcasts"],"summary":"Get Broadcast","operationId":"get_broadcast_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["broadcasts"],"summary":"Update Broadcast","operationId":"update_broadcast_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["broadcasts"],"summary":"Delete Broadcast","description":"Soft-delete a broadcast and cancel its pending recipients.","operationId":"delete_broadcast_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/launch":{"post":{"tags":["broadcasts"],"summary":"Launch Broadcast","description":"Launch a draft or paused broadcast.","operationId":"launch_broadcast_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__launch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/pause":{"post":{"tags":["broadcasts"],"summary":"Pause Broadcast","operationId":"pause_broadcast_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/stop":{"post":{"tags":["broadcasts"],"summary":"Stop Broadcast","description":"Stop a broadcast and cancel its pending recipients.","operationId":"stop_broadcast_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/relaunch":{"post":{"tags":["broadcasts"],"summary":"Relaunch Broadcast","description":"Clear and recreate recipients, then relaunch a completed broadcast.","operationId":"relaunch_broadcast_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__relaunch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/clone":{"post":{"tags":["broadcasts"],"summary":"Clone Broadcast","description":"Clone a broadcast as a new draft.","operationId":"clone_broadcast_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__clone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/analytics":{"get":{"tags":["broadcasts"],"summary":"Broadcast Analytics","operationId":"broadcast_analytics_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from date","title":"Start Date"},"description":"Filter from date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to date","title":"End Date"},"description":"Filter to date"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by delivery status","title":"Status"},"description":"Filter by delivery status"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/recipients":{"get":{"tags":["broadcasts"],"summary":"Broadcast Recipients","operationId":"broadcast_recipients_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__recipients_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of recipients to skip","default":0,"title":"Skip"},"description":"Number of recipients to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of recipients to return","default":20,"title":"Limit"},"description":"Number of recipients to return"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by delivery status","title":"Status"},"description":"Filter by delivery status"},{"name":"phone_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by phone number","title":"Phone Number"},"description":"Filter by phone number"},{"name":"customer_profile_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by customer profile","title":"Customer Profile Id"},"description":"Filter by customer profile"},{"name":"sent_at_gte","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter recipients last attempted at or after this time","title":"Sent At Gte"},"description":"Filter recipients last attempted at or after this time"},{"name":"sent_at_lte","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter recipients last attempted at or before this time","title":"Sent At Lte"},"description":"Filter recipients last attempted at or before this time"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g. {\"sent_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g. {\"sent_at\": -1})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/recipients/{broadcast_queue_id}/history":{"get":{"tags":["broadcasts"],"summary":"Broadcast Recipient History","description":"Get preserved WhatsApp send attempts for one broadcast recipient.","operationId":"broadcast_recipient_history_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__recipients__broadcast_queue_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}},{"name":"broadcast_queue_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Queue Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of attempts to skip","default":0,"title":"Skip"},"description":"Number of attempts to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of attempts to return","default":20,"title":"Limit"},"description":"Number of attempts to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/recipients/history":{"get":{"tags":["broadcasts"],"summary":"Broadcast Recipient History By Identity","description":"Get send history for a broadcast recipient without a queue row.","operationId":"broadcast_recipient_history_by_identity_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__recipients_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}},{"name":"phone_number","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},{"name":"customer_profile_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Profile Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of attempts to skip","default":0,"title":"Skip"},"description":"Number of attempts to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of attempts to return","default":20,"title":"Limit"},"description":"Number of attempts to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/recipients/{broadcast_queue_id}/resend":{"post":{"tags":["broadcasts"],"summary":"Resend Broadcast Recipient","operationId":"resend_broadcast_recipient_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__recipients__broadcast_queue_id__resend_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}},{"name":"broadcast_queue_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Queue Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/report":{"get":{"tags":["broadcasts"],"summary":"Broadcast Report","operationId":"broadcast_report_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of report rows to skip","default":0,"title":"Skip"},"description":"Number of report rows to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"exclusiveMinimum":0,"description":"Number of report rows to return","default":100,"title":"Limit"},"description":"Number of report rows to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Report filters","title":"Filters"},"description":"Report filters"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Report sort criteria","title":"Sort"},"description":"Report sort criteria"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/integrations":{"post":{"tags":["integrations"],"summary":"Create Integration","operationId":"create_integration_organizations__organization_id__projects__project_id__integrations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntegrationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["integrations"],"summary":"List Integrations","operationId":"list_integrations_organizations__organization_id__projects__project_id__integrations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible query object (e.g., {\"name\": \"John\", \"status\": \"active\"})","title":"Filters"},"description":"MongoDB compatible query object (e.g., {\"name\": \"John\", \"status\": \"active\"})"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})","title":"Sort"},"description":"MongoDB compatible sort object (e.g., {\"name\": 1, \"created_at\": -1})"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/integrations/{integration_id}":{"get":{"tags":["integrations"],"summary":"Get Integration","operationId":"get_integration_organizations__organization_id__projects__project_id__integrations__integration_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"unmask","in":"query","required":false,"schema":{"type":"boolean","description":"Return the Google Sheets access token unmasked (for the Google Picker)","default":false,"title":"Unmask"},"description":"Return the Google Sheets access token unmasked (for the Google Picker)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["integrations"],"summary":"Patch Integration","operationId":"patch_integration_organizations__organization_id__projects__project_id__integrations__integration_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIntegrationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["integrations"],"summary":"Delete Integration","operationId":"delete_integration_organizations__organization_id__projects__project_id__integrations__integration_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/integrations/{integration_id}/sheets":{"get":{"tags":["integrations"],"summary":"List Google Sheets","operationId":"list_google_sheets_organizations__organization_id__projects__project_id__integrations__integration_id__sheets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/integrations/{integration_id}/slack/channels":{"get":{"tags":["integrations"],"summary":"List Slack Channels","description":"List Slack channels visible to the integration bot.","operationId":"list_slack_channels_organizations__organization_id__projects__project_id__integrations__integration_id__slack_channels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/integrations/{integration_id}/slack/users":{"get":{"tags":["integrations"],"summary":"List Slack Users","description":"List Slack workspace members visible to the integration bot.","operationId":"list_slack_users_organizations__organization_id__projects__project_id__integrations__integration_id__slack_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/integrations/{integration_id}/sheets/{sheet_id}/tabs":{"get":{"tags":["integrations"],"summary":"List Google Sheet Tabs","operationId":"list_google_sheet_tabs_organizations__organization_id__projects__project_id__integrations__integration_id__sheets__sheet_id__tabs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"sheet_id","in":"path","required":true,"schema":{"type":"string","title":"Sheet Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/integrations/{integration_id}/sheets/{sheet_id}/columns":{"get":{"tags":["integrations"],"summary":"Get Sheet Columns","operationId":"get_sheet_columns_organizations__organization_id__projects__project_id__integrations__integration_id__sheets__sheet_id__columns_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"sheet_id","in":"path","required":true,"schema":{"type":"string","title":"Sheet Id"}},{"name":"sheet_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sheet Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/integration-definitions":{"get":{"tags":["integrations"],"summary":"List Integration Definitions","description":"List all integration definitions (including coming soon)","operationId":"list_integration_definitions_organizations__organization_id__projects__project_id__integration_definitions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/integrations/actions/{action_name}":{"post":{"tags":["integrations"],"summary":"Execute Integration Action","description":"Execute a generic integration action without an integration instance (e.g.\ncredential validation)","operationId":"execute_integration_action_organizations__organization_id__projects__project_id__integrations_actions__action_name__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"action_name","in":"path","required":true,"schema":{"type":"string","title":"Action Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/integrations/{integration_id}/actions/{action_name}":{"post":{"tags":["integrations"],"summary":"Execute Integration Instance Action","description":"Execute an action bound to a specific integration instance (e.g. OAuth\nauthorize/callback, resource picking, save)","operationId":"execute_integration_instance_action_organizations__organization_id__projects__project_id__integrations__integration_id__actions__action_name__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}},{"name":"action_name","in":"path","required":true,"schema":{"type":"string","title":"Action Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/nexhealth/{integration_id}":{"post":{"tags":["NexHealth Webhooks"],"summary":"Receive Nexhealth Webhook","operationId":"receive_nexhealth_webhook_webhooks_nexhealth__integration_id__post","parameters":[{"name":"integration_id","in":"path","required":true,"schema":{"type":"string","title":"Integration Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/housecall-pro":{"post":{"tags":["Housecall Pro Webhooks"],"summary":"Receive Housecall Pro Webhook","operationId":"receive_housecall_pro_webhook_webhooks_housecall_pro_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/callbacks/voice/plivo/answer":{"get":{"tags":["Voice Webhooks"],"summary":"Get Plivo Answer Xml","description":"Serve Plivo answer XML dynamically from audio key.","operationId":"get_plivo_answer_xml_callbacks_voice_plivo_answer_get","parameters":[{"name":"audio_key","in":"query","required":true,"schema":{"type":"string","title":"Audio Key"}},{"name":"conversation_id","in":"query","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"signature","in":"query","required":true,"schema":{"type":"string","title":"Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/callbacks/voice/telnyx/answer":{"get":{"tags":["Voice Webhooks"],"summary":"Get Telnyx Answer Xml","description":"Serve Telnyx TeXML Play/Hangup instructions from audio key.","operationId":"get_telnyx_answer_xml_callbacks_voice_telnyx_answer_get","parameters":[{"name":"audio_key","in":"query","required":true,"schema":{"type":"string","title":"Audio Key"}},{"name":"conversation_id","in":"query","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"signature","in":"query","required":true,"schema":{"type":"string","title":"Signature"}},{"name":"CallSid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callsid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/callbacks/voice":{"post":{"tags":["Voice Webhooks"],"summary":"Handle Voice Status Callback","description":"Apply a Twilio, Plivo or Telnyx (TeXML, Twilio-shaped) call status callback.","operationId":"handle_voice_status_callback_callbacks_voice_post","parameters":[{"name":"provider","in":"query","required":true,"schema":{"enum":["twilio","plivo","telnyx"],"type":"string","title":"Provider"}},{"name":"conversation_id","in":"query","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"signature","in":"query","required":true,"schema":{"type":"string","title":"Signature"}}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_handle_voice_status_callback_callbacks_voice_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/voice-lab":{"post":{"tags":["Voice Lab"],"summary":"Generate Voice Lab Sample","description":"Synthesize the text with the given TTS settings and return the audio.","operationId":"generate_voice_lab_sample_organizations__organization_id__projects__project_id__voice_lab_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceLabSampleRequest"}}}},"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/ai-prompts/history":{"get":{"tags":["ai-prompt-generator"],"summary":"Get Prompt History","operationId":"get_prompt_history_organizations__organization_id__projects__project_id__ai_prompts_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_PromptHistoryListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/ai-prompts/history/{history_id}":{"get":{"tags":["ai-prompt-generator"],"summary":"Get Prompt History Item","operationId":"get_prompt_history_item_organizations__organization_id__projects__project_id__ai_prompts_history__history_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"history_id","in":"path","required":true,"schema":{"type":"string","title":"History Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_PromptHistoryItemResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/ai-prompts":{"post":{"tags":["ai-prompt-generator"],"summary":"Generate Prompt","operationId":"generate_prompt_organizations__organization_id__projects__project_id__ai_prompts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptGenerationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_PromptGenerationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/inbounds":{"post":{"tags":["inbounds"],"summary":"Create Inbound","operationId":"create_inbound_organizations__organization_id__projects__project_id__inbounds_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["inbounds"],"summary":"Get Inbounds","operationId":"get_inbounds_organizations__organization_id__projects__project_id__inbounds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filters"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}},{"name":"projection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projection"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/inbounds/{inbound_id}":{"get":{"tags":["inbounds"],"summary":"Get Inbound","operationId":"get_inbound_organizations__organization_id__projects__project_id__inbounds__inbound_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"inbound_id","in":"path","required":true,"schema":{"type":"string","title":"Inbound Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["inbounds"],"summary":"Update Inbound","operationId":"update_inbound_organizations__organization_id__projects__project_id__inbounds__inbound_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"inbound_id","in":"path","required":true,"schema":{"type":"string","title":"Inbound Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inbounds"],"summary":"Delete Inbound","operationId":"delete_inbound_organizations__organization_id__projects__project_id__inbounds__inbound_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"inbound_id","in":"path","required":true,"schema":{"type":"string","title":"Inbound Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/inbounds/{inbound_id}/overview":{"get":{"tags":["inbounds"],"summary":"Get Inbound Overview","operationId":"get_inbound_overview_organizations__organization_id__projects__project_id__inbounds__inbound_id__overview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"inbound_id","in":"path","required":true,"schema":{"type":"string","title":"Inbound Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter from date","title":"Start Date"},"description":"Filter from date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter to date","title":"End Date"},"description":"Filter to date"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by call status","title":"Status"},"description":"Filter by call status"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_InboundOverviewResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/webvoice/start":{"post":{"tags":["web_voice"],"summary":"Start Web Voice Conversation","description":"Dispatch the web voice agent and return the caller's LiveKit join token.","operationId":"start_web_voice_conversation_organizations__organization_id__projects__project_id__webvoice_start_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Visitor-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Visitor-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebVoiceStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/webvoice/playground/start":{"post":{"tags":["web_voice"],"summary":"Start Web Voice Playground","description":"Start a Voice Lab test call for a dashboard user.","operationId":"start_web_voice_playground_organizations__organization_id__projects__project_id__webvoice_playground_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebVoicePlaygroundStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/webvoice/playground/variables":{"get":{"tags":["web_voice"],"summary":"List Web Voice Playground Variables","description":"List the contact and customer variables a Voice Lab call can be given.","operationId":"list_web_voice_playground_variables_organizations__organization_id__projects__project_id__webvoice_playground_variables_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"workflow_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp":{"get":{"tags":["whatsapp"],"summary":"Get Whatsapp Account","description":"WhatsApp account status. Inbox agents without whatsapp:read only learn\nwhether it is connected, to send templates from the inbox.","operationId":"get_whatsapp_account_organizations__organization_id__projects__project_id__whatsapp_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"live","in":"query","required":false,"schema":{"type":"boolean","description":"Refresh live phone health from Meta (Overview tab only)","default":false,"title":"Live"},"description":"Refresh live phone health from Meta (Overview tab only)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/connect":{"get":{"tags":["whatsapp"],"summary":"Get Whatsapp Connect Config","description":"Get Meta Embedded Signup configuration for the project WhatsApp channel.","operationId":"get_whatsapp_connect_config_organizations__organization_id__projects__project_id__whatsapp_connect_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/connect/force-restart":{"post":{"tags":["whatsapp"],"summary":"Force Restart Whatsapp Connect","description":"Explicitly replace the caller's active WhatsApp onboarding session.","operationId":"force_restart_whatsapp_connect_organizations__organization_id__projects__project_id__whatsapp_connect_force_restart_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/connect/code":{"post":{"tags":["whatsapp"],"summary":"Capture Whatsapp Connect Code","description":"Exchange the short-lived Meta code immediately and durably checkpoint it.","operationId":"capture_whatsapp_connect_code_organizations__organization_id__projects__project_id__whatsapp_connect_code_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppOnboardingCodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/connect/event":{"post":{"tags":["whatsapp"],"summary":"Capture Whatsapp Connect Event","description":"Persist Meta session assets or diagnostics independently of the code callback.","operationId":"capture_whatsapp_connect_event_organizations__organization_id__projects__project_id__whatsapp_connect_event_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppOnboardingEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/connect/status":{"get":{"tags":["whatsapp"],"summary":"Get Whatsapp Connect Status","operationId":"get_whatsapp_connect_status_organizations__organization_id__projects__project_id__whatsapp_connect_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"session_id","in":"query","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/connect/retry":{"post":{"tags":["whatsapp"],"summary":"Retry Whatsapp Connect","operationId":"retry_whatsapp_connect_organizations__organization_id__projects__project_id__whatsapp_connect_retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppOnboardingRetryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/phone-numbers":{"get":{"tags":["whatsapp"],"summary":"List Whatsapp Phone Numbers","operationId":"list_whatsapp_phone_numbers_organizations__organization_id__projects__project_id__whatsapp_phone_numbers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/phone-numbers/sync":{"post":{"tags":["whatsapp"],"summary":"Sync Whatsapp Phone Numbers","operationId":"sync_whatsapp_phone_numbers_organizations__organization_id__projects__project_id__whatsapp_phone_numbers_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/phone-numbers/default":{"put":{"tags":["whatsapp"],"summary":"Set Default Whatsapp Phone Number","operationId":"set_default_whatsapp_phone_number_organizations__organization_id__projects__project_id__whatsapp_phone_numbers_default_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppSetDefaultPhoneNumberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/phone-numbers/{phone_number_id}/repair-registration":{"post":{"tags":["whatsapp"],"summary":"Repair Whatsapp Phone Number Registration","operationId":"repair_whatsapp_phone_number_registration_organizations__organization_id__projects__project_id__whatsapp_phone_numbers__phone_number_id__repair_registration_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","title":"Phone Number Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppRepairRegistrationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/templates":{"get":{"tags":["whatsapp"],"summary":"List Whatsapp Templates","operationId":"list_whatsapp_templates_organizations__organization_id__projects__project_id__whatsapp_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of records to skip","default":0,"title":"Skip"},"description":"Number of records to skip"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Number of records to return","default":20,"title":"Limit"},"description":"Number of records to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_WhatsAppTemplateListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["whatsapp"],"summary":"Create Whatsapp Template","operationId":"create_whatsapp_template_organizations__organization_id__projects__project_id__whatsapp_templates_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppTemplateCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_WhatsAppTemplateCreateResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/template-starters":{"get":{"tags":["whatsapp"],"summary":"List Whatsapp Template Starters","description":"Ready-made templates to start the create form from, the project's industry\nfirst, filled in with its Business setup.","operationId":"list_whatsapp_template_starters_organizations__organization_id__projects__project_id__whatsapp_template_starters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_WhatsAppTemplateStarterListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/templates/sync":{"post":{"tags":["whatsapp"],"summary":"Sync Whatsapp Templates","operationId":"sync_whatsapp_templates_organizations__organization_id__projects__project_id__whatsapp_templates_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_WhatsAppTemplateSyncResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/templates/media":{"post":{"tags":["whatsapp"],"summary":"Upload Whatsapp Template Media","operationId":"upload_whatsapp_template_media_organizations__organization_id__projects__project_id__whatsapp_templates_media_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_whatsapp_template_media_organizations__organization_id__projects__project_id__whatsapp_templates_media_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_WhatsAppTemplateMediaUploadResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/templates/{template_id}":{"delete":{"tags":["whatsapp"],"summary":"Delete Whatsapp Template","operationId":"delete_whatsapp_template_organizations__organization_id__projects__project_id__whatsapp_templates__template_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_WhatsAppTemplateDeleteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/catalog/status":{"get":{"tags":["whatsapp"],"summary":"Get Whatsapp Catalog Status","operationId":"get_whatsapp_catalog_status_organizations__organization_id__projects__project_id__whatsapp_catalog_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/catalog/products":{"get":{"tags":["whatsapp"],"summary":"Get Whatsapp Catalog Products","operationId":"get_whatsapp_catalog_products_organizations__organization_id__projects__project_id__whatsapp_catalog_products_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["whatsapp"],"summary":"Upsert Whatsapp Catalog Product","operationId":"upsert_whatsapp_catalog_product_organizations__organization_id__projects__project_id__whatsapp_catalog_products_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCatalogProductRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/catalog/sync":{"post":{"tags":["whatsapp"],"summary":"Sync Whatsapp Catalog From Shopify","operationId":"sync_whatsapp_catalog_from_shopify_organizations__organization_id__projects__project_id__whatsapp_catalog_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppCatalogSyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/calls":{"get":{"tags":["whatsapp"],"summary":"Get Whatsapp Calling Status","operationId":"get_whatsapp_calling_status_organizations__organization_id__projects__project_id__whatsapp_calls_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/phone-numbers/{phone_number_id}/calls":{"patch":{"tags":["whatsapp"],"summary":"Update Whatsapp Number Calling","operationId":"update_whatsapp_number_calling_organizations__organization_id__projects__project_id__whatsapp_phone_numbers__phone_number_id__calls_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","title":"Phone Number Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppNumberCallingUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/analytics":{"get":{"tags":["whatsapp"],"summary":"Get Whatsapp Analytics","operationId":"get_whatsapp_analytics_organizations__organization_id__projects__project_id__whatsapp_analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/business-profile":{"get":{"tags":["whatsapp"],"summary":"Get Whatsapp Business Profile","operationId":"get_whatsapp_business_profile_organizations__organization_id__projects__project_id__whatsapp_business_profile_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"phone_number_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["whatsapp"],"summary":"Update Whatsapp Business Profile","operationId":"update_whatsapp_business_profile_organizations__organization_id__projects__project_id__whatsapp_business_profile_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"phone_number_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppBusinessProfileUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/webhook/status":{"get":{"tags":["whatsapp"],"summary":"Get Whatsapp Webhook Status","operationId":"get_whatsapp_webhook_status_organizations__organization_id__projects__project_id__whatsapp_webhook_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/webhook/resubscribe":{"post":{"tags":["whatsapp"],"summary":"Resubscribe Whatsapp Webhooks","operationId":"resubscribe_whatsapp_webhooks_organizations__organization_id__projects__project_id__whatsapp_webhook_resubscribe_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/opt-outs":{"get":{"tags":["whatsapp"],"summary":"List Whatsapp Opt Outs","operationId":"list_whatsapp_opt_outs_organizations__organization_id__projects__project_id__whatsapp_opt_outs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["whatsapp"],"summary":"Update Whatsapp Opt Out","operationId":"update_whatsapp_opt_out_organizations__organization_id__projects__project_id__whatsapp_opt_outs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppOptOutUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/broadcasts/{broadcast_id}/messages":{"post":{"tags":["whatsapp-api"],"summary":"Send Whatsapp Api Message","description":"Delegate one recipient send to the WhatsApp API service.","operationId":"send_whatsapp_api_message_organizations__organization_id__projects__project_id__broadcasts__broadcast_id__messages_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","title":"Broadcast 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/WhatsAppApiSendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/whatsapp/messages":{"post":{"tags":["whatsapp-api"],"summary":"Send Whatsapp Reply","description":"Send a free-form reply into a live WhatsApp chat.","operationId":"send_whatsapp_reply_organizations__organization_id__projects__project_id__whatsapp_messages_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project 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/WhatsAppSessionMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/workflow-templates":{"get":{"tags":["workflow-templates"],"summary":"List Workflow Templates","description":"List workflow templates with full graphs; the create dialog applies the picked one directly.","operationId":"list_workflow_templates_organizations__organization_id__projects__project_id__workflow_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"workflow_type","in":"query","required":true,"schema":{"enum":["chat","voice"],"type":"string","title":"Workflow Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_list_WorkflowTemplateResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/workflows":{"post":{"tags":["workflows"],"summary":"Create Workflow","description":"Create a new (draft) workflow.","operationId":"create_workflow_organizations__organization_id__projects__project_id__workflows_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkflowRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workflows"],"summary":"Get Workflows","operationId":"get_workflows_organizations__organization_id__projects__project_id__workflows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"is_template","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Template"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filters"}},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/workflows/{workflow_id}":{"get":{"tags":["workflows"],"summary":"Get Workflow","operationId":"get_workflow_organizations__organization_id__projects__project_id__workflows__workflow_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}},{"name":"projection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of fields to return (MongoDB projection, e.g., 'name,_id')","title":"Projection"},"description":"Comma-separated list of fields to return (MongoDB projection, e.g., 'name,_id')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workflows"],"summary":"Update Workflow","operationId":"update_workflow_organizations__organization_id__projects__project_id__workflows__workflow_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkflowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workflows"],"summary":"Delete Workflow","operationId":"delete_workflow_organizations__organization_id__projects__project_id__workflows__workflow_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/workflows/{workflow_id}/publish":{"post":{"tags":["workflows"],"summary":"Publish Workflow","description":"Publish a workflow (set status to active).","operationId":"publish_workflow_organizations__organization_id__projects__project_id__workflows__workflow_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/workflows/{workflow_id}/template-diagnostics":{"post":{"tags":["workflows"],"summary":"Get Workflow Template Diagnostics","description":"Validate authored workflow templates, optionally against a real profile.","operationId":"get_workflow_template_diagnostics_organizations__organization_id__projects__project_id__workflows__workflow_id__template_diagnostics_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkflowDiagnosticsRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/workflows/{workflow_id}/clone":{"post":{"tags":["workflows"],"summary":"Clone Workflow","operationId":"clone_workflow_organizations__organization_id__projects__project_id__workflows__workflow_id__clone_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneWorkflowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/variable-catalog":{"get":{"tags":["variables"],"summary":"Get Variable Catalog","description":"Return field names and expressions only; never return recipient values.","operationId":"get_variable_catalog_organizations__organization_id__projects__project_id__variable_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/template-preview":{"post":{"tags":["template-previews"],"summary":"Preview Template Texts","description":"Render texts read-only the way their surface renders them at runtime,\nwith the project's setup answers.","operationId":"preview_template_texts_organizations__organization_id__projects__project_id__template_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_TemplatePreviewResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/feedback":{"post":{"tags":["feedback"],"summary":"Create Feedback","description":"Public: no authentication, so widgets and chatbots can submit feedback.","operationId":"create_feedback_organizations__organization_id__projects__project_id__feedback_post","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"X-Visitor-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Visitor-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFeedbackRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/feedback/{resource_id}":{"delete":{"tags":["feedback"],"summary":"Delete Feedback","description":"Public widget endpoint: a visitor removes their own feedback for a resource.","operationId":"delete_feedback_organizations__organization_id__projects__project_id__feedback__resource_id__delete","parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","title":"Resource Id"}},{"name":"customer_profile_id","in":"query","required":true,"schema":{"type":"string","description":"The visitor's profile id","title":"Customer Profile Id"},"description":"The visitor's profile id"},{"name":"X-Visitor-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Visitor-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/api-keys":{"post":{"tags":["api-keys"],"summary":"Create Api Key","description":"Return the raw key exactly once, with the masked key metadata.\nThe creator must hold each scope's permission (API_KEY_SCOPE_PERMISSIONS).","operationId":"create_api_key_organizations__organization_id__projects__project_id__api_keys_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_ApiKeyCreateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["api-keys"],"summary":"List Api Keys","description":"The project's active API keys, masked.","operationId":"list_api_keys_organizations__organization_id__projects__project_id__api_keys_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseModel_List_ApiKey__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/projects/{project_id}/api-keys/{key_id}":{"delete":{"tags":["api-keys"],"summary":"Revoke Api Key","description":"Soft-delete an API key so it no longer authenticates.","operationId":"revoke_api_key_organizations__organization_id__projects__project_id__api_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project 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/ResponseModel_bool_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AIRetrySettings":{"properties":{"max_retries":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Max Retries","description":"Maximum retry attempts","default":3},"daily_call_cap":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Daily Call Cap","description":"Max calls to the same contact per day","default":1},"min_cooldown_hours":{"type":"number","maximum":336.0,"minimum":0.5,"title":"Min Cooldown Hours","description":"Minimum hours between calls to the same contact","default":4.0},"campaign_outcome_goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Outcome Goal","description":"Campaign-specific success criteria used by LLM summary analysis to decide whether the call objective was achieved (for example: 'Book a demo appointment' or 'Confirm payment collected'). When defined, retries stop only after this goal is achieved or retry limits are reached."}},"type":"object","title":"AIRetrySettings"},"ActiveSubscriptionResponse":{"properties":{"subscription":{"anyOf":[{"$ref":"#/components/schemas/Subscription"},{"type":"null"}]}},"type":"object","title":"ActiveSubscriptionResponse"},"AddonLineRequest":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"quantity":{"type":"integer","minimum":1.0,"title":"Quantity","default":1}},"type":"object","required":["plan_id"],"title":"AddonLineRequest"},"AgentConfig":{"properties":{"prompt":{"type":"string","minLength":1,"title":"Prompt","description":"Agent prompt/instructions"},"first_speaker":{"$ref":"#/components/schemas/CallFirstSpeaker","description":"Who starts speaking first when the agent enters the call","default":"agent_first"},"welcome_message":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Welcome Message","description":"Optional spoken line when this agent joins at call start or is entered via handoff from another agent."},"welcome_message_allow_interruptions":{"type":"boolean","title":"Welcome Message Allow Interruptions","description":"Whether to allow users to interrupt the welcome message. In realtime voice mode, False temporarily disables inbound audio until the welcome message finishes.","default":true},"welcome_message_direct_speech":{"type":"boolean","title":"Welcome Message Direct Speech","description":"Pipeline (non-realtime) only: when True and a welcome template exists, speak it verbatim via TTS (session.say) bypassing LLM latency.","default":false},"allow_global_handoff":{"type":"boolean","title":"Allow Global Handoff","description":"Whether this agent is available as a global handoff target: when True, every other agent gets a fixed handoff tool to route to this agent (even without a direct canvas edge).","default":false},"handoff_description":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Handoff Description","description":"When other agents should route here via global handoff (e.g. billing disputes, refunds). Only used when allow_global_handoff is True."},"model_settings":{"$ref":"#/components/schemas/ModelSettings","description":"Model configuration (LLM; STT/TTS for voice workflows)"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Timeout","description":"Maximum stay duration (in seconds) on this agent node"},"rag_policy":{"type":"string","enum":["auto","tool","off"],"title":"Rag Policy","description":"Knowledge retrieval mode: auto injects KB context each turn, tool requires search_knowledge_base, off disables RAG."},"knowledge_source_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Knowledge Source Ids","description":"Source ids this agent may search. None uses the whole project knowledge base; an empty list searches none."},"tools":{"items":{"$ref":"#/components/schemas/ToolConfig"},"type":"array","title":"Tools","description":"List of tool configurations available to the agent"}},"type":"object","required":["prompt","rag_policy"],"title":"AgentConfig"},"AiAction":{"properties":{"id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_deleted":{"type":"boolean","title":"Is Deleted","description":"Soft delete flag - marks record as deleted without removing from database","default":false},"name":{"type":"string","title":"Name"},"normalized_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Normalized Name"},"description":{"type":"string","title":"Description"},"organization_id":{"type":"string","format":"ObjectId","title":"Organization Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"project_id":{"type":"string","format":"ObjectId","title":"Project Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_by":{"type":"string","format":"ObjectId","title":"Created By","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"endpoint_url":{"type":"string","title":"Endpoint Url"},"method":{"type":"string","title":"Method","default":"GET"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"auth":{"anyOf":[{"$ref":"#/components/schemas/AiActionAuth"},{"type":"null"}]},"parameters":{"items":{"$ref":"#/components/schemas/AiActionParameter"},"type":"array","title":"Parameters"},"last_tested":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Tested"},"test_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Test Status"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["name","description","organization_id","project_id","created_by","endpoint_url"],"title":"AiAction","description":"Model for AI actions defined by users"},"AiActionAuth":{"properties":{"type":{"type":"string","title":"Type","default":"none"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"header_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Name"}},"type":"object","title":"AiActionAuth","description":"Authentication configuration for AI action"},"AiActionForm":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"description":{"type":"string","title":"Description"},"endpoint_url":{"type":"string","title":"Endpoint Url"},"method":{"type":"string","title":"Method"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"auth":{"$ref":"#/components/schemas/AiActionAuth"},"parameters":{"items":{"$ref":"#/components/schemas/AiActionParameter"},"type":"array","title":"Parameters"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"additionalProperties":false,"type":"object","required":["name","description","endpoint_url","method","parameters"],"title":"AiActionForm","description":"The fields a user edits on an AI action; the service sets the rest."},"AiActionParameter":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["string","integer","number","boolean","array","object"],"title":"Type","default":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"required":{"type":"boolean","title":"Required","default":true},"source":{"type":"string","enum":["llm","fixed"],"title":"Source","default":"llm"},"fixed_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fixed Value"},"send_as":{"type":"string","enum":["query","body"],"title":"Send As"}},"additionalProperties":false,"type":"object","required":["name","send_as"],"title":"AiActionParameter","description":"Parameter definition for an AI action"},"Analytics":{"properties":{"tickets":{"type":"integer","title":"Tickets"},"leads":{"type":"integer","title":"Leads"},"messages":{"type":"integer","title":"Messages"},"live_conversations":{"type":"integer","title":"Live Conversations","default":0},"user_engagement":{"items":{"$ref":"#/components/schemas/Engagement"},"type":"array","title":"User Engagement"},"lead_generation":{"items":{"$ref":"#/components/schemas/Engagement"},"type":"array","title":"Lead Generation"},"group_by":{"type":"string","title":"Group By"}},"type":"object","required":["tickets","leads","messages","user_engagement","lead_generation","group_by"],"title":"Analytics"},"ApiKey":{"properties":{"_id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_deleted":{"type":"boolean","title":"Is Deleted","description":"Soft delete flag - marks record as deleted without removing from database","default":false},"organization_id":{"type":"string","format":"ObjectId","title":"Organization Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"project_id":{"type":"string","format":"ObjectId","title":"Project Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"name":{"type":"string","title":"Name","description":"Friendly name of the API Key"},"key_prefix":{"type":"string","title":"Key Prefix","description":"Masked/public prefix of the API Key"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","description":"Permission scopes granted to the API Key"},"is_active":{"type":"boolean","title":"Is Active","description":"Whether the key is active","default":true},"created_by":{"type":"string","format":"ObjectId","title":"Created By","example":"656b1f13e4b0e2a3d6a4c5f8"}},"additionalProperties":true,"type":"object","required":["organization_id","project_id","name","key_prefix","created_by"],"title":"ApiKey"},"ApiKeyCreateResponse":{"properties":{"api_key":{"$ref":"#/components/schemas/ApiKey"},"plain_key":{"type":"string","title":"Plain Key"}},"type":"object","required":["api_key","plain_key"],"title":"ApiKeyCreateResponse"},"AttachmentUploadResponse":{"properties":{"fileKey":{"type":"string","title":"Filekey"},"filename":{"type":"string","title":"Filename"},"contentType":{"type":"string","title":"Contenttype"},"viewUrl":{"type":"string","title":"Viewurl"}},"type":"object","required":["fileKey","filename","contentType","viewUrl"],"title":"AttachmentUploadResponse"},"AuthType":{"type":"string","enum":["email","google"],"title":"AuthType"},"AutomationRequest":{"properties":{"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled","default":true},"trigger":{"additionalProperties":true,"type":"object","title":"Trigger"},"only_if":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Only If"},"steps":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Steps"},"keep_trying":{"type":"boolean","title":"Keep Trying","default":false},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},"type":"object","required":["name","trigger"],"title":"AutomationRequest","description":"The whole automation, as the editor saves it; where it runs is kept.\n``enabled`` on an existing one changes only when sent: list rows switch it too."},"AutomationTriggerBody":{"properties":{"event":{"type":"string","title":"Event"},"idempotency_key":{"type":"string","maxLength":200,"minLength":1,"title":"Idempotency Key"},"contact":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Contact"},"variables":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Variables"}},"additionalProperties":false,"type":"object","required":["event","idempotency_key"],"title":"AutomationTriggerBody"},"BackgroundAudioSettings":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Enable background ambient sounds during calls","default":false},"audio_type":{"type":"string","pattern":"^(office_ambience|office_ambience_with_thinking)$","title":"Audio Type","description":"Type of background audio: office_ambience, office_ambience_with_thinking","default":"office_ambience"},"volume":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Volume","description":"Background audio volume (0.0-1.0)","default":0.8}},"type":"object","title":"BackgroundAudioSettings"},"BillingAddress":{"properties":{"address_line1":{"type":"string","title":"Address Line1"},"address_line2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line2"},"city":{"type":"string","title":"City"},"state":{"type":"string","title":"State"},"postal_code":{"type":"string","title":"Postal Code"},"country":{"type":"string","pattern":"^[A-Z]{2}$","title":"Country"}},"type":"object","required":["address_line1","city","state","postal_code","country"],"title":"BillingAddress"},"Body_create_media_asset_organizations__organization_id__projects__project_id__media_assets_post":{"properties":{"kind":{"type":"string","title":"Kind"},"file":{"anyOf":[{"type":"string","format":"binary"},{"type":"null"}],"title":"File"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"title":{"type":"string","title":"Title","default":""},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"type":"object","required":["kind"],"title":"Body_create_media_asset_organizations__organization_id__projects__project_id__media_assets_post"},"Body_handle_voice_status_callback_callbacks_voice_post":{"properties":{"CallStatus":{"type":"string","title":"Callstatus"},"CallSid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callsid"},"CallDuration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Callduration"},"ErrorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"},"RequestUUID":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requestuuid"},"Duration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duration"},"HangupCauseName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hangupcausename"}},"type":"object","required":["CallStatus"],"title":"Body_handle_voice_status_callback_callbacks_voice_post"},"Body_import_customers_csv_organizations__organization_id__projects__project_id__csv_imports_customers_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"default_country":{"type":"string","title":"Default Country"}},"type":"object","required":["file","default_country"],"title":"Body_import_customers_csv_organizations__organization_id__projects__project_id__csv_imports_customers_post"},"Body_import_list_csv_organizations__organization_id__projects__project_id__csv_imports_lists__list_id__post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"default_country":{"type":"string","title":"Default Country"}},"type":"object","required":["file","default_country"],"title":"Body_import_list_csv_organizations__organization_id__projects__project_id__csv_imports_lists__list_id__post"},"Body_import_new_list_csv_organizations__organization_id__projects__project_id__csv_imports_lists_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"default_country":{"type":"string","title":"Default Country"},"list_name":{"type":"string","title":"List Name"}},"type":"object","required":["file","default_country","list_name"],"title":"Body_import_new_list_csv_organizations__organization_id__projects__project_id__csv_imports_lists_post"},"Body_meta_data_deletion_callback_channels_meta_data_deletion_post":{"properties":{"signed_request":{"type":"string","title":"Signed Request"}},"type":"object","required":["signed_request"],"title":"Body_meta_data_deletion_callback_channels_meta_data_deletion_post"},"Body_meta_deauthorize_callback_channels_meta_deauthorize_post":{"properties":{"signed_request":{"type":"string","title":"Signed Request"}},"type":"object","required":["signed_request"],"title":"Body_meta_deauthorize_callback_channels_meta_deauthorize_post"},"Body_upload_attachment_organizations__organization_id__projects__project_id__attachments_upload_post":{"properties":{"customer_profile_id":{"type":"string","title":"Customer Profile Id"},"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["customer_profile_id","file"],"title":"Body_upload_attachment_organizations__organization_id__projects__project_id__attachments_upload_post"},"Body_upload_bot_icon_organizations__organization_id__projects__project_id__channels__channel_id__bot_icon_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_bot_icon_organizations__organization_id__projects__project_id__channels__channel_id__bot_icon_post"},"Body_upload_files_organizations__organization_id__projects__project_id__sources_files_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"Body_upload_files_organizations__organization_id__projects__project_id__sources_files_post"},"Body_upload_profile_picture_users_upload_profile_picture_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_profile_picture_users_upload_profile_picture_post"},"Body_upload_whatsapp_template_media_organizations__organization_id__projects__project_id__whatsapp_templates_media_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_whatsapp_template_media_organizations__organization_id__projects__project_id__whatsapp_templates_media_post"},"BookingHistoryEntry":{"properties":{"type":{"type":"string","enum":["created","rescheduled","cancelled","status_changed"],"title":"Type"},"actor":{"type":"string","enum":["ai","provider","staff"],"title":"Actor","default":"ai"},"at":{"type":"string","format":"date-time","title":"At"},"previous_start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous Start At"},"previous_end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous End At"},"status":{"anyOf":[{"type":"string","enum":["scheduled","pending","failed","cancelled","confirmed","completed","no_show"]},{"type":"null"}],"title":"Status"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"}},"type":"object","required":["type"],"title":"BookingHistoryEntry"},"BookingListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BookingResponse"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/PaginationInfo"}},"type":"object","required":["items","pagination"],"title":"BookingListResponse"},"BookingResponse":{"properties":{"_id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"organization_id":{"type":"string","title":"Organization Id"},"source":{"type":"string","title":"Source"},"integration_id":{"type":"string","title":"Integration Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"start_at":{"type":"string","format":"date-time","title":"Start At"},"end_at":{"type":"string","format":"date-time","title":"End At"},"timezone":{"type":"string","title":"Timezone"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"customer_profile_id":{"type":"string","title":"Customer Profile Id"},"conversation_id":{"type":"string","title":"Conversation Id"},"conversation_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Type"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"},"conversation_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Source Id"},"title":{"type":"string","title":"Title"},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"provider_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Name"},"service_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Id"},"service_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Name"},"location_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"status":{"type":"string","enum":["scheduled","pending","failed","cancelled","confirmed","completed","no_show"],"title":"Status"},"history":{"items":{"$ref":"#/components/schemas/BookingHistoryEntry"},"type":"array","title":"History"},"rescheduled_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rescheduled From"},"rescheduled_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rescheduled To"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["_id","project_id","organization_id","source","integration_id","start_at","end_at","timezone","customer_profile_id","conversation_id","title","status","history","created_at","updated_at"],"title":"BookingResponse"},"BookingStatsResponse":{"properties":{"total":{"type":"integer","title":"Total"},"scheduled":{"type":"integer","title":"Scheduled"},"pending":{"type":"integer","title":"Pending"},"failed":{"type":"integer","title":"Failed"},"cancelled":{"type":"integer","title":"Cancelled"},"confirmed":{"type":"integer","title":"Confirmed"},"completed":{"type":"integer","title":"Completed"},"no_show":{"type":"integer","title":"No Show"}},"type":"object","required":["total","scheduled","pending","failed","cancelled","confirmed","completed","no_show"],"title":"BookingStatsResponse"},"BookingStatusRequest":{"properties":{"status":{"type":"string","enum":["confirmed","completed","no_show"],"title":"Status"},"note":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Note"}},"type":"object","required":["status"],"title":"BookingStatusRequest"},"BooleanEntitlement":{"properties":{"feature_type":{"type":"string","const":"boolean","title":"Feature Type","default":"boolean"},"is_enabled":{"type":"boolean","title":"Is Enabled"}},"type":"object","required":["is_enabled"],"title":"BooleanEntitlement"},"BroadcastCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"list_ids":{"items":{"type":"string"},"type":"array","title":"List Ids"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"timezone":{"type":"string","title":"Timezone"},"timezone_mode":{"type":"string","enum":["campaign_timezone","contact_timezone"],"title":"Timezone Mode"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"call_days":{"items":{"type":"string"},"type":"array","title":"Call Days"},"whatsapp_settings":{"$ref":"#/components/schemas/WhatsAppBroadcastSettings"}},"type":"object","required":["name","timezone","timezone_mode","start_time","end_time","call_days","whatsapp_settings"],"title":"BroadcastCreateRequest"},"BroadcastUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"List Ids"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"timezone_mode":{"anyOf":[{"type":"string","enum":["campaign_timezone","contact_timezone"]},{"type":"null"}],"title":"Timezone Mode"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"call_days":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Call Days"},"whatsapp_settings":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppBroadcastSettings"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"BroadcastUpdateRequest","description":"Status changes go through launch/pause/stop (broadcasts:update);\nunknown fields such as ``status`` are rejected."},"BulkDeleteContactsRequest":{"properties":{"contact_ids":{"items":{"type":"string"},"type":"array","title":"Contact Ids"}},"type":"object","required":["contact_ids"],"title":"BulkDeleteContactsRequest"},"BulkDeleteSourcesRequest":{"properties":{"source_ids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Source Ids","description":"List of source IDs to delete"}},"type":"object","required":["source_ids"],"title":"BulkDeleteSourcesRequest"},"CallFirstSpeaker":{"type":"string","enum":["agent_first","human_first"],"title":"CallFirstSpeaker","description":"Who should open an outbound voice conversation."},"CampaignCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"call_direction":{"type":"string","title":"Call Direction"},"campaign_type":{"anyOf":[{"type":"string","enum":["workflow","static"]},{"type":"null"}],"title":"Campaign Type","default":"workflow"},"next_action":{"anyOf":[{"type":"string","const":"call"},{"type":"null"}],"title":"Next Action","default":"call"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"},"whatsapp_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Channel Id"},"static_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Static Script"},"static_voice_settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Static Voice Settings"},"business_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Phone"},"welcome_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Message"},"phone_numbers":{"items":{"$ref":"#/components/schemas/PhoneNumber"},"type":"array","title":"Phone Numbers"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"timezone":{"type":"string","title":"Timezone"},"timezone_mode":{"type":"string","title":"Timezone Mode"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"call_days":{"items":{"type":"string"},"type":"array","title":"Call Days"},"call_timeout":{"type":"integer","maximum":7200.0,"minimum":60.0,"title":"Call Timeout","default":300},"silence_threshold":{"type":"integer","title":"Silence Threshold","default":8},"list_ids":{"items":{"type":"string"},"type":"array","title":"List Ids","default":[]},"recording_enabled":{"type":"boolean","title":"Recording Enabled","default":true},"ivr_detection_enabled":{"type":"boolean","title":"Ivr Detection Enabled","default":false},"answering_machine_detection_enabled":{"type":"boolean","title":"Answering Machine Detection Enabled","default":false},"voicemail_message":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Voicemail Message"},"echo_cancellation_enabled":{"type":"boolean","title":"Echo Cancellation Enabled","default":true},"noise_suppression_enabled":{"type":"boolean","title":"Noise Suppression Enabled","default":false},"background_audio":{"$ref":"#/components/schemas/BackgroundAudioSettings","default":{"enabled":false,"audio_type":"office_ambience","volume":0.8}},"ai_retry_settings":{"$ref":"#/components/schemas/AIRetrySettings"},"disposition_lists":{"anyOf":[{"items":{"$ref":"#/components/schemas/DispositionListRequest"},"type":"array"},{"type":"null"}],"title":"Disposition Lists"}},"type":"object","required":["name","call_direction","timezone","timezone_mode","start_time","end_time","call_days"],"title":"CampaignCreateRequest"},"CampaignOverviewResponse":{"properties":{"total_calls":{"type":"integer","title":"Total Calls"},"completed_calls":{"type":"integer","title":"Completed Calls"},"failed_calls":{"type":"integer","title":"Failed Calls"},"timeout_calls":{"type":"integer","title":"Timeout Calls"},"busy_calls":{"type":"integer","title":"Busy Calls"},"no_answer_calls":{"type":"integer","title":"No Answer Calls"},"voice_status_breakdown":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Voice Status Breakdown"},"total_duration":{"type":"number","title":"Total Duration"},"success_rate":{"type":"number","title":"Success Rate"},"avg_duration":{"type":"number","title":"Avg Duration"},"calls_by_status":{"additionalProperties":true,"type":"object","title":"Calls By Status"},"calls_by_hour":{"additionalProperties":true,"type":"object","title":"Calls By Hour"},"recent_activity":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Recent Activity"},"graph_data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Graph Data"}},"type":"object","required":["total_calls","completed_calls","failed_calls","timeout_calls","busy_calls","no_answer_calls","voice_status_breakdown","total_duration","success_rate","avg_duration","calls_by_status","calls_by_hour","recent_activity","graph_data"],"title":"CampaignOverviewResponse"},"CampaignUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string","enum":["running","paused","cancelled"]},{"type":"null"}],"title":"Status"},"call_direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Direction"},"campaign_type":{"anyOf":[{"type":"string","enum":["workflow","static"]},{"type":"null"}],"title":"Campaign Type"},"next_action":{"anyOf":[{"type":"string","const":"call"},{"type":"null"}],"title":"Next Action"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"},"whatsapp_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Channel Id"},"static_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Static Script"},"static_voice_settings":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Static Voice Settings"},"business_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Phone"},"welcome_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Message"},"phone_numbers":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhoneNumber"},"type":"array"},{"type":"null"}],"title":"Phone Numbers"},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"timezone_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone Mode"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"call_days":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Call Days"},"call_timeout":{"anyOf":[{"type":"integer","maximum":7200.0,"minimum":60.0},{"type":"null"}],"title":"Call Timeout"},"silence_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Silence Threshold"},"list_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"List Ids"},"recording_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recording Enabled"},"ivr_detection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ivr Detection Enabled"},"answering_machine_detection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Answering Machine Detection Enabled"},"voicemail_message":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Voicemail Message"},"echo_cancellation_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Echo Cancellation Enabled"},"noise_suppression_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Noise Suppression Enabled"},"background_audio":{"anyOf":[{"$ref":"#/components/schemas/BackgroundAudioSettings"},{"type":"null"}]},"ai_retry_settings":{"anyOf":[{"$ref":"#/components/schemas/AIRetrySettings"},{"type":"null"}]},"disposition_lists":{"anyOf":[{"items":{"$ref":"#/components/schemas/DispositionListRequest"},"type":"array"},{"type":"null"}],"title":"Disposition Lists"},"relaunch":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Relaunch"},"relaunch_mode":{"anyOf":[{"type":"string","enum":["all","unresolved_only"]},{"type":"null"}],"title":"Relaunch Mode"}},"additionalProperties":false,"type":"object","title":"CampaignUpdateRequest","description":"Fields accepted by the partial Campaign update endpoint; unknown fields\nare rejected."},"CatalogGroup":{"properties":{"resource":{"type":"string","title":"Resource"},"label":{"type":"string","title":"Label"},"permissions":{"items":{"$ref":"#/components/schemas/CatalogPermission"},"type":"array","title":"Permissions"}},"type":"object","required":["resource","label","permissions"],"title":"CatalogGroup"},"CatalogItemPayload":{"additionalProperties":true,"type":"object","title":"CatalogItemPayload","description":"JSON object body for create/update catalog APIs."},"CatalogLocationPayload":{"additionalProperties":true,"type":"object","title":"CatalogLocationPayload","description":"JSON object body for create/update catalog location APIs."},"CatalogPermission":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"},"assignable":{"type":"boolean","title":"Assignable"}},"type":"object","required":["value","label","assignable"],"title":"CatalogPermission"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"Channel":{"properties":{"_id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_deleted":{"type":"boolean","title":"Is Deleted","description":"Soft delete flag - marks record as deleted without removing from database","default":false},"organization_id":{"type":"string","format":"ObjectId","title":"Organization Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"project_id":{"type":"string","format":"ObjectId","title":"Project Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"channel_type":{"$ref":"#/components/schemas/ChannelType"},"channel_name":{"type":"string","title":"Channel Name"},"channel_identifier":{"type":"string","title":"Channel Identifier"},"enabled":{"type":"boolean","title":"Enabled","default":true},"configuration":{"additionalProperties":true,"type":"object","title":"Configuration"},"disposition_lists":{"anyOf":[{"items":{"$ref":"#/components/schemas/StoredDispositionList"},"type":"array"},{"type":"null"}],"title":"Disposition Lists","description":"The disposition lists this channel's conversations are classified with; null uses the project's, [] sets none"}},"type":"object","required":["organization_id","project_id","channel_type","channel_name","channel_identifier"],"title":"Channel"},"ChannelActionRequest":{"properties":{"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"}},"type":"object","title":"ChannelActionRequest"},"ChannelIdentityResponse":{"properties":{"channel_type":{"type":"string","title":"Channel Type"},"identity_key":{"type":"string","title":"Identity Key"},"first_seen_at":{"type":"string","format":"date-time","title":"First Seen At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"}},"type":"object","required":["channel_type","identity_key","first_seen_at","last_seen_at"],"title":"ChannelIdentityResponse"},"ChannelType":{"type":"string","enum":["whatsapp","telegram","slack","email","outlook_email","messenger","instagram","sms","webchat","webvoice","api","catalog"],"title":"ChannelType"},"ChatConversationThreadsData":{"properties":{"threads":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Threads"}},"type":"object","required":["threads"],"title":"ChatConversationThreadsData","description":"Chat threads returned by widget and customer-profile endpoints."},"CloneWorkflowRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"CloneWorkflowRequest"},"ConditionConfig":{"properties":{"condition_type":{"type":"string","pattern":"^llm_based$","title":"Condition Type","description":"Condition type: llm_based","default":"llm_based"},"condition_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition Prompt","description":"LLM-based condition prompt describing when to take this path"}},"type":"object","title":"ConditionConfig"},"ConnectionSettingsRequest":{"properties":{"chat_workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Workflow Id"}},"type":"object","required":["chat_workflow_id"],"title":"ConnectionSettingsRequest"},"ContactCreateRequest":{"properties":{"consent_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Source"},"consent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent At"},"name":{"type":"string","title":"Name"},"phone_number":{"type":"string","title":"Phone Number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"status":{"type":"string","title":"Status","default":"active"}},"additionalProperties":true,"type":"object","required":["name","phone_number"],"title":"ContactCreateRequest"},"ContactUpdateRequest":{"properties":{"consent_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Source"},"consent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consent At"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","title":"ContactUpdateRequest"},"ConversationUpdateRequest":{"properties":{"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"resolved_status":{"anyOf":[{"type":"string","enum":["resolved","partial","unresolved"]},{"type":"null"}],"title":"Resolved Status"}},"type":"object","title":"ConversationUpdateRequest"},"CreateApiKeyRequest":{"properties":{"name":{"type":"string","title":"Name"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"}},"type":"object","required":["name"],"title":"CreateApiKeyRequest"},"CreateCallRequest":{"additionalProperties":true,"type":"object","title":"CreateCallRequest","description":"Customer payload for the call. Must include phone_number; any other keys\n(name, email, custom fields) are stored on the customer and available in\nJinja as {{ customer.<key> }}."},"CreateCallResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"campaign_queue_id":{"type":"string","title":"Campaign Queue Id"},"message":{"type":"string","title":"Message"},"scheduled":{"type":"boolean","title":"Scheduled"},"scheduled_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled For"}},"type":"object","required":["success","campaign_queue_id","message","scheduled"],"title":"CreateCallResponse"},"CreateChannelRequest":{"properties":{"channel_type":{"type":"string","title":"Channel Type","description":"Channel type (whatsapp, telegram, slack, etc.)"},"channel_name":{"type":"string","title":"Channel Name","description":"Human-readable channel name"},"channel_identifier":{"type":"string","title":"Channel Identifier","description":"Channel identifier - WhatsApp Business Number, Slack Workspace Name, Telegram Bot Username, etc."},"configuration":{"additionalProperties":true,"type":"object","title":"Configuration","description":"Channel-specific configuration (API keys, settings, etc.)"}},"type":"object","required":["channel_type","channel_name","channel_identifier","configuration"],"title":"CreateChannelRequest"},"CreateFeedbackRequest":{"properties":{"feedback_type":{"$ref":"#/components/schemas/FeedbackType"},"rating":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Rating","description":"Rating from 1 (negative) to 5 (positive)"},"sentiment":{"$ref":"#/components/schemas/Sentiment"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id","description":"Conversation ID associated with the feedback"},"customer_profile_id":{"type":"string","title":"Customer Profile Id","description":"The visitor's customer profile ID"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id","description":"Specific entity ID (e.g., message_id, call_id) associated with the feedback"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional metadata (e.g., call_duration, message_id)"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment","description":"Optional text comment"}},"type":"object","required":["feedback_type","rating","sentiment","customer_profile_id"],"title":"CreateFeedbackRequest"},"CreateHandoverAgentRequest":{"properties":{"kind":{"$ref":"#/components/schemas/HandoverAgentKind"},"channels":{"items":{"$ref":"#/components/schemas/HandoverAgentChannel"},"type":"array","title":"Channels"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"schedule":{"$ref":"#/components/schemas/WeeklySchedule"},"text_when_off_hours":{"type":"boolean","title":"Text When Off Hours","default":false}},"type":"object","required":["kind","channels"],"title":"CreateHandoverAgentRequest"},"CreateIntegrationRequest":{"properties":{"integration_type":{"$ref":"#/components/schemas/IntegrationType"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"name":{"type":"string","title":"Name"}},"type":"object","required":["integration_type","name"],"title":"CreateIntegrationRequest"},"CreateMcpServerRequest":{"properties":{"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"transport":{"$ref":"#/components/schemas/McpTransport","default":"streamable_http"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"}},"type":"object","required":["name","url"],"title":"CreateMcpServerRequest"},"CreateProjectRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"status":{"type":"string","title":"Status","default":"active"},"language":{"type":"string","title":"Language","default":"English"},"timezone":{"type":"string","title":"Timezone"},"notification_settings":{"anyOf":[{"$ref":"#/components/schemas/NotificationSettings"},{"type":"null"}]},"rate_limit_settings":{"anyOf":[{"$ref":"#/components/schemas/RateLimitSettings"},{"type":"null"}]}},"type":"object","required":["name","timezone"],"title":"CreateProjectRequest"},"CreateRoleRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"scope":{"type":"string","enum":["organization","project"],"title":"Scope"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"}},"type":"object","required":["name","scope","permissions"],"title":"CreateRoleRequest"},"CreateSubscriptionRequest":{"properties":{"plan_id":{"type":"string","title":"Plan Id"},"interval":{"$ref":"#/components/schemas/PlanInterval"}},"type":"object","required":["plan_id","interval"],"title":"CreateSubscriptionRequest"},"CreateSubscriptionResponse":{"properties":{"payment_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Link"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"CreateSubscriptionResponse"},"CreateTicketRequest":{"properties":{"name":{"type":"string","title":"Name"},"issue":{"type":"string","title":"Issue"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","default":""},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","default":""},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","default":"new"},"priority":{"type":"string","title":"Priority","default":"normal"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"customer_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Profile Id"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"}},"type":"object","required":["name","issue"],"title":"CreateTicketRequest"},"CreateWorkflowRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"is_template":{"type":"boolean","title":"Is Template","default":false},"status":{"type":"string","const":"draft","title":"Status","default":"draft"},"version":{"type":"string","title":"Version","default":"1.0.0"},"nodes":{"items":{"$ref":"#/components/schemas/WorkflowNode"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/WorkflowEdge"},"type":"array","title":"Edges"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/WorkflowMetadata"},{"type":"null"}]}},"type":"object","required":["name"],"title":"CreateWorkflowRequest"},"CsvExportData":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"CsvExportData"},"CsvExportRecipient":{"properties":{"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"}},"type":"object","required":["email","name"],"title":"CsvExportRecipient"},"CsvExportRequest":{"properties":{"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"recipient_emails":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Recipient Emails"},"date_range_label":{"type":"string","maxLength":100,"minLength":1,"title":"Date Range Label"},"source_type":{"anyOf":[{"type":"string","enum":["campaign","inbound","channel","broadcast"]},{"type":"null"}],"title":"Source Type"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"},"search":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"},"channel":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Channel"}},"type":"object","required":["date_from","date_to","recipient_emails","date_range_label"],"title":"CsvExportRequest"},"CsvHeaderCheckRequest":{"properties":{"target":{"type":"string","enum":["customers","list"],"title":"Target"},"header_row":{"items":{"type":"string"},"type":"array","title":"Header Row"}},"type":"object","required":["target","header_row"],"title":"CsvHeaderCheckRequest"},"CsvImportData":{"properties":{"id":{"type":"string","title":"Id"},"target":{"type":"string","enum":["customers","list"],"title":"Target"},"status":{"type":"string","enum":["queued","running","cancelling","done","failed","cancelled"],"title":"Status"},"total_rows":{"type":"integer","title":"Total Rows"},"processed_rows":{"type":"integer","title":"Processed Rows"},"added":{"type":"integer","title":"Added"},"updated":{"type":"integer","title":"Updated"},"skipped":{"type":"integer","title":"Skipped"},"failed":{"type":"integer","title":"Failed"}},"type":"object","required":["id","target","status","total_rows","processed_rows","added","updated","skipped","failed"],"title":"CsvImportData","description":"An import's progress and row counts."},"CsvImportHistoryItem":{"properties":{"id":{"type":"string","title":"Id"},"target":{"type":"string","enum":["customers","list"],"title":"Target"},"status":{"type":"string","enum":["queued","running","cancelling","done","failed","cancelled"],"title":"Status"},"total_rows":{"type":"integer","title":"Total Rows"},"processed_rows":{"type":"integer","title":"Processed Rows"},"added":{"type":"integer","title":"Added"},"updated":{"type":"integer","title":"Updated"},"skipped":{"type":"integer","title":"Skipped"},"failed":{"type":"integer","title":"Failed"},"list_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"List Name"},"file_name":{"type":"string","title":"File Name"},"created_by":{"additionalProperties":{"type":"string"},"type":"object","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"failed_rows_expired":{"type":"boolean","title":"Failed Rows Expired"}},"type":"object","required":["id","target","status","total_rows","processed_rows","added","updated","skipped","failed","list_name","file_name","created_by","created_at","failed_rows_expired"],"title":"CsvImportHistoryItem"},"CsvImportHistoryPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CsvImportHistoryItem"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/PaginationInfo"}},"type":"object","required":["items","pagination"],"title":"CsvImportHistoryPage"},"CsvImportStartData":{"properties":{"import_id":{"type":"string","title":"Import Id"}},"type":"object","required":["import_id"],"title":"CsvImportStartData"},"CustomerField":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"type":{"type":"string","enum":["text","number","date","select"],"title":"Type"},"options":{"items":{"type":"string"},"type":"array","title":"Options"},"required":{"type":"boolean","title":"Required","default":false}},"type":"object","required":["key","label","type"],"title":"CustomerField","description":"A field as stored on the project; ``CustomerFieldInput`` checks it on save."},"CustomerFieldInput":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"type":{"type":"string","enum":["text","number","date","select"],"title":"Type"},"options":{"items":{"type":"string"},"type":"array","title":"Options"},"required":{"type":"boolean","title":"Required","default":false}},"type":"object","required":["key","label","type"],"title":"CustomerFieldInput"},"CustomerPortalData":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CustomerPortalData"},"CustomerProfileCreatePayload":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"phone_numbers":{"items":{"type":"string"},"type":"array","title":"Phone Numbers"},"emails":{"items":{"type":"string"},"type":"array","title":"Emails"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"}},"type":"object","title":"CustomerProfileCreatePayload"},"CustomerProfileInitRequest":{"properties":{"customer_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Profile Id","description":"Existing profile id from localStorage, if any"},"visitor_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visitor Token","description":"The token issued with that profile id; needed to resume it"},"channel_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Channel Id","description":"Configured channel ID used for the profile identity"},"channel_type":{"type":"string","minLength":1,"title":"Channel Type","description":"Transport type for profile identity (webchat, webvoice, or catalog)"},"playground":{"type":"boolean","title":"Playground","description":"Initialize a Playground profile without a deployed channel","default":false}},"type":"object","required":["channel_type"],"title":"CustomerProfileInitRequest"},"CustomerProfileInitResponse":{"properties":{"customer_profile_id":{"type":"string","title":"Customer Profile Id"},"visitor_token":{"type":"string","title":"Visitor Token"},"existed":{"type":"boolean","title":"Existed"},"canonicalized":{"type":"boolean","title":"Canonicalized","default":false},"previous_customer_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Customer Profile Id"}},"type":"object","required":["customer_profile_id","visitor_token","existed"],"title":"CustomerProfileInitResponse"},"CustomerProfileListData":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CustomerProfileResponse"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/PaginationInfo"}},"type":"object","required":["items","pagination"],"title":"CustomerProfileListData"},"CustomerProfileResponse":{"properties":{"_id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"organization_id":{"type":"string","title":"Organization Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"display_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Id"},"phone_numbers":{"items":{"type":"string"},"type":"array","title":"Phone Numbers"},"emails":{"items":{"type":"string"},"type":"array","title":"Emails"},"channel_identities":{"items":{"$ref":"#/components/schemas/ChannelIdentityResponse"},"type":"array","title":"Channel Identities"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"},"last_interaction_at":{"type":"string","format":"date-time","title":"Last Interaction At"},"first_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Seen At"},"channel_count":{"type":"integer","title":"Channel Count","default":0},"conversation_count":{"type":"integer","title":"Conversation Count","default":0},"call_count":{"type":"integer","title":"Call Count","default":0},"chat_count":{"type":"integer","title":"Chat Count","default":0},"voice_call_blocked":{"type":"boolean","title":"Voice Call Blocked","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"additionalProperties":true,"type":"object","required":["_id","project_id","organization_id","last_interaction_at","created_at","updated_at"],"title":"CustomerProfileResponse"},"CustomerProfileUpdatePayload":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Properties"},"emails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Emails"},"phone_numbers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Phone Numbers"},"voice_call_blocked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Voice Call Blocked"}},"type":"object","title":"CustomerProfileUpdatePayload"},"DispositionListRequest":{"properties":{"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"label":{"type":"string","title":"Label","default":""},"description":{"type":"string","title":"Description","default":""},"options":{"items":{"$ref":"#/components/schemas/DispositionValueRequest"},"type":"array","title":"Options"},"show_in_list":{"type":"boolean","title":"Show In List","default":false}},"type":"object","title":"DispositionListRequest"},"DispositionValueRequest":{"properties":{"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"label":{"type":"string","title":"Label","default":""}},"type":"object","title":"DispositionValueRequest"},"EnabledBody":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"EnabledBody"},"Engagement":{"properties":{"label":{"type":"string","title":"Label"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["label","count"],"title":"Engagement"},"EntitlementsResponse":{"properties":{"chat_billing_mode":{"type":"string","enum":["message_credits","per_conversation"],"title":"Chat Billing Mode"},"features":{"additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/NumericEntitlement"},{"$ref":"#/components/schemas/BooleanEntitlement"}],"discriminator":{"propertyName":"feature_type","mapping":{"boolean":"#/components/schemas/BooleanEntitlement","numeric":"#/components/schemas/NumericEntitlement"}}},"type":"object","title":"Features"},"pages":{"additionalProperties":{"$ref":"#/components/schemas/PageAccess"},"type":"object","title":"Pages"},"current_plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Plan Name"},"on_free_plan":{"type":"boolean","title":"On Free Plan"},"allowed_channels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Channels"},"purchasable_addon_ids":{"items":{"type":"string"},"type":"array","title":"Purchasable Addon Ids"},"payment_hold":{"anyOf":[{"$ref":"#/components/schemas/PaymentHold"},{"type":"null"}]}},"type":"object","required":["chat_billing_mode","features","pages","current_plan_name","on_free_plan","allowed_channels"],"title":"EntitlementsResponse"},"FeedbackType":{"type":"string","enum":["voice_call","chat_message","agent_performance","overall"],"title":"FeedbackType"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"GenericActionRequest":{"properties":{"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"}},"type":"object","title":"GenericActionRequest"},"GoogleAuthRequest":{"properties":{"token":{"type":"string","title":"Token"},"signup_attribution":{"anyOf":[{"$ref":"#/components/schemas/SignupAttribution"},{"type":"null"}]}},"type":"object","required":["token"],"title":"GoogleAuthRequest"},"GoogleBusinessProfileLocationSelection":{"properties":{"id":{"type":"string","minLength":1,"title":"Id"}},"type":"object","required":["id"],"title":"GoogleBusinessProfileLocationSelection"},"GoogleBusinessProfileSourceRequest":{"properties":{"integration_id":{"type":"string","title":"Integration Id","description":"Connected Google Business Profile integration ID"},"selected_locations":{"items":{"$ref":"#/components/schemas/GoogleBusinessProfileLocationSelection"},"type":"array","minItems":1,"title":"Selected Locations","description":"Managed Business Profile locations to import"},"frequency_days":{"type":"integer","maximum":365.0,"minimum":0.0,"title":"Frequency Days","description":"0 for manual-only or a recurring interval in days","default":30}},"type":"object","required":["integration_id","selected_locations"],"title":"GoogleBusinessProfileSourceRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandoverAgentChannel":{"type":"string","enum":["chat","voice"],"title":"HandoverAgentChannel"},"HandoverAgentKind":{"type":"string","enum":["user","external"],"title":"HandoverAgentKind"},"HealthInfo":{"properties":{"status":{"type":"string","title":"Status"},"version":{"type":"string","title":"Version"},"environment":{"type":"string","title":"Environment"},"components":{"additionalProperties":true,"type":"object","title":"Components"}},"type":"object","required":["status","version","environment","components"],"title":"HealthInfo"},"InboundCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status","default":"draft"},"inbound_type":{"type":"string","enum":["phone","whatsapp"],"title":"Inbound Type","default":"phone"},"business_phone":{"items":{"$ref":"#/components/schemas/PhoneNumber"},"type":"array","title":"Business Phone","default":[]},"whatsapp_phone_number_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Whatsapp Phone Number Ids"},"default_sender_phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Sender Phone Number Id"},"workflow_id":{"type":"string","title":"Workflow Id"},"recording_enabled":{"type":"boolean","title":"Recording Enabled","default":false},"echo_cancellation_enabled":{"type":"boolean","title":"Echo Cancellation Enabled","default":true},"noise_suppression_enabled":{"type":"boolean","title":"Noise Suppression Enabled","default":false},"background_audio":{"$ref":"#/components/schemas/BackgroundAudioSettings","default":{"enabled":false,"audio_type":"office_ambience","volume":0.8}},"call_timeout":{"type":"integer","maximum":7200.0,"minimum":60.0,"title":"Call Timeout","default":1800},"timezone":{"type":"string","title":"Timezone"},"silence_threshold":{"type":"integer","title":"Silence Threshold","default":8},"disposition_lists":{"anyOf":[{"items":{"$ref":"#/components/schemas/DispositionListRequest"},"type":"array"},{"type":"null"}],"title":"Disposition Lists"}},"type":"object","required":["name","workflow_id","timezone"],"title":"InboundCreateRequest"},"InboundOverviewResponse":{"properties":{"total_calls":{"type":"integer","title":"Total Calls"},"completed_calls":{"type":"integer","title":"Completed Calls"},"failed_calls":{"type":"integer","title":"Failed Calls"},"timeout_calls":{"type":"integer","title":"Timeout Calls"},"voice_status_breakdown":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Voice Status Breakdown"},"total_duration":{"type":"number","title":"Total Duration"},"success_rate":{"type":"number","title":"Success Rate"},"avg_duration":{"type":"number","title":"Avg Duration"},"calls_by_status":{"additionalProperties":true,"type":"object","title":"Calls By Status"},"calls_by_hour":{"additionalProperties":true,"type":"object","title":"Calls By Hour"},"recent_activity":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Recent Activity"},"graph_data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Graph Data"}},"type":"object","required":["total_calls","completed_calls","failed_calls","timeout_calls","voice_status_breakdown","total_duration","success_rate","avg_duration","calls_by_status","calls_by_hour","recent_activity","graph_data"],"title":"InboundOverviewResponse"},"InboundUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"business_phone":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhoneNumber"},"type":"array"},{"type":"null"}],"title":"Business Phone"},"whatsapp_phone_number_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Whatsapp Phone Number Ids"},"default_sender_phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Sender Phone Number Id"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"},"recording_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Recording Enabled"},"echo_cancellation_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Echo Cancellation Enabled"},"noise_suppression_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Noise Suppression Enabled"},"background_audio":{"anyOf":[{"$ref":"#/components/schemas/BackgroundAudioSettings"},{"type":"null"}]},"call_timeout":{"anyOf":[{"type":"integer","maximum":7200.0,"minimum":60.0},{"type":"null"}],"title":"Call Timeout"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"silence_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Silence Threshold"},"disposition_lists":{"anyOf":[{"items":{"$ref":"#/components/schemas/DispositionListRequest"},"type":"array"},{"type":"null"}],"title":"Disposition Lists"}},"type":"object","title":"InboundUpdateRequest"},"InquiryCreate":{"properties":{"type":{"$ref":"#/components/schemas/InquiryType"},"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"company":{"type":"string","title":"Company"},"message":{"type":"string","title":"Message"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"}},"type":"object","required":["type","name","email","company","message"],"title":"InquiryCreate","description":"Model for creating a new inquiry from contact form"},"InquiryType":{"type":"string","enum":["sales","technical","partnership"],"title":"InquiryType"},"IntegrationStatus":{"type":"string","enum":["active","inactive","error"],"title":"IntegrationStatus"},"IntegrationType":{"type":"string","enum":["google_sheets","google_business_profile","whatsapp","shiprocket","shipprime","calendly","calcom","gmail","mailgun","ses","zoho_mail","google_calendar","outlook_mail","outlook_calendar","shopify","hubspot","salesforce","pipedrive","leadsquared","zoho","custom_webhook","zapier","slack","meta_lead_ads","google_ads_leads","google_local_services","freshdesk","intercom","zendesk","zoho_desk","nexhealth","gohighlevel","jobnimbus","jobber","housecall_pro","stripe"],"title":"IntegrationType"},"InviteStaffRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"staff_role":{"$ref":"#/components/schemas/StaffRole"}},"type":"object","required":["email","staff_role"],"title":"InviteStaffRequest"},"InviteStaffResult":{"properties":{"status":{"type":"string","enum":["granted","invited"],"title":"Status"},"email_sent":{"type":"boolean","title":"Email Sent","default":false}},"type":"object","required":["status"],"title":"InviteStaffResult"},"InvitedSignup":{"properties":{"id":{"type":"string","title":"Id"},"token":{"type":"string","title":"Token"}},"type":"object","required":["id","token"],"title":"InvitedSignup"},"LLMSettings":{"properties":{"provider":{"type":"string","title":"Provider","description":"LLM provider (openai, anthropic, gemini, vertexai, xai, groq, cerebras, mistral, sarvam, smallestai)"},"model":{"type":"string","title":"Model","description":"Model name"},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature","description":"Temperature when the model catalog marks it configurable."},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Effort","description":"Model-specific reasoning effort from the LLM catalog."},"realtime":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Realtime","description":"Whether to use the realtime API (voice only)"},"voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice","description":"Realtime voice from the realtime catalog (Gemini Live, OpenAI Realtime, xAI Grok Voice)."},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","description":"GCP region for Vertex AI Gemini (Live or text). Used when provider is vertexai. Ignored for Gemini Developer API."}},"additionalProperties":false,"type":"object","required":["provider","model"],"title":"LLMSettings","description":"LLM settings for voice and chat agents (standard and voice-only realtime)."},"ListContactSyncAttachRequest":{"properties":{"integration_id":{"type":"string","title":"Integration Id"},"status":{"anyOf":[{"type":"string","enum":["active","inactive"]},{"type":"null"}],"title":"Status","default":"active"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"form_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Form Id"}},"type":"object","required":["integration_id"],"title":"ListContactSyncAttachRequest"},"ListCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name"],"title":"ListCreateRequest"},"ListUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"contact_sync":{"anyOf":[{"$ref":"#/components/schemas/ListContactSyncAttachRequest"},{"type":"null"}]}},"type":"object","title":"ListUpdateRequest"},"LoginData":{"properties":{"user":{"$ref":"#/components/schemas/SafeUser"},"token":{"type":"string","title":"Token"}},"type":"object","required":["user","token"],"title":"LoginData"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MarkNotificationsReadRequest":{"properties":{"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Limit bulk update to a single organization"}},"type":"object","title":"MarkNotificationsReadRequest"},"MascotSheets":{"properties":{"directions":{"type":"string","title":"Directions"},"reactions":{"type":"string","title":"Reactions"}},"type":"object","required":["directions","reactions"],"title":"MascotSheets","description":"URLs of a mascot's two sprite sheets on the public asset host."},"McpDiscoveredTool":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"input_schema":{"additionalProperties":true,"type":"object","title":"Input Schema"}},"type":"object","required":["name"],"title":"McpDiscoveredTool","description":"Cached tool schema from MCP tools/list."},"McpServer":{"properties":{"id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_deleted":{"type":"boolean","title":"Is Deleted","description":"Soft delete flag - marks record as deleted without removing from database","default":false},"organization_id":{"type":"string","format":"ObjectId","title":"Organization Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"project_id":{"type":"string","format":"ObjectId","title":"Project Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"name":{"type":"string","title":"Name"},"transport":{"$ref":"#/components/schemas/McpTransport","default":"streamable_http"},"url":{"type":"string","title":"Url"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"status":{"$ref":"#/components/schemas/McpServerStatus","default":"inactive"},"discovered_tools":{"items":{"$ref":"#/components/schemas/McpDiscoveredTool"},"type":"array","title":"Discovered Tools"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"created_by":{"anyOf":[{"type":"string","format":"ObjectId","example":"656b1f13e4b0e2a3d6a4c5f8"},{"type":"null"}],"title":"Created By"}},"type":"object","required":["organization_id","project_id","name","url"],"title":"McpServer","description":"User-configured remote MCP server for a project."},"McpServerStatus":{"type":"string","enum":["active","inactive","error"],"title":"McpServerStatus"},"McpTransport":{"type":"string","enum":["sse","streamable_http"],"title":"McpTransport"},"ModelSettings":{"properties":{"tts":{"anyOf":[{"$ref":"#/components/schemas/TTSSettings"},{"type":"null"}],"description":"Text-to-Speech settings"},"stt":{"anyOf":[{"$ref":"#/components/schemas/STTSettings"},{"type":"null"}],"description":"Speech-to-Text settings"},"llm":{"anyOf":[{"$ref":"#/components/schemas/LLMSettings"},{"type":"null"}],"description":"LLM settings (standard or realtime)"}},"additionalProperties":false,"type":"object","title":"ModelSettings","description":"Agent model settings: LLM for voice and chat agents, plus STT/TTS for voice."},"NodePosition":{"properties":{"x":{"type":"number","title":"X","description":"X coordinate"},"y":{"type":"number","title":"Y","description":"Y coordinate"}},"type":"object","required":["x","y"],"title":"NodePosition"},"NotificationPreferences":{"properties":{"sound_enabled":{"type":"boolean","title":"Sound Enabled","default":true},"volume":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Volume","default":0.5},"weekly_digest_email":{"type":"boolean","title":"Weekly Digest Email","default":true},"daily_digest_email":{"type":"boolean","title":"Daily Digest Email","default":false}},"type":"object","title":"NotificationPreferences"},"NotificationSettings":{"properties":{"email":{"type":"string","title":"Email","default":""},"handover_escalation_minutes":{"type":"integer","maximum":120.0,"minimum":1.0,"title":"Handover Escalation Minutes","default":5}},"type":"object","title":"NotificationSettings"},"NumericEntitlement":{"properties":{"feature_type":{"type":"string","const":"numeric","title":"Feature Type","default":"numeric"},"allocated":{"anyOf":[{"type":"integer"},{"type":"number"}],"title":"Allocated"},"remaining":{"anyOf":[{"type":"integer"},{"type":"number"}],"title":"Remaining"},"addon_remaining":{"anyOf":[{"type":"integer"},{"type":"number"}],"title":"Addon Remaining"},"resets_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resets At"},"is_enforced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enforced"}},"type":"object","required":["allocated","remaining","addon_remaining","resets_at"],"title":"NumericEntitlement"},"Organization":{"properties":{"_id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_deleted":{"type":"boolean","title":"Is Deleted","description":"Soft delete flag - marks record as deleted without removing from database","default":false},"name":{"type":"string","title":"Name"},"created_by":{"anyOf":[{"type":"string","format":"ObjectId","example":"656b1f13e4b0e2a3d6a4c5f8"},{"type":"null"}],"title":"Created By"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"status":{"type":"string","enum":["active","inactive"],"title":"Status","default":"active"},"payment_gateways":{"additionalProperties":{"type":"string"},"type":"object","title":"Payment Gateways"},"quota_usage":{"additionalProperties":{"$ref":"#/components/schemas/UsageLimit"},"type":"object","title":"Quota Usage"},"quota_version":{"type":"integer","title":"Quota Version","default":0},"quota_source":{"anyOf":[{"$ref":"#/components/schemas/QuotaSource"},{"type":"null"}]},"quota_usage_on_hold":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/UsageLimit"},"type":"object"},{"type":"null"}],"title":"Quota Usage On Hold"},"chat_billing_mode":{"type":"string","enum":["message_credits","per_conversation"],"title":"Chat Billing Mode","description":"Which quota feature blocks chat usage when exhausted: message_credits or per_conversation.","default":"message_credits"},"billing_address":{"anyOf":[{"$ref":"#/components/schemas/BillingAddress"},{"type":"null"}]},"phone_numbers":{"items":{"$ref":"#/components/schemas/PhoneNumber"},"type":"array","title":"Phone Numbers","description":"Phone numbers available for outbound calls (caller ID numbers)"},"provider_trunks":{"additionalProperties":{"type":"string"},"type":"object","title":"Provider Trunks","description":"Mapping of provider name to LiveKit SIP outbound trunk ID (e.g., {'twilio': 'trunk_id_1', 'exotel': 'trunk_id_2'})"},"max_concurrent_calls":{"type":"integer","minimum":1.0,"title":"Max Concurrent Calls","description":"Maximum concurrent voice calls allowed for this organization","default":1},"voice_billing_first_pulse_seconds":{"type":"integer","minimum":1.0,"title":"Voice Billing First Pulse Seconds","description":"Seconds billed for a voice call that ends within the first pulse. Time past this pulse is billed in 30-second pulses.","default":15},"service_tier":{"anyOf":[{"type":"string","const":"priority"},{"type":"null"}],"title":"Service Tier","description":"When 'priority', voice OpenAI uses service_tier=priority; Gemini Developer API uses ServiceTier.PRIORITY; Vertex AI uses Priority PayGo HTTP headers (not the body service_tier field). When None, omit."},"api_keys":{"anyOf":[{"$ref":"#/components/schemas/OrganizationAPIKeys"},{"type":"null"}],"description":"Organization-level API keys for LLM and voice providers (BYOK)"},"signup_attribution":{"anyOf":[{"$ref":"#/components/schemas/SignupAttribution"},{"type":"null"}],"description":"Acquisition attribution copied from the creating user at signup"}},"type":"object","required":["name"],"title":"Organization"},"OrganizationAPIKeys":{"properties":{"openai_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openai Api Key","description":"OpenAI API key"},"anthropic_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthropic Api Key","description":"Anthropic API key (Claude LLM)"},"gemini_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gemini Api Key","description":"Google Gemini API key"},"xai_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Xai Api Key","description":"xAI API key (Grok Voice Agent / Grok LLM)"},"groq_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Groq Api Key","description":"Groq API key (fast Llama/Qwen voice + chat LLM)"},"cerebras_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cerebras Api Key","description":"Cerebras API key (fast OpenAI-compatible chat and voice-cascade LLM)"},"mistral_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mistral Api Key","description":"Mistral API key (Mistral LLM, Voxtral STT and TTS)"},"sarvam_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sarvam Api Key","description":"Sarvam API key"},"raya_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raya Api Key","description":"Raya BakBak API key (TTS; same as RAYA_API_KEY)"},"deepgram_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deepgram Api Key","description":"Deepgram API key"},"cartesia_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cartesia Api Key","description":"Cartesia API key"},"elevenlabs_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Elevenlabs Api Key","description":"ElevenLabs API key"},"smallestai_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Smallestai Api Key","description":"Smallest AI API key"},"soniox_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Soniox Api Key","description":"Soniox API key (STT/TTS; same as SONIOX_API_KEY)"},"speechmatics_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speechmatics Api Key","description":"Speechmatics API key (STT; same as SPEECHMATICS_API_KEY)"},"gnani_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gnani Api Key","description":"Gnani API key (Prisma STT and Timbre TTS)"},"speechify_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speechify Api Key","description":"Speechify API key (TTS; same as SPEECHIFY_API_KEY)"},"inworld_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inworld Api Key","description":"Inworld API key (Base64; LiveKit inworld.TTS and static REST TTS; same as INWORLD_API_KEY)"},"murf_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Murf Api Key","description":"Murf AI API key (Falcon 2 TTS)"},"assemblyai_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assemblyai Api Key","description":"AssemblyAI API key (STT; same as ASSEMBLYAI_API_KEY)"},"rime_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rime Api Key","description":"Rime API key (TTS; same as RIME_API_KEY)"},"fish_api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fish Api Key","description":"Fish Audio API key (TTS; same as FISH_API_KEY)"},"azure_speech_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Speech Key","description":"Azure AI Speech subscription key (LiveKit Azure TTS; AZURE_SPEECH_KEY)"},"azure_speech_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Azure Speech Region","description":"Azure AI Speech region (e.g. centralindia; AZURE_SPEECH_REGION)"},"twilio":{"anyOf":[{"$ref":"#/components/schemas/TwilioConfig"},{"type":"null"}],"description":"Twilio configuration"},"plivo":{"anyOf":[{"$ref":"#/components/schemas/PlivoConfig"},{"type":"null"}],"description":"Plivo configuration"},"telnyx":{"anyOf":[{"$ref":"#/components/schemas/TelnyxConfig"},{"type":"null"}],"description":"Telnyx TeXML REST configuration for static campaigns"},"telephony_sip":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/TelephonySIPConfig"},"type":"object"},{"type":"null"}],"title":"Telephony Sip","description":"Provider-keyed SIP trunk configuration for inbound and outbound telephony"}},"type":"object","title":"OrganizationAPIKeys","description":"Organization-level BYOK API keys; they override environment variables."},"OrganizationUserData":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"organization_roles":{"items":{"type":"string"},"type":"array","title":"Organization Roles"},"projects":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Projects"},"user_details":{"$ref":"#/components/schemas/SafeUser"},"is_owner":{"type":"boolean","title":"Is Owner","default":false}},"type":"object","required":["organization_id","organization_roles","projects","user_details"],"title":"OrganizationUserData"},"PageAccess":{"properties":{"allowed":{"type":"boolean","title":"Allowed"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"feature":{"type":"string","title":"Feature"},"value_points":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Value Points"},"upgrade_plan_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Upgrade Plan Keys"}},"type":"object","required":["allowed","title","description","feature"],"title":"PageAccess"},"PaginationInfo":{"properties":{"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total_pages":{"type":"integer","title":"Total Pages"},"has_next":{"type":"boolean","title":"Has Next"},"has_prev":{"type":"boolean","title":"Has Prev"}},"type":"object","required":["total","page","page_size","total_pages","has_next","has_prev"],"title":"PaginationInfo"},"PaymentHold":{"properties":{"on_hold_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"On Hold Since"},"next_billing_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Billing Date"},"provider":{"$ref":"#/components/schemas/PaymentProvider"}},"type":"object","required":["on_hold_since","next_billing_date","provider"],"title":"PaymentHold","description":"A failed renewal, for the banner every member sees (not only billing)."},"PaymentItem":{"properties":{"_id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"payment_id":{"type":"string","title":"Payment Id"},"status":{"type":"string","title":"Status"},"total_amount":{"type":"number","title":"Total Amount"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"payment_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Method"},"payment_type":{"$ref":"#/components/schemas/PaymentType"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"plan_change":{"type":"boolean","title":"Plan Change","default":false}},"type":"object","required":["_id","payment_id","status","total_amount","currency","payment_method","payment_type","created_at"],"title":"PaymentItem","description":"A payment as billing readers see it: no provider payload or ops flags."},"PaymentLinkData":{"properties":{"payment_link":{"type":"string","title":"Payment Link"}},"type":"object","required":["payment_link"],"title":"PaymentLinkData"},"PaymentLinkRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AddonLineRequest"},"type":"array","minItems":1,"title":"Items"}},"type":"object","required":["items"],"title":"PaymentLinkRequest"},"PaymentProvider":{"type":"string","enum":["dodo","internal"],"title":"PaymentProvider"},"PaymentType":{"type":"string","enum":["add_on","subscription"],"title":"PaymentType"},"PaymentsPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PaymentItem"},"type":"array","title":"Items"},"pagination":{"additionalProperties":true,"type":"object","title":"Pagination"}},"type":"object","required":["items","pagination"],"title":"PaymentsPage"},"PermissionCatalogResponse":{"properties":{"groups":{"items":{"$ref":"#/components/schemas/CatalogGroup"},"type":"array","title":"Groups"}},"type":"object","required":["groups"],"title":"PermissionCatalogResponse"},"PhoneNumber":{"properties":{"number":{"type":"string","title":"Number","description":"Phone number in E.164 format (e.g., +1234567890)"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"Voice provider for this phone number (twilio, exotel, telnyx, frejun, plivo, acefone). Required for outbound calls."}},"type":"object","required":["number"],"title":"PhoneNumber"},"PlanCategory":{"type":"string","enum":["free","subscription","addon","enterprise"],"title":"PlanCategory"},"PlanInterval":{"type":"string","enum":["monthly","yearly","one_time"],"title":"PlanInterval"},"PlanProduct":{"type":"string","enum":["chat","voice"],"title":"PlanProduct"},"PlivoConfig":{"properties":{"auth_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Id","description":"Plivo Auth ID"},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token","description":"Plivo Auth Token"}},"type":"object","title":"PlivoConfig"},"ProactivePromptRequest":{"properties":{"channel_id":{"type":"string","minLength":1,"title":"Channel Id"},"url":{"type":"string","title":"Url"},"page_title":{"type":"string","title":"Page Title"},"page_snippet":{"type":"string","title":"Page Snippet"}},"type":"object","required":["channel_id","url","page_title","page_snippet"],"title":"ProactivePromptRequest"},"ProactivePromptResponse":{"properties":{"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["prompt"],"title":"ProactivePromptResponse"},"Project":{"properties":{"_id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_deleted":{"type":"boolean","title":"Is Deleted","description":"Soft delete flag - marks record as deleted without removing from database","default":false},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"organization_id":{"type":"string","format":"ObjectId","title":"Organization Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_by":{"type":"string","format":"ObjectId","title":"Created By","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"status":{"type":"string","title":"Status","default":"active"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"language":{"type":"string","title":"Language","default":"English"},"timezone":{"type":"string","title":"Timezone"},"notification_settings":{"anyOf":[{"$ref":"#/components/schemas/NotificationSettings"},{"type":"null"}]},"rate_limit_settings":{"anyOf":[{"$ref":"#/components/schemas/RateLimitSettings"},{"type":"null"}]},"industry_profiles":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Industry Profiles"},"disposition_lists":{"additionalProperties":{"items":{"$ref":"#/components/schemas/StoredDispositionList"},"type":"array"},"type":"object","title":"Disposition Lists"},"customer_fields":{"items":{"$ref":"#/components/schemas/CustomerField"},"type":"array","title":"Customer Fields"}},"type":"object","required":["name","organization_id","created_by","timezone"],"title":"Project","description":"Unified project model supporting both text and voice projects"},"ProjectUserAccess":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"organization_roles":{"items":{"type":"string"},"type":"array","title":"Organization Roles"},"project_access":{"additionalProperties":true,"type":"object","title":"Project Access"},"user_details":{"$ref":"#/components/schemas/SafeUser"}},"type":"object","required":["organization_id","organization_roles","project_access","user_details"],"title":"ProjectUserAccess"},"PromptGenerationRequest":{"properties":{"history_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"History Id","description":"Existing history thread id"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Refinement instructions"},"initial_requirement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initial Requirement","description":"Initial requirement for the AI agent"}},"type":"object","title":"PromptGenerationRequest"},"PromptGenerationResponse":{"properties":{"history_id":{"type":"string","title":"History Id"},"status":{"type":"string","title":"Status"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["history_id","status","metadata"],"title":"PromptGenerationResponse"},"PromptHistoryItemResponse":{"properties":{"_id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"initial_requirement":{"type":"string","title":"Initial Requirement"},"latest_prompt":{"type":"string","title":"Latest Prompt"},"latest_metadata":{"additionalProperties":true,"type":"object","title":"Latest Metadata"},"status":{"type":"string","title":"Status"},"requested_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Model"},"attempts":{"type":"integer","title":"Attempts"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"queued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Queued At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"messages":{"items":{"$ref":"#/components/schemas/PromptHistoryMessageResponse"},"type":"array","title":"Messages"},"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","initial_requirement","latest_prompt","latest_metadata","status","attempts","messages","created_at","updated_at"],"title":"PromptHistoryItemResponse"},"PromptHistoryListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PromptHistoryItemResponse"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/PaginationInfo"}},"type":"object","required":["items","pagination"],"title":"PromptHistoryListResponse"},"PromptHistoryMessageResponse":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"kind":{"type":"string","title":"Kind"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["role","content","kind","created_at"],"title":"PromptHistoryMessageResponse"},"PublicPlan":{"properties":{"_id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_deleted":{"type":"boolean","title":"Is Deleted","description":"Soft delete flag - marks record as deleted without removing from database","default":false},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"category":{"$ref":"#/components/schemas/PlanCategory"},"product":{"$ref":"#/components/schemas/PlanProduct","default":"chat"},"pricing":{"additionalProperties":{"additionalProperties":{"$ref":"#/components/schemas/PublicPricePoint"},"type":"object"},"type":"object","title":"Pricing","default":{}},"features":{"items":{"type":"string"},"type":"array","title":"Features"},"feature_limits":{"additionalProperties":true,"type":"object","title":"Feature Limits"},"allowed_channels":{"items":{"type":"string"},"type":"array","title":"Allowed Channels"},"is_active":{"type":"boolean","title":"Is Active","default":true},"is_popular":{"type":"boolean","title":"Is Popular","default":false},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["key","name","description","category"],"title":"PublicPlan"},"PublicPricePoint":{"properties":{"price_cents":{"type":"integer","title":"Price Cents"},"original_price_cents":{"type":"integer","title":"Original Price Cents"}},"type":"object","required":["price_cents","original_price_cents"],"title":"PublicPricePoint","description":"A price as shown publicly (gateway product ids stay server-side)."},"QuotaSource":{"properties":{"subscription_id":{"type":"string","format":"ObjectId","title":"Subscription Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"plan_id":{"type":"string","format":"ObjectId","title":"Plan Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"plan_interval":{"$ref":"#/components/schemas/PlanInterval"}},"type":"object","required":["subscription_id","plan_id","plan_interval"],"title":"QuotaSource"},"RateLimitSettings":{"properties":{"project_per_minute":{"type":"integer","title":"Project Per Minute","default":100},"lead_per_minute":{"type":"integer","title":"Lead Per Minute","default":20},"project_per_hour":{"type":"integer","title":"Project Per Hour","default":500},"lead_per_hour":{"type":"integer","title":"Lead Per Hour","default":100}},"type":"object","title":"RateLimitSettings"},"RenderedTemplatePreview":{"properties":{"segments":{"items":{"$ref":"#/components/schemas/TemplatePreviewSegment"},"type":"array","title":"Segments"},"diagnostics":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Diagnostics"}},"type":"object","required":["segments","diagnostics"],"title":"RenderedTemplatePreview"},"ResendVerificationRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ResendVerificationRequest"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetPasswordRequest"},"ResponseModel":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel"},"ResponseModel_ActiveSubscriptionResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ActiveSubscriptionResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[ActiveSubscriptionResponse]"},"ResponseModel_AiAction_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/AiAction"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[AiAction]"},"ResponseModel_Analytics_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/Analytics"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[Analytics]"},"ResponseModel_ApiKeyCreateResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyCreateResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[ApiKeyCreateResponse]"},"ResponseModel_AttachmentUploadResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/AttachmentUploadResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[AttachmentUploadResponse]"},"ResponseModel_BookingListResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/BookingListResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[BookingListResponse]"},"ResponseModel_BookingResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/BookingResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[BookingResponse]"},"ResponseModel_BookingStatsResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/BookingStatsResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[BookingStatsResponse]"},"ResponseModel_CampaignOverviewResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CampaignOverviewResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CampaignOverviewResponse]"},"ResponseModel_Channel_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/Channel"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[Channel]"},"ResponseModel_ChatConversationThreadsData_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ChatConversationThreadsData"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[ChatConversationThreadsData]"},"ResponseModel_CreateCallResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CreateCallResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CreateCallResponse]"},"ResponseModel_CreateSubscriptionResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CreateSubscriptionResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CreateSubscriptionResponse]"},"ResponseModel_CsvExportData_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CsvExportData"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CsvExportData]"},"ResponseModel_CsvImportData_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CsvImportData"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CsvImportData]"},"ResponseModel_CsvImportHistoryPage_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CsvImportHistoryPage"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CsvImportHistoryPage]"},"ResponseModel_CsvImportStartData_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CsvImportStartData"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CsvImportStartData]"},"ResponseModel_CustomerPortalData_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CustomerPortalData"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CustomerPortalData]"},"ResponseModel_CustomerProfileInitResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CustomerProfileInitResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CustomerProfileInitResponse]"},"ResponseModel_CustomerProfileListData_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CustomerProfileListData"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CustomerProfileListData]"},"ResponseModel_CustomerProfileResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CustomerProfileResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[CustomerProfileResponse]"},"ResponseModel_Dict_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[Dict]"},"ResponseModel_Dict_str__Any__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[Dict[str, Any]]"},"ResponseModel_EntitlementsResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/EntitlementsResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[EntitlementsResponse]"},"ResponseModel_HealthInfo_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/HealthInfo"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[HealthInfo]"},"ResponseModel_InboundOverviewResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/InboundOverviewResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[InboundOverviewResponse]"},"ResponseModel_InviteStaffResult_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/InviteStaffResult"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[InviteStaffResult]"},"ResponseModel_List_AiAction__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AiAction"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[AiAction]]"},"ResponseModel_List_ApiKey__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ApiKey"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[ApiKey]]"},"ResponseModel_List_Channel__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/Channel"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[Channel]]"},"ResponseModel_List_CsvExportRecipient__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CsvExportRecipient"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[CsvExportRecipient]]"},"ResponseModel_List_CustomerField__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomerField"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[CustomerField]]"},"ResponseModel_List_McpServer__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/McpServer"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[McpServer]]"},"ResponseModel_List_OrganizationUserData__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/OrganizationUserData"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[OrganizationUserData]]"},"ResponseModel_List_ProjectUserAccess__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProjectUserAccess"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[ProjectUserAccess]]"},"ResponseModel_List_PublicPlan__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PublicPlan"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[PublicPlan]]"},"ResponseModel_List_StaffInvitationResponse__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/StaffInvitationResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[StaffInvitationResponse]]"},"ResponseModel_List_StaffUser__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/StaffUser"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[StaffUser]]"},"ResponseModel_List_TimelineEventResponse__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/TimelineEventResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[TimelineEventResponse]]"},"ResponseModel_List_UserSessionData__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/UserSessionData"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[UserSessionData]]"},"ResponseModel_List_WhatsAppBroadcastLatestResponse__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WhatsAppBroadcastLatestResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[WhatsAppBroadcastLatestResponse]]"},"ResponseModel_List_dict__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[dict]]"},"ResponseModel_List_str__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[List[str]]"},"ResponseModel_LoginData_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/LoginData"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[LoginData]"},"ResponseModel_McpServer_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/McpServer"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[McpServer]"},"ResponseModel_NoneType_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"type":"null","title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[NoneType]"},"ResponseModel_Organization_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/Organization"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[Organization]"},"ResponseModel_PaymentLinkData_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/PaymentLinkData"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[PaymentLinkData]"},"ResponseModel_PaymentsPage_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/PaymentsPage"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[PaymentsPage]"},"ResponseModel_PermissionCatalogResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/PermissionCatalogResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[PermissionCatalogResponse]"},"ResponseModel_ProactivePromptResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ProactivePromptResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[ProactivePromptResponse]"},"ResponseModel_Project_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/Project"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[Project]"},"ResponseModel_PromptGenerationResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/PromptGenerationResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[PromptGenerationResponse]"},"ResponseModel_PromptHistoryItemResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/PromptHistoryItemResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[PromptHistoryItemResponse]"},"ResponseModel_PromptHistoryListResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/PromptHistoryListResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[PromptHistoryListResponse]"},"ResponseModel_RoleResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/RoleResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[RoleResponse]"},"ResponseModel_RolesResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/RolesResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[RolesResponse]"},"ResponseModel_SignInHistory_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/SignInHistory"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[SignInHistory]"},"ResponseModel_SourceListResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/SourceListResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[SourceListResponse]"},"ResponseModel_StaffMe_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/StaffMe"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[StaffMe]"},"ResponseModel_StaffUser_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/StaffUser"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[StaffUser]"},"ResponseModel_SubscriptionChangeResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionChangeResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[SubscriptionChangeResponse]"},"ResponseModel_SyncResult_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/SyncResult"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[SyncResult]"},"ResponseModel_TemplatePreviewResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/TemplatePreviewResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[TemplatePreviewResponse]"},"ResponseModel_TicketListResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/TicketListResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[TicketListResponse]"},"ResponseModel_TicketResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/TicketResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[TicketResponse]"},"ResponseModel_TicketStatsResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/TicketStatsResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[TicketStatsResponse]"},"ResponseModel_Union_CsvImportData__NoneType__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CsvImportData"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[Union[CsvImportData, NoneType]]"},"ResponseModel_Union_LoginData__dict__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/LoginData"},{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[Union[LoginData, dict]]"},"ResponseModel_Union_WidgetConfigResponse__WebVoiceWidgetConfigResponse__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WidgetConfigResponse"},{"$ref":"#/components/schemas/WebVoiceWidgetConfigResponse"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[Union[WidgetConfigResponse, WebVoiceWidgetConfigResponse]]"},"ResponseModel_Union_dict__NoneType__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[Union[dict, NoneType]]"},"ResponseModel_UserPermissionsResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/UserPermissionsResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[UserPermissionsResponse]"},"ResponseModel_UserProfile_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/UserProfile"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[UserProfile]"},"ResponseModel_WhatsAppTemplateCreateResult_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppTemplateCreateResult"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[WhatsAppTemplateCreateResult]"},"ResponseModel_WhatsAppTemplateDeleteResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppTemplateDeleteResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[WhatsAppTemplateDeleteResponse]"},"ResponseModel_WhatsAppTemplateListResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppTemplateListResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[WhatsAppTemplateListResponse]"},"ResponseModel_WhatsAppTemplateMediaUploadResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppTemplateMediaUploadResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[WhatsAppTemplateMediaUploadResponse]"},"ResponseModel_WhatsAppTemplateStarterListResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppTemplateStarterListResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[WhatsAppTemplateStarterListResponse]"},"ResponseModel_WhatsAppTemplateSyncResponse_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppTemplateSyncResponse"},{"type":"null"}]},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[WhatsAppTemplateSyncResponse]"},"ResponseModel_bool_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[bool]"},"ResponseModel_dict_":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[dict]"},"ResponseModel_list_WorkflowTemplateResponse__":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WorkflowTemplateResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"status_code":{"type":"integer","title":"Status Code","default":200}},"type":"object","required":["status","message"],"title":"ResponseModel[list[WorkflowTemplateResponse]]"},"RetryCallRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"}},"type":"object","required":["phone_number"],"title":"RetryCallRequest"},"RetryStepBody":{"properties":{"log_index":{"type":"integer","minimum":0.0,"title":"Log Index"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["log_index"],"title":"RetryStepBody"},"RoleResponse":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"scopes":{"items":{"type":"string","enum":["organization","project"]},"type":"array","title":"Scopes"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions"},"custom":{"type":"boolean","title":"Custom"}},"type":"object","required":["value","label","description","scopes","permissions","custom"],"title":"RoleResponse"},"RolesResponse":{"properties":{"roles":{"items":{"$ref":"#/components/schemas/RoleResponse"},"type":"array","title":"Roles"}},"type":"object","required":["roles"],"title":"RolesResponse"},"RunsOnChange":{"properties":{"source_type":{"type":"string","title":"Source Type"},"source_id":{"type":"string","title":"Source Id"},"on":{"type":"boolean","title":"On"}},"type":"object","required":["source_type","source_id","on"],"title":"RunsOnChange"},"STTSettings":{"properties":{"provider":{"type":"string","title":"Provider","description":"STT provider (deepgram, vertexai, sarvam, cartesia, xai, smallestai, soniox, openai, assemblyai, elevenlabs, inworld, gemini, speechmatics, mistral, gnani)"},"model":{"type":"string","title":"Model","description":"STT model to use"},"languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Languages","description":"STT languages from the catalog for the selected model. Single-language models accept one value; multilingual models may accept several."},"provider_options":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Provider Options","description":"Catalog-validated provider-specific STT accuracy controls (keyterms, prompts, mode, sliders). Keys must match the selected provider and model."},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","description":"Optional STT region. Vertex AI Chirp 3 uses a catalog region (us or eu)."}},"type":"object","required":["provider","model"],"title":"STTSettings","description":"Speech-to-Text settings; ``model``, ``languages`` and ``provider_options`` must\nmatch the STT catalog. The voice workers set the sample rate, not this model."},"SafeUser":{"properties":{"_id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_deleted":{"type":"boolean","title":"Is Deleted","description":"Soft delete flag - marks record as deleted without removing from database","default":false},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"last_password_change":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Password Change"},"google_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Id"},"last_login":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login"},"auth_type":{"anyOf":[{"items":{"$ref":"#/components/schemas/AuthType"},"type":"array"},{"type":"null"}],"title":"Auth Type"},"email_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Verified","default":false},"profile_picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture"},"preferences":{"$ref":"#/components/schemas/UserPreferences"}},"type":"object","required":["name","email"],"title":"SafeUser"},"SaveCustomerFieldsRequest":{"properties":{"fields":{"items":{"$ref":"#/components/schemas/CustomerFieldInput"},"type":"array","title":"Fields"}},"type":"object","required":["fields"],"title":"SaveCustomerFieldsRequest"},"SaveDispositionListsRequest":{"properties":{"lists":{"items":{"$ref":"#/components/schemas/DispositionListRequest"},"type":"array","title":"Lists"}},"type":"object","title":"SaveDispositionListsRequest"},"SaveIndustrySetupRequest":{"properties":{"values":{"additionalProperties":true,"type":"object","title":"Values"}},"type":"object","title":"SaveIndustrySetupRequest"},"SendInvitationRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"organization_roles":{"items":{"type":"string"},"type":"array","title":"Organization Roles"}},"type":"object","required":["email","organization_roles"],"title":"SendInvitationRequest"},"SendPhoneCodeRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"channel":{"type":"string","enum":["sms","whatsapp"],"title":"Channel"}},"type":"object","required":["phone_number","channel"],"title":"SendPhoneCodeRequest"},"SendWhatsAppInboxTemplateRequest":{"properties":{"template_id":{"type":"string","minLength":1,"title":"Template Id"},"template_components":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Template Components"},"sender_phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Phone Number Id"},"to_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Phone Number"}},"type":"object","required":["template_id"],"title":"SendWhatsAppInboxTemplateRequest"},"Sentiment":{"type":"string","enum":["positive","negative","neutral"],"title":"Sentiment"},"SetConversationHandlerRequest":{"properties":{"handler":{"type":"string","enum":["ai","agent"],"title":"Handler"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"expected_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Agent Id"}},"type":"object","required":["handler","expected_agent_id"],"title":"SetConversationHandlerRequest"},"SetFollowUpDueDateRequest":{"properties":{"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"}},"type":"object","required":["due_date"],"title":"SetFollowUpDueDateRequest"},"SetFollowUpOwnerRequest":{"properties":{"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"expected_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Agent Id"}},"type":"object","required":["agent_id","expected_agent_id"],"title":"SetFollowUpOwnerRequest"},"ShopifyAppEmbedPrepareRequest":{"properties":{"channel_id":{"type":"string","minLength":1,"title":"Channel Id"},"integration_id":{"type":"string","minLength":1,"title":"Integration Id"}},"type":"object","required":["channel_id","integration_id"],"title":"ShopifyAppEmbedPrepareRequest"},"SignInData":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"method":{"type":"string","enum":["password","google"],"title":"Method"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"}},"type":"object","required":["at","method","ip","user_agent"],"title":"SignInData"},"SignInHistory":{"properties":{"signed_in":{"items":{"$ref":"#/components/schemas/SignInData"},"type":"array","title":"Signed In"},"failed":{"items":{"$ref":"#/components/schemas/SignInData"},"type":"array","title":"Failed"}},"type":"object","required":["signed_in","failed"],"title":"SignInHistory"},"SignupAttribution":{"properties":{"utm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"},"utm_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Medium"},"utm_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Campaign"},"utm_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Content"},"utm_term":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Term"},"referrer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Referrer"},"landing_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Landing Path"},"heard_about":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heard About"},"captured_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Captured At"}},"type":"object","title":"SignupAttribution","description":"Marketing / acquisition attribution captured at account signup."},"SignupRequest":{"properties":{"organization_name":{"type":"string","title":"Organization Name"},"user_name":{"type":"string","title":"User Name"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"signup_attribution":{"anyOf":[{"$ref":"#/components/schemas/SignupAttribution"},{"type":"null"}]},"invitation":{"anyOf":[{"$ref":"#/components/schemas/InvitedSignup"},{"type":"null"}]}},"type":"object","required":["organization_name","user_name","email","password"],"title":"SignupRequest"},"SourceListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SourceWithUser"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/PaginationInfo"}},"type":"object","required":["items","pagination"],"title":"SourceListResponse"},"SourceWithUser":{"properties":{"_id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"source_type":{"type":"string","title":"Source Type"},"sync_status":{"type":"string","title":"Sync Status"},"file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size"},"file_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Type"},"s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Key"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_by":{"$ref":"#/components/schemas/api_service__routers__sources__UserInfo"},"project_id":{"type":"string","title":"Project Id"},"organization_id":{"type":"string","title":"Organization Id"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"last_synced":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced"}},"type":"object","required":["_id","name","source_type","sync_status","created_at","updated_at","created_by","project_id","organization_id"],"title":"SourceWithUser"},"StaffInvitationResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"staff_role":{"$ref":"#/components/schemas/StaffRole"},"invited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["id","email","staff_role","expires_at"],"title":"StaffInvitationResponse"},"StaffMe":{"properties":{"is_staff_admin":{"type":"boolean","title":"Is Staff Admin"},"staff_domain":{"type":"string","title":"Staff Domain"},"role_options":{"items":{"$ref":"#/components/schemas/StaffRoleOption"},"type":"array","title":"Role Options"}},"type":"object","required":["is_staff_admin","staff_domain","role_options"],"title":"StaffMe"},"StaffRole":{"type":"string","enum":["super_developer","super_admin"],"title":"StaffRole","description":"Stored on the user as ``platform_role``, with its original values."},"StaffRoleOption":{"properties":{"value":{"$ref":"#/components/schemas/StaffRole"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"StaffRoleOption"},"StaffUser":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"is_staff_admin":{"type":"boolean","title":"Is Staff Admin"},"staff_role":{"anyOf":[{"$ref":"#/components/schemas/StaffRole"},{"type":"null"}]},"staff_role_updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Staff Role Updated By"},"staff_role_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Staff Role Updated At"},"email_verified":{"type":"boolean","title":"Email Verified","default":false}},"type":"object","required":["id","name","email","is_staff_admin"],"title":"StaffUser"},"StoredDispositionList":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"options":{"items":{"$ref":"#/components/schemas/StoredDispositionValue"},"type":"array","title":"Options"},"show_in_list":{"type":"boolean","title":"Show In List","default":false}},"type":"object","required":["key","label","description"],"title":"StoredDispositionList"},"StoredDispositionValue":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"StoredDispositionValue"},"Subscription":{"properties":{"_id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_deleted":{"type":"boolean","title":"Is Deleted","description":"Soft delete flag - marks record as deleted without removing from database","default":false},"organization_id":{"type":"string","format":"ObjectId","title":"Organization Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"plan_id":{"type":"string","format":"ObjectId","title":"Plan Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"status":{"$ref":"#/components/schemas/SubscriptionStatus"},"previous_billing_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous Billing Date"},"next_billing_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Billing Date"},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false},"pending_plan_id":{"anyOf":[{"type":"string","format":"ObjectId","example":"656b1f13e4b0e2a3d6a4c5f8"},{"type":"null"}],"title":"Pending Plan Id"},"pending_plan_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pending Plan Requested At"},"scheduled_plan_id":{"anyOf":[{"type":"string","format":"ObjectId","example":"656b1f13e4b0e2a3d6a4c5f8"},{"type":"null"}],"title":"Scheduled Plan Id"},"scheduled_plan_effective_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Plan Effective At"},"scheduled_plan_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Scheduled Plan Price Cents"},"scheduled_plan_created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Plan Created At"},"plan_name":{"type":"string","title":"Plan Name"},"plan_key":{"type":"string","title":"Plan Key","default":""},"plan_price_cents":{"type":"integer","title":"Plan Price Cents"},"plan_interval":{"$ref":"#/components/schemas/PlanInterval"},"plan_currency":{"type":"string","title":"Plan Currency","default":"USD"},"plan_product":{"$ref":"#/components/schemas/PlanProduct","default":"chat"},"plan_category":{"$ref":"#/components/schemas/PlanCategory"},"plan_features_limit":{"additionalProperties":{"type":"integer"},"type":"object","title":"Plan Features Limit"},"provider":{"$ref":"#/components/schemas/PaymentProvider"},"provider_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Subscription Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"on_hold_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"On Hold Since"},"last_provider_event_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Provider Event At"}},"type":"object","required":["organization_id","plan_id","status","plan_name","plan_price_cents","plan_interval","plan_category","provider"],"title":"Subscription"},"SubscriptionChangeResponse":{"properties":{"subscription":{"$ref":"#/components/schemas/Subscription"},"message":{"type":"string","title":"Message"}},"type":"object","required":["subscription","message"],"title":"SubscriptionChangeResponse"},"SubscriptionStatus":{"type":"string","enum":["active","pending","on_hold","cancelled","failed","expired"],"title":"SubscriptionStatus"},"SyncResult":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"SyncResult"},"TTSSettings":{"properties":{"provider":{"type":"string","title":"Provider","description":"TTS provider (cartesia, elevenlabs, sarvam, etc.)"},"model":{"type":"string","title":"Model","description":"TTS model to use"},"voice_id":{"type":"string","title":"Voice Id","description":"Preset voice ID for synthesis","default":""},"custom_voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Voice Id","description":"Custom voice ID for ElevenLabs, Deepgram, Cartesia, Sarvam, Vertex AI (voice name), xAI, Smallest AI Waves, Azure AI Speech, Rime, or Fish Audio. If provided, this will be used instead of voice_id."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language code for TTS (e.g., 'en', 'es', 'fr')"},"voiceConfig":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Voiceconfig","description":"Provider-specific voice configuration"}},"type":"object","required":["provider","model"],"title":"TTSSettings"},"TelephonySIPConfig":{"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"SIP server address or trunk domain"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username","description":"SIP auth username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password","description":"SIP auth password"},"destination_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination Country","description":"Optional ISO country code for LiveKit SIP routing/formatting"},"inbound_allowed_addresses":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Inbound Allowed Addresses","description":"Carrier SIP signaling IPs/CIDRs allowed to send inbound calls to LiveKit"},"inbound_auth_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbound Auth Username","description":"Username LiveKit expects on inbound SIP INVITEs"},"inbound_auth_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbound Auth Password","description":"Password LiveKit expects on inbound SIP INVITEs"}},"type":"object","title":"TelephonySIPConfig","description":"LiveKit SIP trunk configuration for a telephony provider."},"TelnyxConfig":{"properties":{"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key","description":"Telnyx API key (not SIP username/password)"},"connection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connection Id","description":"TeXML application connection ID used to start outbound calls"}},"type":"object","title":"TelnyxConfig","description":"Telnyx TeXML REST configuration for static TTS campaigns."},"TemplatePreviewRequest":{"properties":{"surface":{"type":"string","enum":["workflow","automation","static_script"],"title":"Surface"},"texts":{"additionalProperties":{"type":"string","maxLength":100000},"propertyNames":{"maxLength":100},"type":"object","maxProperties":10,"title":"Texts"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"}},"type":"object","required":["surface"],"title":"TemplatePreviewRequest"},"TemplatePreviewResponse":{"properties":{"texts":{"additionalProperties":{"$ref":"#/components/schemas/RenderedTemplatePreview"},"type":"object","title":"Texts"}},"type":"object","required":["texts"],"title":"TemplatePreviewResponse"},"TemplatePreviewSegment":{"properties":{"text":{"type":"string","title":"Text"},"kind":{"type":"string","enum":["text","value","fallback","missing","sample"],"title":"Kind"},"variables":{"items":{"type":"string"},"type":"array","title":"Variables"}},"type":"object","required":["text","kind","variables"],"title":"TemplatePreviewSegment"},"TestAiActionRequest":{"properties":{"action_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Id"},"action_config":{"anyOf":[{"$ref":"#/components/schemas/AiActionForm"},{"type":"null"}]},"test_parameters":{"additionalProperties":true,"type":"object","title":"Test Parameters","default":{}}},"type":"object","title":"TestAiActionRequest","description":"A saved action (``action_id``), an unsaved form (``action_config``), or a\nsaved action's edited form (both)."},"TicketAssignee":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["agent_id","name"],"title":"TicketAssignee","description":"The handover agent a ticket is assigned to, with the name it had then."},"TicketCommentResponse":{"properties":{"body":{"type":"string","title":"Body"},"visibility":{"type":"string","title":"Visibility"},"author":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Author"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["body","visibility","created_at"],"title":"TicketCommentResponse"},"TicketListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TicketResponse"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/PaginationInfo"}},"type":"object","required":["items","pagination"],"title":"TicketListResponse"},"TicketResponse":{"properties":{"_id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"organization_id":{"type":"string","title":"Organization Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"phone":{"type":"string","title":"Phone"},"issue":{"type":"string","title":"Issue"},"status":{"type":"string","title":"Status"},"priority":{"type":"string","title":"Priority"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"comments":{"items":{"$ref":"#/components/schemas/TicketCommentResponse"},"type":"array","title":"Comments"},"updated_by":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Updated By"},"customer_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Profile Id"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"},"notification_status":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Notification Status"},"ticket_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ticket Number"},"conversation_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Source Id"},"conversation_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Type"},"assigned_to":{"anyOf":[{"$ref":"#/components/schemas/TicketAssignee"},{"type":"null"}]},"assigned_by":{"anyOf":[{"$ref":"#/components/schemas/api_service__models__ticket__UserInfo"},{"type":"null"}]},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned 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","project_id","organization_id","name","email","phone","issue","status","priority","created_at","updated_at"],"title":"TicketResponse"},"TicketStatsResponse":{"properties":{"total":{"type":"integer","title":"Total"},"open_work":{"type":"integer","title":"Open Work","default":0},"waiting":{"type":"integer","title":"Waiting","default":0},"resolved":{"type":"integer","title":"Resolved","default":0},"closed":{"type":"integer","title":"Closed","default":0}},"type":"object","required":["total"],"title":"TicketStatsResponse"},"TimelineEventResponse":{"properties":{"_id":{"type":"string","title":"Id"},"conversation_type":{"type":"string","title":"Conversation Type"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"},"start_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Time"},"status":{"type":"string","title":"Status"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"display_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Summary"},"last_message_preview":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Message Preview"},"message_count":{"type":"integer","title":"Message Count","default":0},"customer_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Profile Id"},"conversation_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Source Id"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"sentiment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sentiment"},"resolved_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved Status"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"close_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Reason"},"hangup_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hangup Reason"},"duration_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration Seconds"},"from_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Phone Number"},"to_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Phone Number"},"key_topics":{"items":{"type":"string"},"type":"array","title":"Key Topics"}},"additionalProperties":true,"type":"object","required":["_id","conversation_type","status"],"title":"TimelineEventResponse"},"ToolConfig":{"properties":{"name":{"type":"string","title":"Name","description":"Tool name/identifier"},"integration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration Id","description":"Which integration to use (if tool requires one)"},"sheet_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sheet Id","description":"Google Sheet spreadsheet ID (google_sheets tool)"},"sheet_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sheet Name","description":"Google Sheet display name (google_sheets tool)"},"selected_columns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Selected Columns","description":"Column names the agent may write (google_sheets tool)"},"mcp_server_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mcp Server Id","description":"MCP server id when this tool is a discovered remote MCP tool"},"from_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Phone Number","description":"Organization Twilio number to send SMS from (send_sms tool)"},"escalation_rule_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Rule Id","description":"AI agent automation id for escalate_to_oncall"},"slack_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Id","description":"Slack member or channel id for send_slack"},"slack_destination_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Destination Type","description":"send_slack dest kind: member or channel"},"whatsapp_templates":{"anyOf":[{"items":{"$ref":"#/components/schemas/WhatsAppTemplateToolSelection"},"type":"array"},{"type":"null"}],"title":"Whatsapp Templates","description":"Approved WhatsApp templates allowlisted for send_whatsapp_template"}},"type":"object","required":["name"],"title":"ToolConfig"},"TwilioConfig":{"properties":{"account_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Sid","description":"Twilio Account SID"},"auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Token","description":"Twilio Auth Token"}},"type":"object","title":"TwilioConfig"},"UpdateBookingRequest":{"properties":{"external_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Url"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"UpdateBookingRequest"},"UpdateDomainSourceRequest":{"properties":{"max_pages":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Max Pages"},"max_depth":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Max Depth"},"exclude_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Patterns"},"include_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Include Patterns"},"frequency_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Frequency Days"},"crawler":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crawler","description":"Either 'crawl4ai' or 'apify'"}},"type":"object","title":"UpdateDomainSourceRequest"},"UpdateHandoverAgentEnabledRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"UpdateHandoverAgentEnabledRequest"},"UpdateHandoverAgentRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"channels":{"anyOf":[{"items":{"$ref":"#/components/schemas/HandoverAgentChannel"},"type":"array"},{"type":"null"}],"title":"Channels"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/WeeklySchedule"},{"type":"null"}]},"text_when_off_hours":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Text When Off Hours"}},"type":"object","title":"UpdateHandoverAgentRequest"},"UpdateIntegrationRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"$ref":"#/components/schemas/IntegrationStatus"},{"type":"null"}]},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"}},"type":"object","title":"UpdateIntegrationRequest"},"UpdateMcpServerRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"transport":{"anyOf":[{"$ref":"#/components/schemas/McpTransport"},{"type":"null"}]},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"}},"type":"object","title":"UpdateMcpServerRequest"},"UpdateNotificationPreferencesRequest":{"properties":{"sound_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sound Enabled"},"volume":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Volume"},"weekly_digest_email":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Weekly Digest Email"},"daily_digest_email":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Daily Digest Email"}},"type":"object","title":"UpdateNotificationPreferencesRequest"},"UpdateNotificationRequest":{"properties":{"read":{"type":"boolean","title":"Read","description":"Mark notification as read","default":true}},"type":"object","title":"UpdateNotificationRequest"},"UpdateOrganizationRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"type":"string","enum":["active","inactive"]},{"type":"null"}],"title":"Status"},"billing_address":{"anyOf":[{"$ref":"#/components/schemas/BillingAddress"},{"type":"null"}]},"phone_numbers":{"anyOf":[{"items":{"$ref":"#/components/schemas/PhoneNumber"},"type":"array"},{"type":"null"}],"title":"Phone Numbers"},"api_keys":{"anyOf":[{"$ref":"#/components/schemas/OrganizationAPIKeys"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"UpdateOrganizationRequest"},"UpdateProfileRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"preferences":{"anyOf":[{"$ref":"#/components/schemas/UpdateUserPreferencesRequest"},{"type":"null"}]}},"type":"object","title":"UpdateProfileRequest"},"UpdateProjectRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"notification_settings":{"anyOf":[{"$ref":"#/components/schemas/NotificationSettings"},{"type":"null"}]},"rate_limit_settings":{"anyOf":[{"$ref":"#/components/schemas/RateLimitSettings"},{"type":"null"}]}},"type":"object","title":"UpdateProjectRequest"},"UpdateProjectUserAccessRequest":{"properties":{"users_access":{"items":{"$ref":"#/components/schemas/UserAccessRequest"},"type":"array","title":"Users Access"}},"type":"object","required":["users_access"],"title":"UpdateProjectUserAccessRequest"},"UpdateRoleRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions"}},"additionalProperties":false,"type":"object","title":"UpdateRoleRequest"},"UpdateStaffRoleRequest":{"properties":{"staff_role":{"anyOf":[{"$ref":"#/components/schemas/StaffRole"},{"type":"null"}]}},"type":"object","title":"UpdateStaffRoleRequest"},"UpdateTicketRequest":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"internal_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internal Comment"},"customer_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Comment"},"assigned_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned Agent Id"}},"type":"object","title":"UpdateTicketRequest"},"UpdateUserOrganizationAccessRequest":{"properties":{"organization_roles":{"items":{"type":"string"},"type":"array","title":"Organization Roles"}},"type":"object","required":["organization_roles"],"title":"UpdateUserOrganizationAccessRequest"},"UpdateUserPreferencesRequest":{"properties":{"notifications":{"anyOf":[{"$ref":"#/components/schemas/UpdateNotificationPreferencesRequest"},{"type":"null"}]},"product_tour_completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Product Tour Completed"}},"type":"object","title":"UpdateUserPreferencesRequest"},"UpdateUserProjectAccessRequest":{"properties":{"project_roles":{"items":{"type":"string"},"type":"array","title":"Project Roles"}},"type":"object","required":["project_roles"],"title":"UpdateUserProjectAccessRequest"},"UpdateWorkflowRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"expected_revision":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Expected Revision"},"force_overwrite":{"type":"boolean","title":"Force Overwrite","default":false},"nodes":{"anyOf":[{"items":{"$ref":"#/components/schemas/WorkflowNode"},"type":"array"},{"type":"null"}],"title":"Nodes"},"edges":{"anyOf":[{"items":{"$ref":"#/components/schemas/WorkflowEdge"},"type":"array"},{"type":"null"}],"title":"Edges"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/WorkflowMetadata"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"UpdateWorkflowRequest","description":"Status is not editable here (unknown fields are rejected): publishing goes\nthrough the publish endpoint, which publishes a workflow only once."},"UploadDocumentDomainsRequest":{"properties":{"domain":{"type":"string","title":"Domain"},"crawling_strategy":{"type":"string","title":"Crawling Strategy","description":"Either 'sitemap' or 'deep_crawl'","default":"deep_crawl"},"max_pages":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Max Pages","default":50},"max_depth":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Max Depth","default":3},"exclude_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Patterns"},"include_patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Include Patterns","description":"Regex/glob patterns; only matching URLs are crawled (whitelist)."},"frequency_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Frequency Days","description":"Frequency in days for automatic recrawling. If set, domain will be recrawled after this many days from last crawl date.","default":30},"crawler":{"type":"string","title":"Crawler","description":"Either 'crawl4ai' or 'apify'","default":"crawl4ai"}},"type":"object","required":["domain"],"title":"UploadDocumentDomainsRequest"},"UploadDocumentUrlsRequest":{"properties":{"urls":{"items":{"type":"string"},"type":"array","title":"Urls"},"crawler":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crawler","description":"Either 'crawl4ai' or 'apify'","default":"crawl4ai"}},"type":"object","required":["urls"],"title":"UploadDocumentUrlsRequest"},"UsageFeature":{"type":"string","enum":["messages","conversations","projects","users","upload_characters","links","voice_seconds","whatsapp_template_sends","ai_prompt_generations","advanced_analytics","white_label","priority_support","voice_lab"],"title":"UsageFeature"},"UsageLimit":{"properties":{"feature":{"$ref":"#/components/schemas/UsageFeature"},"remaining":{"type":"integer","title":"Remaining","default":0},"allocated":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Allocated"},"addon_remaining":{"type":"integer","title":"Addon Remaining","default":0},"pack_used":{"type":"integer","title":"Pack Used","default":0},"overage":{"type":"integer","title":"Overage","default":0},"carried_usage":{"type":"integer","title":"Carried Usage","default":0},"is_enabled":{"type":"boolean","title":"Is Enabled","default":false},"previous_billing_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous Billing Date"},"next_billing_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Billing Date"},"reset_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reset At"},"usage_by_channel":{"additionalProperties":{"type":"integer"},"type":"object","title":"Usage By Channel","description":"Per-channel consumed amounts for the current billing period"}},"type":"object","required":["feature"],"title":"UsageLimit"},"UserAccessRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"}},"type":"object","required":["user_id","roles"],"title":"UserAccessRequest"},"UserPermissionsResponse":{"properties":{"organization_permissions":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Organization Permissions"},"all_project_permissions":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"All Project Permissions"},"project_permissions":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Project Permissions"}},"type":"object","required":["organization_permissions","all_project_permissions","project_permissions"],"title":"UserPermissionsResponse"},"UserPreferences":{"properties":{"notifications":{"$ref":"#/components/schemas/NotificationPreferences"},"product_tour_completed":{"type":"boolean","title":"Product Tour Completed","default":false}},"type":"object","title":"UserPreferences"},"UserProfile":{"properties":{"_id":{"type":"string","format":"ObjectId","title":"Id","example":"656b1f13e4b0e2a3d6a4c5f8"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"is_deleted":{"type":"boolean","title":"Is Deleted","description":"Soft delete flag - marks record as deleted without removing from database","default":false},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"last_password_change":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Password Change"},"google_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Id"},"last_login":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login"},"auth_type":{"anyOf":[{"items":{"$ref":"#/components/schemas/AuthType"},"type":"array"},{"type":"null"}],"title":"Auth Type"},"email_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Verified","default":false},"profile_picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture"},"preferences":{"$ref":"#/components/schemas/UserPreferences"},"phone":{"anyOf":[{"$ref":"#/components/schemas/VerifiedPhone"},{"type":"null"}]}},"type":"object","required":["name","email"],"title":"UserProfile","description":"The signed-in user's own profile; only it carries their verified phone."},"UserSessionData":{"properties":{"id":{"type":"string","title":"Id"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"is_current":{"type":"boolean","title":"Is Current"}},"type":"object","required":["id","ip","user_agent","created_at","last_seen_at","is_current"],"title":"UserSessionData"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifiedPhone":{"properties":{"number":{"type":"string","title":"Number"},"verified_at":{"type":"string","format":"date-time","title":"Verified At"}},"type":"object","required":["number","verified_at"],"title":"VerifiedPhone","description":"The user's own number, proved by a code; free-plan campaigns call only it."},"VerifyEmailRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"VerifyEmailRequest"},"VerifyPhoneCodeRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"code":{"type":"string","pattern":"^\\d{6}$","title":"Code"}},"type":"object","required":["phone_number","code"],"title":"VerifyPhoneCodeRequest"},"VoiceLabSampleRequest":{"properties":{"text":{"type":"string","maxLength":1000,"minLength":1,"title":"Text","description":"Text to synthesize"},"voice_settings":{"$ref":"#/components/schemas/VoiceLabVoiceSettings"}},"type":"object","required":["text","voice_settings"],"title":"VoiceLabSampleRequest"},"VoiceLabVoiceSettings":{"properties":{"tts_settings":{"additionalProperties":true,"type":"object","title":"Tts Settings"}},"type":"object","required":["tts_settings"],"title":"VoiceLabVoiceSettings"},"WebVoicePlaygroundStartRequest":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"},"customer_profile_id":{"type":"string","minLength":1,"title":"Customer Profile Id"},"workflow_id":{"type":"string","minLength":1,"title":"Workflow Id"},"values":{"additionalProperties":{"type":"string","maxLength":2000},"type":"object","title":"Values"}},"type":"object","required":["conversation_id","customer_profile_id","workflow_id"],"title":"WebVoicePlaygroundStartRequest"},"WebVoiceStartRequest":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"},"customer_profile_id":{"type":"string","minLength":1,"title":"Customer Profile Id"},"participant_name":{"type":"string","minLength":1,"title":"Participant Name"},"participant_identity":{"type":"string","minLength":1,"title":"Participant Identity"},"channel_id":{"type":"string","minLength":1,"title":"Channel Id"}},"type":"object","required":["conversation_id","customer_profile_id","participant_name","participant_identity","channel_id"],"title":"WebVoiceStartRequest"},"WebVoiceWidgetConfigResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"organization_id":{"type":"string","title":"Organization Id"},"channel_id":{"type":"string","title":"Channel Id"},"channel_type":{"type":"string","title":"Channel Type","default":"webvoice"},"primary_theme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Theme"},"bot_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Name"},"widget_position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Widget Position"},"load_attention_sound":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Load Attention Sound","default":true}},"type":"object","required":["project_id","organization_id","channel_id"],"title":"WebVoiceWidgetConfigResponse"},"WeeklySchedule":{"properties":{"days":{"items":{"type":"string"},"type":"array","title":"Days"},"start_time":{"type":"string","title":"Start Time","default":"00:00"},"end_time":{"type":"string","title":"End Time","default":"00:00"}},"type":"object","title":"WeeklySchedule","description":"Weekly hours in the project timezone; equal times mean all day, and an overnight\nshift belongs to the day it starts on."},"WhatsAppApiSendRequest":{"properties":{"to":{"type":"string","title":"To","description":"Recipient phone number in international format"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data","description":"Named variables for the template attached to the broadcast"}},"additionalProperties":false,"type":"object","required":["to"],"title":"WhatsAppApiSendRequest","description":"Send the approved template attached to a broadcast."},"WhatsAppBroadcastLatestResponse":{"properties":{"id":{"type":"string","title":"Id"},"broadcast_id":{"type":"string","title":"Broadcast Id","default":""},"broadcast_name":{"type":"string","title":"Broadcast Name","default":""},"template_name":{"type":"string","title":"Template Name","default":""},"status":{"type":"string","title":"Status"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"error":{"type":"string","title":"Error","default":""},"provider_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Message Id"},"customer_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Profile Id"},"source":{"type":"string","title":"Source","default":"broadcast"}},"type":"object","required":["id","status"],"title":"WhatsAppBroadcastLatestResponse"},"WhatsAppBroadcastSettings":{"properties":{"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"sender_phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Phone Number Id"},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"},"template_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Name"},"template_language":{"type":"string","title":"Template Language","default":"en_US"},"template_components":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Template Components"}},"type":"object","title":"WhatsAppBroadcastSettings"},"WhatsAppBusinessProfileUpdateRequest":{"properties":{"about":{"anyOf":[{"type":"string","maxLength":139,"minLength":1},{"type":"null"}],"title":"About","description":"Short business description shown in WhatsApp"},"address":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Address","description":"Business address"},"description":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Description","description":"Longer business description"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email","description":"Business contact email"},"websites":{"anyOf":[{"items":{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},"type":"array","maxItems":2,"minItems":1},{"type":"null"}],"title":"Websites","description":"Up to two business website URLs (https:// required)"},"vertical":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppBusinessVertical"},{"type":"null"}],"description":"Business category"},"profile_picture_handle":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Profile Picture Handle","description":"Media handle returned by Meta's resumable upload API"}},"additionalProperties":false,"type":"object","title":"WhatsAppBusinessProfileUpdateRequest","description":"Validated partial update for Meta's whatsapp_business_profile endpoint."},"WhatsAppBusinessVertical":{"type":"string","enum":["AUTO","BEAUTY","APPAREL","EDU","ENTERTAIN","EVENT_PLAN","FINANCE","GOVT","GROCERY","HEALTH","HOTEL","NONPROFIT","PROF_SERVICES","RESTAURANT","RETAIL","TRAVEL","OTHER","NOT_A_BIZ"],"title":"WhatsAppBusinessVertical","description":"Meta-supported business vertical values."},"WhatsAppCatalogProductRequest":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"price_amount":{"type":"number","title":"Price Amount"},"currency":{"type":"string","title":"Currency","default":"USD"},"image_url":{"type":"string","title":"Image Url"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["id","title","price_amount","image_url"],"title":"WhatsAppCatalogProductRequest"},"WhatsAppCatalogSyncRequest":{"properties":{"shopify_integration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shopify Integration Id","description":"Required when multiple Shopify integrations are connected"}},"type":"object","title":"WhatsAppCatalogSyncRequest"},"WhatsAppNumberCallingUpdateRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"WhatsAppNumberCallingUpdateRequest"},"WhatsAppOnboardingCodeRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"state":{"type":"string","title":"State"},"code":{"type":"string","title":"Code"}},"type":"object","required":["session_id","state","code"],"title":"WhatsAppOnboardingCodeRequest"},"WhatsAppOnboardingEventRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"state":{"type":"string","title":"State"},"event":{"type":"string","enum":["FINISH","FINISH_WHATSAPP_BUSINESS_APP_ONBOARDING","FINISH_OBO_MIGRATION","FINISH_ONLY_WABA","CANCEL","ERROR"],"title":"Event"},"setup_mode":{"type":"string","enum":["standard","coexistence","migration"],"title":"Setup Mode","default":"standard"},"request_history_sync":{"type":"boolean","title":"Request History Sync","default":false},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["session_id","state","event"],"title":"WhatsAppOnboardingEventRequest"},"WhatsAppOnboardingRetryRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"registration_pin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Pin"}},"type":"object","required":["session_id"],"title":"WhatsAppOnboardingRetryRequest"},"WhatsAppOptOutUpdateRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"opted_out":{"type":"boolean","title":"Opted Out","default":true}},"type":"object","required":["phone_number"],"title":"WhatsAppOptOutUpdateRequest"},"WhatsAppRepairRegistrationRequest":{"properties":{"registration_pin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Pin","description":"Two-step verification PIN when Meta requires it"}},"type":"object","title":"WhatsAppRepairRegistrationRequest"},"WhatsAppSessionMessageRequest":{"properties":{"to":{"type":"string","title":"To","description":"Recipient phone number in international format"},"text":{"type":"string","maxLength":4096,"title":"Text","default":""},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Public HTTPS image address"},"quick_replies":{"items":{"type":"string"},"type":"array","maxItems":3,"title":"Quick Replies"},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id","description":"The chat to answer; the latest live chat with `to` if left out"}},"additionalProperties":false,"type":"object","required":["to"],"title":"WhatsAppSessionMessageRequest","description":"A free-form reply inside the customer's 24-hour window: an image, then the\ntext, with up to three reply buttons on the text."},"WhatsAppSetDefaultPhoneNumberRequest":{"properties":{"phone_number_id":{"type":"string","title":"Phone Number Id","description":"Meta phone number ID to set as default"}},"type":"object","required":["phone_number_id"],"title":"WhatsAppSetDefaultPhoneNumberRequest"},"WhatsAppTemplateAuthSettings":{"properties":{"add_security_recommendation":{"type":"boolean","title":"Add Security Recommendation","default":true},"code_expiration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Code Expiration Minutes"}},"type":"object","title":"WhatsAppTemplateAuthSettings"},"WhatsAppTemplateButtonRequest":{"properties":{"type":{"type":"string","enum":["QUICK_REPLY","URL","PHONE_NUMBER","VOICE_CALL","VIDEO_CALL","COPY_CODE","CATALOG","MPM","OTP"],"title":"Type"},"text":{"type":"string","title":"Text","default":""},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"url_examples":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Url Examples"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"otp_type":{"anyOf":[{"type":"string","const":"COPY_CODE"},{"type":"null"}],"title":"Otp Type"},"ttl_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Minutes"},"code_example":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code Example"}},"type":"object","required":["type"],"title":"WhatsAppTemplateButtonRequest"},"WhatsAppTemplateCacheInfo":{"properties":{"meta_synced_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Synced At"}},"type":"object","title":"WhatsAppTemplateCacheInfo"},"WhatsAppTemplateCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"language":{"type":"string","title":"Language","default":"en_US"},"category":{"type":"string","enum":["UTILITY","MARKETING","AUTHENTICATION"],"title":"Category","default":"UTILITY"},"body_text":{"type":"string","title":"Body Text","default":""},"body_examples":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Body Examples"},"header":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppTemplateHeaderRequest"},{"type":"null"}]},"footer_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer Text"},"buttons":{"anyOf":[{"items":{"$ref":"#/components/schemas/WhatsAppTemplateButtonRequest"},"type":"array"},{"type":"null"}],"title":"Buttons"},"include_call_permission_request":{"type":"boolean","title":"Include Call Permission Request","default":false},"catalog_ready":{"type":"boolean","title":"Catalog Ready","default":false},"authentication":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppTemplateAuthSettings"},{"type":"null"}]}},"type":"object","required":["name"],"title":"WhatsAppTemplateCreateRequest"},"WhatsAppTemplateCreateResult":{"properties":{"success":{"type":"boolean","title":"Success"},"template":{"$ref":"#/components/schemas/WhatsAppTemplateResponse"},"variables":{"$ref":"#/components/schemas/WhatsAppTemplateVariables"}},"type":"object","required":["success","template"],"title":"WhatsAppTemplateCreateResult"},"WhatsAppTemplateDeleteResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"template_id":{"type":"string","title":"Template Id"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"}},"type":"object","required":["success","template_id"],"title":"WhatsAppTemplateDeleteResponse"},"WhatsAppTemplateEditor":{"properties":{"body_text":{"type":"string","title":"Body Text","default":""},"header_text":{"type":"string","title":"Header Text","default":""},"button_url":{"type":"string","title":"Button Url","default":""}},"type":"object","title":"WhatsAppTemplateEditor"},"WhatsAppTemplateHeaderRequest":{"properties":{"format":{"type":"string","enum":["TEXT","IMAGE","VIDEO","DOCUMENT","LOCATION"],"title":"Format"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"examples":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Examples"},"media_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Handle"}},"type":"object","required":["format"],"title":"WhatsAppTemplateHeaderRequest"},"WhatsAppTemplateListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WhatsAppTemplateResponse"},"type":"array","title":"Items"},"pagination":{"$ref":"#/components/schemas/PaginationInfo"},"cache":{"$ref":"#/components/schemas/WhatsAppTemplateCacheInfo"}},"type":"object","required":["items","pagination","cache"],"title":"WhatsAppTemplateListResponse"},"WhatsAppTemplateMediaUploadResponse":{"properties":{"handle":{"type":"string","title":"Handle"}},"type":"object","required":["handle"],"title":"WhatsAppTemplateMediaUploadResponse"},"WhatsAppTemplateResponse":{"properties":{"template_id":{"type":"string","title":"Template Id"},"meta_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Template Id"},"name":{"type":"string","title":"Name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"components":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Components"},"variables":{"$ref":"#/components/schemas/WhatsAppTemplateVariables"},"editor":{"$ref":"#/components/schemas/WhatsAppTemplateEditor"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"},"status_updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Updated At"},"quality_score":{"anyOf":[{},{"type":"null"}],"title":"Quality Score"},"sendable":{"type":"boolean","title":"Sendable","default":true}},"type":"object","required":["template_id","name"],"title":"WhatsAppTemplateResponse","description":"Public API shape for list/get/create template responses."},"WhatsAppTemplateStarterListResponse":{"properties":{"project_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Domain"},"starters":{"items":{"$ref":"#/components/schemas/WhatsAppTemplateStarterResponse"},"type":"array","title":"Starters"}},"type":"object","required":["starters"],"title":"WhatsAppTemplateStarterListResponse"},"WhatsAppTemplateStarterResponse":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"category":{"type":"string","title":"Category"},"industries":{"items":{"type":"string"},"type":"array","title":"Industries"},"recommended":{"type":"boolean","title":"Recommended"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"draft":{"additionalProperties":true,"type":"object","title":"Draft"}},"type":"object","required":["key","title","description","category","industries","recommended","notes","draft"],"title":"WhatsAppTemplateStarterResponse"},"WhatsAppTemplateSyncResponse":{"properties":{"synced_count":{"type":"integer","title":"Synced Count"},"updated_count":{"type":"integer","title":"Updated Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"deleted_count":{"type":"integer","title":"Deleted Count"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"meta_synced_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Synced At"}},"type":"object","required":["synced_count","updated_count","skipped_count","deleted_count"],"title":"WhatsAppTemplateSyncResponse"},"WhatsAppTemplateToolSelection":{"properties":{"template_id":{"type":"string","minLength":1,"title":"Template Id"},"name":{"type":"string","minLength":1,"title":"Name"},"language":{"type":"string","minLength":1,"title":"Language","default":"en_US"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"variables":{"additionalProperties":true,"type":"object","title":"Variables"},"components":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Components","description":"Cached template components used to keep runtime fields current"}},"type":"object","required":["template_id","name"],"title":"WhatsAppTemplateToolSelection","description":"Template metadata used to configure an agent's WhatsApp tool schema."},"WhatsAppTemplateVariables":{"properties":{"body":{"items":{"type":"string"},"type":"array","title":"Body"},"header":{"items":{"type":"string"},"type":"array","title":"Header"},"button_url":{"items":{"type":"string"},"type":"array","title":"Button Url"},"button_urls":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Button Urls"},"special_fields":{"items":{"type":"string"},"type":"array","title":"Special Fields"}},"type":"object","title":"WhatsAppTemplateVariables"},"WidgetConfigResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"organization_id":{"type":"string","title":"Organization Id"},"channel_id":{"type":"string","title":"Channel Id"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type","default":"webchat"},"primary_theme":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Theme"},"bot_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Icon"},"use_bot_icon_for_launcher":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Bot Icon For Launcher","default":false},"mascot_sheets":{"anyOf":[{"$ref":"#/components/schemas/MascotSheets"},{"type":"null"}]},"mascot_background":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mascot Background","default":true},"bot_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Name"},"widget_position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Widget Position"},"whitelabel":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Whitelabel"},"quick_questions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Quick Questions"},"welcome_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Message"},"hello_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hello Message"},"web_voice_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Web Voice Enabled","default":false},"voice_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Channel Id"},"load_attention_sound":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Load Attention Sound","default":true},"proactive_message_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Proactive Message Enabled","default":false},"proactive_message_delay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Proactive Message Delay","default":8},"proactive_message_sound_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Proactive Message Sound Enabled","default":false},"proactive_message_url_patterns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proactive Message Url Patterns"},"proactive_message_cooldown":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Proactive Message Cooldown","default":0}},"type":"object","required":["project_id","organization_id","channel_id"],"title":"WidgetConfigResponse","description":"Widget configuration response - only includes fields used by the widget-app"},"WorkflowDiagnosticsRequest":{"properties":{"customer_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Profile Id"},"nodes":{"anyOf":[{"items":{"$ref":"#/components/schemas/WorkflowNode"},"type":"array"},{"type":"null"}],"title":"Nodes"},"edges":{"anyOf":[{"items":{"$ref":"#/components/schemas/WorkflowEdge"},"type":"array"},{"type":"null"}],"title":"Edges"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/WorkflowMetadata"},{"type":"null"}]}},"type":"object","title":"WorkflowDiagnosticsRequest","description":"Optional profile and current editor draft used for template validation."},"WorkflowEdge":{"properties":{"id":{"type":"string","title":"Id","description":"Unique edge ID within the workflow"},"source_node_id":{"type":"string","title":"Source Node Id","description":"Source node ID"},"target_node_id":{"type":"string","title":"Target Node Id","description":"Target node ID"},"label":{"type":"string","maxLength":200,"title":"Label","description":"Edge label (e.g., 'Technical issue')","default":""},"priority":{"type":"integer","title":"Priority","description":"Edge priority (for multiple edges from same node)","default":0},"condition_config":{"anyOf":[{"$ref":"#/components/schemas/ConditionConfig"},{"type":"null"}],"description":"Condition configuration for this edge"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional edge metadata"}},"type":"object","required":["id","source_node_id","target_node_id"],"title":"WorkflowEdge"},"WorkflowMetadata":{"properties":{"workflow_type":{"type":"string","pattern":"^(voice|chat)$","title":"Workflow Type","description":"Type of workflow: voice or chat","default":"voice"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"Workflow tags"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Workflow category"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"Additional notes"}},"type":"object","title":"WorkflowMetadata"},"WorkflowNode":{"properties":{"id":{"type":"string","title":"Id","description":"Unique node ID within the workflow"},"type":{"type":"string","pattern":"^(start|end|agent|transfer|supervisor|task|task_group)$","title":"Type","description":"Node type: start, end, agent, transfer, supervisor, task, task_group"},"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name","description":"Unique display and routing name (required for routable node types)"},"agent_config":{"anyOf":[{"$ref":"#/components/schemas/AgentConfig"},{"type":"null"}],"description":"Agent configuration (required when type is 'agent', 'supervisor', 'task', or 'task_group')"},"position":{"$ref":"#/components/schemas/NodePosition","description":"Node position in the UI"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Additional node metadata"}},"type":"object","required":["id","type","position"],"title":"WorkflowNode"},"WorkflowTemplateResponse":{"properties":{"name":{"type":"string","title":"Name"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"workflow_type":{"type":"string","enum":["chat","voice"],"title":"Workflow Type"},"direction":{"type":"string","enum":["inbound","outbound"],"title":"Direction"},"category":{"type":"string","title":"Category"},"domains":{"items":{"type":"string"},"type":"array","title":"Domains"},"nodes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Nodes"},"edges":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Edges"}},"type":"object","required":["name","title","description","workflow_type","direction","category","domains","nodes","edges"],"title":"WorkflowTemplateResponse"},"api_service__models__ticket__UserInfo":{"properties":{"id":{"type":"string","title":"Id","description":"User ID"},"name":{"type":"string","title":"Name","description":"User's full name"},"email":{"type":"string","title":"Email","description":"User's email address"}},"type":"object","required":["id","name","email"],"title":"UserInfo"},"api_service__routers__sources__UserInfo":{"properties":{"_id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["_id","name","email"],"title":"UserInfo"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}