{"openapi":"3.1.0","info":{"title":"My API","description":"This is my FastAPI app","version":"1.0.0"},"paths":{"/v2/google/signin":{"get":{"summary":"Google Oauth Url","operationId":"google_oauth_url_v2_google_signin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/auth/google/callback":{"get":{"summary":"Oauth2Callback","operationId":"oauth2callback_v2_auth_google_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/hubspot/signin":{"get":{"summary":"Hubspot Oauth","operationId":"hubspot_oauth_v2_hubspot_signin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/salesforce/signin":{"get":{"summary":"Salesforce Oauth","operationId":"salesforce_oauth_v2_salesforce_signin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/hubspot/callback":{"get":{"summary":"Hubspot Oauth Callback","operationId":"hubspot_oauth_callback_v2_hubspot_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/salesforce/callback":{"get":{"summary":"Salesforce Oauth Callback","operationId":"salesforce_oauth_callback_v2_salesforce_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/bigin/signin":{"get":{"summary":"Bigin Oauth","operationId":"bigin_oauth_v2_bigin_signin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/bigin/callback":{"get":{"summary":"Bigin Oauth Callback","operationId":"bigin_oauth_callback_v2_bigin_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/gohigh/signin":{"get":{"summary":"Gohighlevel Oauth","operationId":"gohighlevel_oauth_v2_gohigh_signin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/gohigh/callback":{"get":{"summary":"Gohighlevel Oauth Callback","operationId":"gohighlevel_oauth_callback_v2_gohigh_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/get_oauth_emails":{"get":{"summary":"Get Oauth Emails","operationId":"get_oauth_emails_v2_get_oauth_emails_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/get_user_token/{account_email}":{"get":{"summary":"Get User Token","operationId":"get_user_token_v2_get_user_token__account_email__get","parameters":[{"name":"account_email","in":"path","required":true,"schema":{"type":"string","title":"Account Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/get_shopify_access":{"post":{"summary":"Get Shopify Token","operationId":"get_shopify_token_v2_get_shopify_access_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/auth/facebook/callback":{"post":{"summary":"Facebook Callback","description":"Handles the Facebook OAuth callback, retrieves access token, and stores OAuth details.","operationId":"facebook_callback_v2_auth_facebook_callback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/shopify/signin":{"get":{"summary":"Shopify Oauth","operationId":"shopify_oauth_v2_shopify_signin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/shopify/callback":{"get":{"summary":"Shopify Oauth Callback","operationId":"shopify_oauth_callback_v2_shopify_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/gmail/subscription/callback":{"post":{"summary":"Topic Subscribe","operationId":"topic_subscribe_v2_gmail_subscription_callback_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/knowledge_base":{"post":{"summary":"Create Knowledge Base Route","operationId":"create_knowledge_base_route_v2_knowledge_base_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"get":{"summary":"Get Knowledge Base Route","operationId":"get_knowledge_base_route_v2_knowledge_base_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/knowledge_base/{id}":{"get":{"summary":"Get Knowledge Base Route","operationId":"get_knowledge_base_route_v2_knowledge_base__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/knowledge_base/{kb_id}":{"put":{"summary":"Update Knowledge Base Route","operationId":"update_knowledge_base_route_v2_knowledge_base__kb_id__put","parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Knowledge Base Route V2 Knowledge Base  Kb Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Knowledge Base Route","operationId":"delete_knowledge_base_route_v2_knowledge_base__kb_id__delete","parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Knowledge Base Route V2 Knowledge Base  Kb Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/knowledge_base/bulk_delete":{"post":{"summary":"Bulk Delete Knowledge Bases Route","operationId":"bulk_delete_knowledge_bases_route_v2_knowledge_base_bulk_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteKnowledgeBases"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/add_files_knowledge_base/{id}":{"post":{"summary":"Add Files Knowledge Base Route","operationId":"add_files_knowledge_base_route_v2_add_files_knowledge_base__id__post","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Add Files Knowledge Base Route V2 Add Files Knowledge Base  Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/add_file/{id}":{"post":{"summary":"Add Files Knowledge Base Route","operationId":"add_files_knowledge_base_route_v2_add_file__id__post","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_add_files_knowledge_base_route_v2_add_file__id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/crawl_urls":{"post":{"summary":"Crawl Urls Route","description":"Endpoint to crawl a web URL and extract nested links.","operationId":"crawl_urls_route_v2_crawl_urls_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Crawl Urls Route V2 Crawl Urls Post"}}}}}}},"/v2/generate_signed_url":{"get":{"summary":"Get Signed Url From File Path","operationId":"get_signed_url_from_file_path_v2_generate_signed_url_get","parameters":[{"name":"file_path","in":"query","required":true,"schema":{"type":"string","description":"File path starting with bucket name","title":"File Path"},"description":"File path starting with bucket name"},{"name":"expiration_time","in":"query","required":false,"schema":{"type":"integer","description":"Expiration time in seconds","default":3600,"title":"Expiration Time"},"description":"Expiration time in seconds"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/get_file_url":{"post":{"summary":"Upload Files Route","description":"Upload files and get their URLs","operationId":"upload_files_route_v2_get_file_url_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_files_route_v2_get_file_url_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Upload Files Route V2 Get File Url Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/knowledge_base/create":{"post":{"summary":"Create Knowledge Base Route","operationId":"create_knowledge_base_route_v2_knowledge_base_create_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/knowledge_base/update_all/{kb_id}":{"put":{"summary":"Update All Knowledge Base Route","operationId":"update_all_knowledge_base_route_v2_knowledge_base_update_all__kb_id__put","parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_update_all_knowledge_base_route_v2_knowledge_base_update_all__kb_id__put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_knowledgebase/{id}":{"get":{"summary":"Get Knowledgebase","operationId":"get_knowledgebase_v2__knowledgebase__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Knowledgebase","operationId":"update_knowledgebase_v2__knowledgebase__id__put","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Knowledgebase","operationId":"delete_knowledgebase_v2__knowledgebase__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_knowledgebase":{"get":{"summary":"Get Knowledgebase","operationId":"get_knowledgebase_v2__knowledgebase_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Knowledgebase","operationId":"create_knowledgebase_v2__knowledgebase_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/payment/cards":{"post":{"summary":"Signup","description":"Create a new payment method","operationId":"signup_v2_payment_cards_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/upgrade_subscription":{"post":{"summary":"Upgrade Subscription","operationId":"upgrade_subscription_v2_upgrade_subscription_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/cancel-subscription":{"post":{"summary":"Cancel Subscription","operationId":"cancel_subscription_v2_cancel_subscription_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/invoices":{"get":{"summary":"Get Invoices","operationId":"get_invoices_v2_invoices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/validate-coupon/{coupon_id}":{"get":{"summary":"Validate Coupon","operationId":"validate_coupon_v2_validate_coupon__coupon_id__get","parameters":[{"name":"coupon_id","in":"path","required":true,"schema":{"type":"string","title":"Coupon Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/trial-end":{"get":{"summary":"End Free Trail Request","operationId":"end_free_trail_request_v2_trial_end_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/subscriptions":{"get":{"summary":"Get Subscriptions","operationId":"get_subscriptions_v2_subscriptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/purchase-add-on":{"post":{"summary":"Purchase Add On","operationId":"purchase_add_on_v2_purchase_add_on_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseAddOns"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/manage-subscription":{"post":{"summary":"Manage Subscription","operationId":"manage_subscription_v2_manage_subscription_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Data","default":{"update_payment_method":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/api_keys":{"post":{"summary":"Create Api Keys Route","operationId":"create_api_keys_route_v2_api_keys_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__apikey__ApiKey"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Api Keys Route","operationId":"get_api_keys_route_v2_api_keys_get","parameters":[{"name":"api_key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/api_keys/{api_key_id}":{"get":{"summary":"Get Api Keys Route","operationId":"get_api_keys_route_v2_api_keys__api_key_id__get","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/api_keys/{id}":{"put":{"summary":"Update Api Key Route","operationId":"update_api_key_route_v2_api_keys__id__put","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__apikey__ApiKey"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Api Key Route","operationId":"delete_api_key_route_v2_api_keys__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/get_voices":{"get":{"summary":"Fetch Data","operationId":"fetch_data_v2_get_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/openai/models":{"get":{"summary":"Fetch Openai Models Route","operationId":"fetch_openai_models_route_v2_openai_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Fetch Openai Models Route V2 Openai Models Get"}}}}}}},"/v2/integrations":{"get":{"summary":"Get Integrations Route","operationId":"get_integrations_route_v2_integrations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/api_keys/assistants/{api_key_id}":{"get":{"summary":"Get Api Key Assistants Route","operationId":"get_api_key_assistants_route_v2_api_keys_assistants__api_key_id__get","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"integer","title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/sip_trunk/enable/{api_key_id}":{"get":{"summary":"Get Twilio Sip Trunk Route","operationId":"get_twilio_sip_trunk_route_v2_sip_trunk_enable__api_key_id__get","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"integer","title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_apikeys/{apikey_id}":{"get":{"summary":"Get Apikeys","operationId":"get_apikeys_v2__apikeys__apikey_id__get","parameters":[{"name":"apikey_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_apikeys":{"get":{"summary":"Get Apikeys","operationId":"get_apikeys_v2__apikeys_get","parameters":[{"name":"apikey_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Apikeys","operationId":"create_apikeys_v2__apikeys_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__apikey__ApiKey"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_apikeys/{id}":{"put":{"summary":"Update Apikeys","operationId":"update_apikeys_v2__apikeys__id__put","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__apikey__ApiKey"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Apikeys","operationId":"delete_apikeys_v2__apikeys__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/new_assistants":{"post":{"summary":"Create Assistant Route","operationId":"create_assistant_route_v2_new_assistants_post","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","description":"Force creation by removing phone number from existing assistants","default":false,"title":"Force"},"description":"Force creation by removing phone number from existing assistants"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assistant"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get New Assistant Route","operationId":"get_new_assistant_route_v2_new_assistants_get","parameters":[{"name":"assistant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search query for assistants","title":"Search"},"description":"Search query for assistants"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by name (contains logic)","title":"Name"},"description":"Filter by name (contains logic)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/email_assistants/{assistant_id}/labels":{"post":{"summary":"Create Update Email Assistant Labels","operationId":"create_update_email_assistant_labels_v2_email_assistants__assistant_id__labels_post","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"integer","title":"Assistant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailAssistantLabels"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/new_assistants/{assistant_id}":{"get":{"summary":"Get New Assistant Route","operationId":"get_new_assistant_route_v2_new_assistants__assistant_id__get","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search query for assistants","title":"Search"},"description":"Search query for assistants"},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by name (contains logic)","title":"Name"},"description":"Filter by name (contains logic)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update New Assistant Route","operationId":"update_new_assistant_route_v2_new_assistants__assistant_id__put","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"integer","title":"Assistant Id"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","description":"Force update by removing phone number from existing assistants","default":false,"title":"Force"},"description":"Force update by removing phone number from existing assistants"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assistant"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Update New Assistant Status Route","operationId":"update_new_assistant_status_route_v2_new_assistants__assistant_id__delete","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"integer","title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/action_integration/{assistant_id}":{"post":{"summary":"Actions Integration Route","operationId":"actions_integration_route_v2_action_integration__assistant_id__post","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"integer","title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/encrypt/{assistant_id}":{"get":{"summary":"Encrypt Assistant Id","operationId":"encrypt_assistant_id_v2_encrypt__assistant_id__get","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"integer","title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/assistants/workspace_key/{id}":{"get":{"summary":"Get Workspace Key Route","operationId":"get_workspace_key_route_v2_assistants_workspace_key__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/email_assistants/{assistant_id}/generate_response_v1":{"post":{"summary":"Generate Response V1","operationId":"generate_response_v1_v2_email_assistants__assistant_id__generate_response_v1_post","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"integer","title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/sms/{assistant_id}":{"post":{"summary":"Generate Response Sms","operationId":"generate_response_sms_v2_sms__assistant_id__post","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"integer","title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/assistant/actions/{action_id}":{"get":{"summary":"Get Assistants By Action Id","operationId":"get_assistants_by_action_id_v2_assistant_actions__action_id__get","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/assistant/kb/{kb_id}":{"get":{"summary":"Get Assistants By Kb Id","operationId":"get_assistants_by_kb_id_v2_assistant_kb__kb_id__get","parameters":[{"name":"kb_id","in":"path","required":true,"schema":{"type":"string","title":"Kb Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/assistant/analytics/{assistant_id}":{"get":{"summary":"Get Assistant Analytics","description":"Get analytics for a specific assistant or all assistants of a company","operationId":"get_assistant_analytics_v2_assistant_analytics__assistant_id__get","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/assistant/analytics":{"get":{"summary":"Get Assistant Analytics","description":"Get analytics for a specific assistant or all assistants of a company","operationId":"get_assistant_analytics_v2_assistant_analytics_get","parameters":[{"name":"assistant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_assistants":{"post":{"summary":"Create Assistant","operationId":"create_assistant_v2__assistants_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assistant"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Assistants","operationId":"get_assistants_v2__assistants_get","parameters":[{"name":"assistant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_assistants/{assistant_id}":{"get":{"summary":"Get Assistants","operationId":"get_assistants_v2__assistants__assistant_id__get","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Assistant","operationId":"update_assistant_v2__assistants__assistant_id__put","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"string","title":"Assistant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assistant"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Assistant","operationId":"delete_assistant_v2__assistants__assistant_id__delete","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"string","title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/assistant_details/public/{encrypted_assistant_id}":{"get":{"summary":"Get Public Assistant Info","description":"Open API endpoint to get assistant name and additional_settings by encrypted assistant_id","operationId":"get_public_assistant_info_v2_assistant_details_public__encrypted_assistant_id__get","parameters":[{"name":"encrypted_assistant_id","in":"path","required":true,"schema":{"type":"string","title":"Encrypted Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/new_assistants/bulk_delete":{"post":{"summary":"Bulk Delete Assistants Route","operationId":"bulk_delete_assistants_route_v2_new_assistants_bulk_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteAssistants"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/email/get-lables":{"get":{"summary":"Get Labels","operationId":"get_labels_v2_email_get_lables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/email/get-messages":{"get":{"summary":"Get Messages","operationId":"get_messages_v2_email_get_messages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/email/mark-as-read":{"post":{"summary":"Mark Email As Read","operationId":"mark_email_as_read_v2_email_mark_as_read_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/email/send-message":{"post":{"summary":"Send Messages","operationId":"send_messages_v2_email_send_message_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/email/get_file_names":{"post":{"summary":"Get File Names","operationId":"get_file_names_v2_email_get_file_names_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/email/get_file":{"post":{"summary":"Get File","operationId":"get_file_v2_email_get_file_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/email/send-message-external/":{"post":{"summary":"Send Email External","operationId":"send_email_external_v2_email_send_message_external__post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/send-grid/send-email2":{"post":{"summary":"Send Grid Email Route","operationId":"send_grid_email_route_v2_send_grid_send_email2_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/email/create-draft":{"post":{"summary":"Handle Draft Route","operationId":"handle_draft_route_v2_email_create_draft_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/email/get-attachment":{"post":{"summary":"Get Attachment Route","operationId":"get_attachment_route_v2_email_get_attachment_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/email/connected":{"get":{"summary":"Get Emails Connected","operationId":"get_emails_connected_v2_email_connected_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/workspace/email/connected":{"get":{"summary":"Get Emails Connected","operationId":"get_emails_connected_v2_workspace_email_connected_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/connected-emails":{"get":{"summary":"Get Emails Connected","operationId":"get_emails_connected_v2_connected_emails_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/prompts":{"post":{"summary":"Create Prompt Route","operationId":"create_prompt_route_v2_prompts_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Create Prompt Route V2 Prompts Post"}}}}}},"get":{"summary":"Get Prompts Route","operationId":"get_prompts_route_v2_prompts_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Prompts Route V2 Prompts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/prompts/{prompt_id}":{"put":{"summary":"Update Prompt Route","operationId":"update_prompt_route_v2_prompts__prompt_id__put","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","title":"Prompt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Prompt Route V2 Prompts  Prompt Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Prompt Route","operationId":"delete_prompt_route_v2_prompts__prompt_id__delete","parameters":[{"name":"prompt_id","in":"path","required":true,"schema":{"type":"integer","title":"Prompt Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Delete Prompt Route V2 Prompts  Prompt Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/prompts/public":{"get":{"summary":"Get Prompts Route","operationId":"get_prompts_route_v2_prompts_public_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Prompts Route V2 Prompts Public Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/prompts/generate":{"post":{"summary":"Generate Prompt Route","operationId":"generate_prompt_route_v2_prompts_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__prompts__SendSMSRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Generate Prompt Route V2 Prompts Generate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/campaigns/create-touch-point":{"post":{"summary":"Start Campaigns","operationId":"start_campaigns_v2_campaigns_create_touch_point_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TouchPoint"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/campaign":{"get":{"summary":"Get Campaigns Route","description":"Get campaign(s) details with pagination and filters","operationId":"get_campaigns_route_v2_campaign_get","parameters":[{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/campaign/{campaign_id}":{"get":{"summary":"Get Campaigns Route","description":"Get campaign(s) details with pagination and filters","operationId":"get_campaigns_route_v2_campaign__campaign_id__get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/campaigns/status-analytics/{campaign_id}":{"get":{"summary":"Get Campaign Outreach Status Analytics","operationId":"get_campaign_outreach_status_analytics_v2_campaigns_status_analytics__campaign_id__get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Touchpoint type filter, e.g., CALL/SMS/EMAIL","title":"Type"},"description":"Touchpoint type filter, e.g., CALL/SMS/EMAIL"},{"name":"touchpoint_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter for a single touchpoint id","title":"Touchpoint Id"},"description":"Filter for a single touchpoint id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/campaign/create":{"post":{"summary":"Create Campaign Route","description":"Create new campaign","operationId":"create_campaign_route_v2_campaign_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/campaign/create_with_touchpoint":{"post":{"summary":"Create Campaign With Touchpoint","description":"Create campaign with touchpoint and schedule it if needed","operationId":"create_campaign_with_touchpoint_v2_campaign_create_with_touchpoint_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignWithTouchPoint"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/touchpoint/{touchpoint_id}":{"put":{"summary":"Update Touchpoint Route","description":"Update touchpoint with rescheduling capability","operationId":"update_touchpoint_route_v2_touchpoint__touchpoint_id__put","parameters":[{"name":"touchpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Touchpoint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TouchPoint"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Touchpoint Details Route","description":"Get touchpoint details with associated customers and assistant","operationId":"get_touchpoint_details_route_v2_touchpoint__touchpoint_id__get","parameters":[{"name":"touchpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Touchpoint Id"}},{"name":"customer_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"CUSTOMERS or CONSULTANTS","title":"Customer Type"},"description":"CUSTOMERS or CONSULTANTS"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/create_touchpoint/{campaign_id}":{"post":{"summary":"Create Touchpoint Route","description":"Create a new touchpoint under a campaign","operationId":"create_touchpoint_route_v2_create_touchpoint__campaign_id__post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TouchPoint"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/campaign_or_touchpoint/delete/{id}":{"delete":{"summary":"Delete Campaign Or Touchpoint Route","description":"Delete campaign or touchpoint by ID","operationId":"delete_campaign_or_touchpoint_route_v2_campaign_or_touchpoint_delete__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/pause_campaign/{id}":{"post":{"summary":"Update Status Campaign Or Touchpoint","description":"Update status of a campaign or touchpoint by ID","operationId":"update_status_campaign_or_touchpoint_v2_pause_campaign__id__post","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/campaigns/outreach/{touchpoint_id}":{"get":{"summary":"Get Customer Outreach","operationId":"get_customer_outreach_v2_campaigns_outreach__touchpoint_id__get","parameters":[{"name":"touchpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Touchpoint Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/campaigns":{"get":{"summary":"Create Campaign","operationId":"create_campaign_v2_campaigns_get","parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","title":"Source"}},{"name":"page_no","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page No"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Page Size"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TouchPointTypeEnum"},{"type":"null"}],"title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/crm/campaigns/{source}":{"get":{"summary":"Create Campaign","operationId":"create_campaign_v2_crm_campaigns__source__get","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}},{"name":"page_no","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page No"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Page Size"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/TouchPointTypeEnum"},{"type":"null"}],"title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_campaigns/{campaign_id}":{"get":{"summary":"Get Campaigns","operationId":"get_campaigns_v2__campaigns__campaign_id__get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_campaigns":{"get":{"summary":"Get Campaigns","operationId":"get_campaigns_v2__campaigns_get","parameters":[{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Campaigns","operationId":"create_campaigns_v2__campaigns_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_campaigns/{id}/{type}":{"post":{"summary":"Resume Campaign","operationId":"resume_campaign_v2__campaigns__id___type__post","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}},{"name":"type","in":"path","required":true,"schema":{"enum":["pause","resume"],"type":"string","title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_campaigns/{id}":{"delete":{"summary":"Delete Campaign","operationId":"delete_campaign_v2__campaigns__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_campaigns/{campaign_id}/touchpoints":{"get":{"summary":"Get Touchpoints","operationId":"get_touchpoints_v2__campaigns__campaign_id__touchpoints_get","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Touchpoints","operationId":"create_touchpoints_v2__campaigns__campaign_id__touchpoints_post","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TouchPoint"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_campaigns/{campaign_id}/touchpoints/{touchpoint_id}":{"delete":{"summary":"Delete Touchpoints","operationId":"delete_touchpoints_v2__campaigns__campaign_id__touchpoints__touchpoint_id__delete","parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"touchpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Touchpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/touch-point/{touchpoint_id}/{action}":{"put":{"summary":"Update Touchpoint Action","operationId":"update_touchpoint_action_v2_touch_point__touchpoint_id___action__put","parameters":[{"name":"touchpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Touchpoint Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/signup":{"post":{"summary":"Signup","operationId":"signup_v2_signup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/signup-test":{"post":{"summary":"Signup","operationId":"signup_v2_signup_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/verify-otp":{"post":{"summary":"Signup","operationId":"signup_v2_verify_otp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/get_company_details":{"get":{"summary":"Get Company Details","operationId":"get_company_details_v2_get_company_details_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/update_me":{"put":{"summary":"Update Company Details","operationId":"update_company_details_v2_update_me_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/companies/details":{"get":{"summary":"Get Companies Details","operationId":"get_companies_details_v2_companies_details_get","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}},{"name":"is_agency","in":"query","required":false,"schema":{"type":"boolean","description":"If true, fetch customers based on context company_id","default":false,"title":"Is Agency"},"description":"If true, fetch customers based on context company_id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/companies/details/{company_id}":{"get":{"summary":"Get Companies Details","operationId":"get_companies_details_v2_companies_details__company_id__get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}},{"name":"is_agency","in":"query","required":false,"schema":{"type":"boolean","description":"If true, fetch customers based on context company_id","default":false,"title":"Is Agency"},"description":"If true, fetch customers based on context company_id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/resend-otp":{"post":{"summary":"Resend Otp","description":"Resend OTP to prospect's email","operationId":"resend_otp_v2_resend_otp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/get_contactswing_id":{"get":{"summary":"Get Contactswing Company Id","description":"Get ContactSwing company ID from environment variables","operationId":"get_contactswing_company_id_v2_get_contactswing_id_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/azure_account_details":{"post":{"summary":"Azure Account Details","operationId":"azure_account_details_v2_azure_account_details_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/update_tutorial_counts":{"put":{"summary":"Update Tutorial Counts","operationId":"update_tutorial_counts_v2_update_tutorial_counts_put","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/send-10dlc-approval-email":{"post":{"summary":"Send 10Dlc Approval Email","operationId":"send_10dlc_approval_email_v2_send_10dlc_approval_email_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/delete_account":{"delete":{"summary":"Delete Account","operationId":"delete_account_v2_delete_account_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/workspace/company-details":{"get":{"summary":"Get Workspace Company Details","description":"Get company details for workspace authentication\nReturns company_id, email, phone, and name","operationId":"get_workspace_company_details_v2_workspace_company_details_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/sample/api/example":{"post":{"summary":"Sample Api Example","description":"Sample API endpoint for webhook action that returns status=true with dummy data","operationId":"sample_api_example_v2_sample_api_example_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/replicate-actions-and-assistant":{"post":{"summary":"Replicate Actions And Assistant","description":"Replicate actions from super admin account to customer account and create assistant.\nTakes action_ids array and assistant data, replicates actions with replaced values.","operationId":"replicate_actions_and_assistant_v2_replicate_actions_and_assistant_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/login":{"post":{"summary":"Login","operationId":"login_v2_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/user":{"post":{"summary":"Create User Route","operationId":"create_user_route_v2_user_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/users":{"get":{"summary":"Get Users Route","operationId":"get_users_route_v2_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/user/{user_id}":{"put":{"summary":"Update User Route","operationId":"update_user_route_v2_user__user_id__put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete User Route","operationId":"delete_user_route_v2_user__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"assign_to_user","in":"query","required":false,"schema":{"type":"string","description":"User ID to reassign sessions to before deletion","title":"Assign To User"},"description":"User ID to reassign sessions to before deletion"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/me":{"get":{"summary":"Get User Profile Route","operationId":"get_user_profile_route_v2_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Update Password Route","operationId":"update_password_route_v2_me_put","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/delete_oauth_user":{"delete":{"summary":"Delete Oauth User Route","operationId":"delete_oauth_user_route_v2_delete_oauth_user_delete","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"GMAIL","title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/generate-token/{company_plan_id}":{"get":{"summary":"Generate Token Route","operationId":"generate_token_route_v2_generate_token__company_plan_id__get","parameters":[{"name":"company_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Company Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/user/forgot_password":{"post":{"summary":"Forgot Password Route","operationId":"forgot_password_route_v2_user_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_forgot_password_route_v2_user_forgot_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/user/reset_password":{"post":{"summary":"Reset Password Route","operationId":"reset_password_route_v2_user_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reset_password_route_v2_user_reset_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/generate_token/{company_plan_id}":{"get":{"summary":"Generate Token Route","operationId":"generate_token_route_v2_generate_token__company_plan_id__get","parameters":[{"name":"company_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Company Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/workflow/token":{"get":{"summary":"Get Workflow Token","operationId":"get_workflow_token_v2_workflow_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/refresh/token":{"post":{"summary":"Refresh Token","operationId":"refresh_token_v2_refresh_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/logout/{login_id}":{"post":{"summary":"Logout","operationId":"logout_v2_logout__login_id__post","parameters":[{"name":"login_id","in":"path","required":true,"schema":{"type":"integer","title":"Login Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/users/dropdown":{"get":{"summary":"Get Users Dropdown","operationId":"get_users_dropdown_v2_users_dropdown_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/user/login-history":{"get":{"summary":"Get User Login History","operationId":"get_user_login_history_v2_user_login_history_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/actions":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_actions_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Actions Route","operationId":"get_actions_route_v2_actions_get","parameters":[{"name":"action_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/actions/{action_id}":{"get":{"summary":"Get Actions Route","operationId":"get_actions_route_v2_actions__action_id__get","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Action","operationId":"update_action_v2_actions__action_id__put","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Action Route","operationId":"delete_action_route_v2_actions__action_id__delete","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/get_action_by_type":{"get":{"summary":"Get Action By Type","operationId":"get_action_by_type_v2_get_action_by_type_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Action type to filter by","title":"Type"},"description":"Action type to filter by"},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Email to filter by","title":"Email"},"description":"Email to filter by"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/actions/assistant/{assistant_id}":{"get":{"summary":"Get Actions By Assistant Id","description":"Get all actions associated with an assistant","operationId":"get_actions_by_assistant_id_v2_actions_assistant__assistant_id__get","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"integer","title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_actions/{action_id}":{"get":{"summary":"Get Actions","operationId":"get_actions_v2__actions__action_id__get","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Actions","operationId":"update_actions_v2__actions__action_id__put","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Actions","operationId":"delete_actions_v2__actions__action_id__delete","parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_actions":{"get":{"summary":"Get Actions","operationId":"get_actions_v2__actions_get","parameters":[{"name":"action_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Actions","operationId":"create_actions_v2__actions_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/fields/customers":{"get":{"summary":"List Customer Fields","operationId":"list_customer_fields_v2_fields_customers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Customer Field","operationId":"create_customer_field_v2_fields_customers_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/fields/customers/{field_id}":{"put":{"summary":"Update Customer Field","operationId":"update_customer_field_v2_fields_customers__field_id__put","parameters":[{"name":"field_id","in":"path","required":true,"schema":{"type":"string","title":"Field Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/customers":{"post":{"summary":"Create Customer Route","operationId":"create_customer_route_v2_customers_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Customers Route","operationId":"get_customers_route_v2_customers_get","parameters":[{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/customers/{customer_id}":{"get":{"summary":"Get Customers Route","operationId":"get_customers_route_v2_customers__customer_id__get","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Customer Route","operationId":"update_customer_route_v2_customers__customer_id__put","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Customer Route","operationId":"delete_customer_route_v2_customers__customer_id__delete","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/all/customers":{"get":{"summary":"Get All Customers Route","operationId":"get_all_customers_route_v2_all_customers_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/customer/fields":{"get":{"summary":"Get Customer Fields Route","operationId":"get_customer_fields_route_v2_customer_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/customer-db-fields":{"get":{"summary":"Get Customer Db Fields Route","operationId":"get_customer_db_fields_route_v2_customer_db_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/customers/get-mapped-data":{"post":{"summary":"Parse Uploaded File Route","operationId":"parse_uploaded_file_route_v2_customers_get_mapped_data_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_parse_uploaded_file_route_v2_customers_get_mapped_data_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/save_customer":{"post":{"summary":"Save Customers Route","operationId":"save_customers_route_v2_save_customer_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/customer_uploads":{"get":{"summary":"Get Customer Uploads Route","operationId":"get_customer_uploads_route_v2_customer_uploads_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/dashboard/analytics":{"get":{"tags":["Dashboard"],"summary":"Get Dashboard Analytics","description":"Get detailed analytics with flexible time filtering.\n\nParameters:\n- period_type: Choose from daily, weekly, monthly, quarterly, or custom\n- chart_type: Filter by communication type (all, sessions, voice, sms, whatsapp)\n- group_by: How to group the data (day, week, month)\n- start_date/end_date: For custom date ranges\n- period: Number of days to look back (if custom period without dates)\n\nReturns:\n- Timeline analytics for selected types\n- Summary statistics\n- Period-over-period comparison","operationId":"get_dashboard_analytics_v2_dashboard_analytics_get","parameters":[{"name":"period_type","in":"query","required":false,"schema":{"type":"string","description":"Period type: daily, weekly, monthly, quarterly, custom","default":"monthly","title":"Period Type"},"description":"Period type: daily, weekly, monthly, quarterly, custom"},{"name":"chart_type","in":"query","required":false,"schema":{"type":"string","description":"Chart type: all, sessions, voice, sms, whatsapp","default":"all","title":"Chart Type"},"description":"Chart type: all, sessions, voice, sms, whatsapp"},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","description":"Group by: day, week, month","default":"day","title":"Group By"},"description":"Group by: day, week, month"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD) for custom period","title":"Start Date"},"description":"Start date (YYYY-MM-DD) for custom period"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD) for custom period","title":"End Date"},"description":"End date (YYYY-MM-DD) for custom period"},{"name":"period","in":"query","required":false,"schema":{"type":"integer","description":"Number of days for custom period if dates not specified","default":30,"title":"Period"},"description":"Number of days for custom period if dates not specified"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/customers/analyze-file-mapping":{"post":{"summary":"Analyze File Mapping Route","operationId":"analyze_file_mapping_route_v2_customers_analyze_file_mapping_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_analyze_file_mapping_route_v2_customers_analyze_file_mapping_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/customers/save-bulk-mapped":{"post":{"summary":"Save Bulk Mapped Customers V2 Route","operationId":"save_bulk_mapped_customers_v2_route_v2_customers_save_bulk_mapped_post","parameters":[{"name":"operation_type","in":"query","required":true,"schema":{"type":"string","enum":["add","update","both"],"title":"Operation Type"}},{"name":"match_by","in":"query","required":true,"schema":{"type":"string","enum":["email","phone","both"],"title":"Match By"}},{"name":"empty_update_required","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Empty Update Required"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkCustomerMappingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_customers/{customer_id}":{"get":{"summary":"Get Customers","operationId":"get_customers_v2__customers__customer_id__get","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Customer","operationId":"update_customer_v2__customers__customer_id__put","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Customer","operationId":"delete_customer_v2__customers__customer_id__delete","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_customers":{"get":{"summary":"Get Customers","operationId":"get_customers_v2__customers_get","parameters":[{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Customer","operationId":"create_customer_v2__customers_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/customer_bulk_update":{"put":{"summary":"Customer Bulk Update","operationId":"customer_bulk_update_v2_customer_bulk_update_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerUpdatedData"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/customer_bulk_delete":{"delete":{"summary":"Customer Bulk Delete","operationId":"customer_bulk_delete_v2_customer_bulk_delete_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerBulkDeleteData"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/company-plan":{"get":{"summary":"Get Company Plan","operationId":"get_company_plan_v2_company_plan_get","parameters":[{"name":"is_active","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Is Active"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/get-base-plans":{"get":{"summary":"Get Base Plans","operationId":"get_base_plans_v2_get_base_plans_get","parameters":[{"name":"list_active_plans_for_agency","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"List Active Plans For Agency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/company-plan/provision":{"post":{"summary":"Provision Company Plan","operationId":"provision_company_plan_v2_company_plan_provision_post","parameters":[{"name":"x_internal_key","in":"header","required":false,"schema":{"type":"string","title":"X Internal Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompanyPlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/new-company-plan":{"post":{"summary":"New Company Plan","operationId":"new_company_plan_v2_new_company_plan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/update-company-plan":{"post":{"summary":"Update Company Plan","operationId":"update_company_plan_v2_update_company_plan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/roles/{company_id}":{"get":{"summary":"Get Roles Route","operationId":"get_roles_route_v2_roles__company_id__get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/user-roles/create":{"post":{"summary":"Create Role Route","operationId":"create_role_route_v2_user_roles_create_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/user-roles/update/{role_id}":{"put":{"summary":"Update Role Route","operationId":"update_role_route_v2_user_roles_update__role_id__put","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"integer","title":"Role Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/user-roles/delete/{role_id}":{"delete":{"summary":"Delete Role Route","operationId":"delete_role_route_v2_user_roles_delete__role_id__delete","parameters":[{"name":"role_id","in":"path","required":true,"schema":{"type":"integer","title":"Role Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/get_purchased_phone_numbers":{"get":{"summary":"Get Purchased Phone Numbers","operationId":"get_purchased_phone_numbers_v2_get_purchased_phone_numbers_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Purchased Phone Numbers V2 Get Purchased Phone Numbers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/get_phone_numbers":{"get":{"summary":"Get Phone Numbers","operationId":"get_phone_numbers_v2_get_phone_numbers_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Items per page","default":10,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Phone Numbers V2 Get Phone Numbers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/available_phone_numbers_v2":{"get":{"summary":"Get Available Phone Numbers","operationId":"get_available_phone_numbers_v2_available_phone_numbers_v2_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Items per page","default":10,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Available Phone Numbers V2 Available Phone Numbers V2 Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/verify_phone":{"post":{"summary":"Verify Phone","operationId":"verify_phone_v2_verify_phone_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Verify Phone V2 Verify Phone Post"}}}}}}},"/v2/purchase_phone_number":{"post":{"summary":"Purchase Phone Number","operationId":"purchase_phone_number_v2_purchase_phone_number_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Purchase Phone Number V2 Purchase Phone Number Post"}}}}}}},"/v2/workspace/get_purchased_phone_numbers":{"get":{"summary":"Get Purchased Phone Numbers Workspace","operationId":"get_purchased_phone_numbers_workspace_v2_workspace_get_purchased_phone_numbers_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Purchased Phone Numbers Workspace V2 Workspace Get Purchased Phone Numbers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/update-phone-status":{"put":{"summary":"Update Phone Status","operationId":"update_phone_status_v2_update_phone_status_put","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Update Phone Status V2 Update Phone Status Put"}}}}}}},"/v2/purchase_phone_number_v2":{"post":{"summary":"Purchase Phone Number","operationId":"purchase_phone_number_v2_purchase_phone_number_v2_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Purchase Phone Number V2 Purchase Phone Number V2 Post"}}}}}}},"/v2/purchase_telnyx_phone_number":{"post":{"summary":"Purchase Telnyx Phone Number","operationId":"purchase_telnyx_phone_number_v2_purchase_telnyx_phone_number_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Purchase Telnyx Phone Number V2 Purchase Telnyx Phone Number Post"}}}}}}},"/v2/get_telnyx_phone_numbers":{"get":{"summary":"Get Telnyx Phone Numbers","operationId":"get_telnyx_phone_numbers_v2_get_telnyx_phone_numbers_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Items per page","default":10,"title":"Per Page"},"description":"Items per page"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Telnyx Phone Numbers V2 Get Telnyx Phone Numbers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/cancel_phone_numbers":{"delete":{"summary":"Cancel Phone Numbers","operationId":"cancel_phone_numbers_v2_cancel_phone_numbers_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/external/sms/{assistant_id}":{"post":{"summary":"Handle Sms Via Workspace","description":"Handle SMS sending via workspace","operationId":"handle_sms_via_workspace_v2_external_sms__assistant_id__post","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"integer","title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/external/new_assistants":{"get":{"summary":"Get New Assistant Route Via Workspace","description":"Get assistants via workspace","operationId":"get_new_assistant_route_via_workspace_v2_external_new_assistants_get","parameters":[{"name":"assistant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id"}},{"name":"assistant_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Description of param1","title":"Assistant Type"},"description":"Description of param1"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/external/new_assistants/{assistant_id}":{"get":{"summary":"Get New Assistant Route Via Workspace","description":"Get assistants via workspace","operationId":"get_new_assistant_route_via_workspace_v2_external_new_assistants__assistant_id__get","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id"}},{"name":"assistant_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Description of param1","title":"Assistant Type"},"description":"Description of param1"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/external/encrypt/{assistant_id}":{"get":{"summary":"Encrypt Assistant Id Route","description":"Encrypt assistant ID endpoint","operationId":"encrypt_assistant_id_route_v2_external_encrypt__assistant_id__get","parameters":[{"name":"assistant_id","in":"path","required":true,"schema":{"type":"string","title":"Assistant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/external/call":{"post":{"summary":"Make External Voice Call","operationId":"make_external_voice_call_v2_external_call_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/external/make-call":{"post":{"summary":"Make Hubspot Call","operationId":"make_hubspot_call_v2_external_make_call_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/external/{source}/make-call":{"post":{"summary":"Make Workflow Call","operationId":"make_workflow_call_v2_external__source__make_call_post","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/create-campaign":{"post":{"summary":"Create Campaign","operationId":"create_campaign_v2_create_campaign_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignRequestExternal"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/whatsapp-templates":{"get":{"summary":"Get Whatsapp Templates","operationId":"get_whatsapp_templates_v2_whatsapp_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/crm/{crm_name}/send-email":{"post":{"summary":"Send Email External","operationId":"send_email_external_v2_crm__crm_name__send_email_post","parameters":[{"name":"crm_name","in":"path","required":true,"schema":{"type":"string","title":"Crm Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/voicecalls/{agent_id}/makeCall":{"post":{"summary":"Make Call Request","description":"Handle voice call requests","operationId":"make_call_request_v2_voicecalls__agent_id__makeCall_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_call":{"post":{"summary":"Create Call","description":"Unified voice call API that supports both v1 and v2 implementations.\n\n- v1: Traditional voice calls via HTTP API (Twilio-based)\n- v2: Modern voice calls via LiveKit SIP integration\n\nThe version is determined by the 'version' field in the request body.","operationId":"create_call_v2__call_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCallRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_calls":{"get":{"summary":"Get Calls List","description":"Get list of voice calls for the workspace.\n\nReturns essential call information:\n- id: Session/Call ID\n- from: From phone number\n- to: To phone number\n- provider: Provider/Medium used\n- status: Call status\n- created_at: Call creation timestamp\n\nSupports pagination with page and per_page parameters.","operationId":"get_calls_list_v2__calls_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_calls/{call_id}":{"get":{"summary":"Get Call Detail","description":"Get detailed information for a specific voice call.\n\nReturns comprehensive call information including:\n- Complete session details\n- All conversations in the call\n- All processed actions during the call\n\nThe call_id should be the session ID of the voice call.","operationId":"get_call_detail_v2__calls__call_id__get","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/_call/fallback/{fallback_number}":{"post":{"summary":"Fallback Call","operationId":"fallback_call_v2__call_fallback__fallback_number__post","parameters":[{"name":"fallback_number","in":"path","required":true,"schema":{"type":"string","title":"Fallback Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/call/fallback/{fallback_number}":{"post":{"summary":"Fallback Call","operationId":"fallback_call_v2_call_fallback__fallback_number__post","parameters":[{"name":"fallback_number","in":"path","required":true,"schema":{"type":"string","title":"Fallback Number"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/sessions":{"get":{"summary":"Get Sessions","operationId":"get_sessions_v2_sessions_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/sessions/{session_id}/assign":{"post":{"summary":"Update Session History","operationId":"update_session_history_v2_sessions__session_id__assign_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/sessions/assign":{"post":{"summary":"Bulk Assign Sessions","operationId":"bulk_assign_sessions_v2_sessions_assign_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/sessions/search":{"post":{"summary":"Search Sessions","operationId":"search_sessions_v2_sessions_search_post","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/sessions/frequent-customers":{"get":{"summary":"Get Frequent Customers","operationId":"get_frequent_customers_v2_sessions_frequent_customers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/sessions/logs":{"get":{"summary":"Get Session Logs","operationId":"get_session_logs_v2_sessions_logs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/sessions/customer/{customer_id}":{"get":{"summary":"Get Customer Last Week Sessions","operationId":"get_customer_last_week_sessions_v2_sessions_customer__customer_id__get","parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","title":"Customer Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/sessions/export":{"get":{"summary":"Export Sessions","operationId":"export_sessions_v2_sessions_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/conversations/{session_id}":{"get":{"summary":"Get Conversations","operationId":"get_conversations_v2_conversations__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"search_query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Query"}},{"name":"search_field","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search Field"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Conversations V2 Conversations  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/get_call_recordings":{"get":{"summary":"Get Call Recordings","description":"Get call recordings for a specific conversation.","operationId":"get_call_recordings_v2_get_call_recordings_get","parameters":[{"name":"conversation_uuid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Uuid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Call Recordings V2 Get Call Recordings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/media/signed-url":{"get":{"summary":"Get Media Signed Url","description":"Generate a signed URL for accessing private media files stored in GCS.\nAccepts either gs:// URI or https://storage.googleapis.com/ URL format.","operationId":"get_media_signed_url_v2_media_signed_url_get","parameters":[{"name":"file_uri","in":"query","required":true,"schema":{"type":"string","description":"GCS URI (gs://bucket/path) or full GCS URL","title":"File Uri"},"description":"GCS URI (gs://bucket/path) or full GCS URL"},{"name":"expiration_minutes","in":"query","required":false,"schema":{"type":"integer","description":"URL expiration time in minutes (default 60)","default":60,"title":"Expiration Minutes"},"description":"URL expiration time in minutes (default 60)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Media Signed Url V2 Media Signed Url Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/evaluate/conversations/{session_id}":{"get":{"summary":"Evaluate Conversations","description":"Evaluate conversations for a specific session.","operationId":"evaluate_conversations_v2_evaluate_conversations__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"fore_ground","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Fore Ground"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Evaluate Conversations V2 Evaluate Conversations  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/save/conversations":{"post":{"summary":"Save Conversations","operationId":"save_conversations_v2_save_conversations_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Save Conversations V2 Save Conversations Post"}}}}}}},"/v2/conversation/{id}":{"post":{"summary":"Get Conversation","operationId":"get_conversation_v2_conversation__id__post","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/webhooks":{"post":{"summary":"Invoice Webhook Handler","operationId":"invoice_webhook_handler_v2_webhooks_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/sendgrid/email/webhook":{"post":{"summary":"Sendgrid Email Webhook Handler","operationId":"sendgrid_email_webhook_handler_v2_sendgrid_email_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/twilio/webhook":{"post":{"summary":"Twilio Sms Webhook Handler","operationId":"twilio_sms_webhook_handler_v2_twilio_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/status/sms/telnyx":{"post":{"summary":"Status Sms Telnyx","operationId":"status_sms_telnyx_v2_status_sms_telnyx_post","parameters":[{"name":"conversation_id","in":"query","required":false,"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"}}}}}}},"/v2/receive/sms":{"post":{"summary":"Receive Sms","operationId":"receive_sms_v2_receive_sms_post","parameters":[{"name":"assistant_id","in":"query","required":false,"schema":{"type":"string","title":"Assistant Id"}},{"name":"workspace_key","in":"query","required":false,"schema":{"type":"string","title":"Workspace Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/telnyx/receive/sms":{"post":{"summary":"Receive Sms Telnyx","description":"sample payload:\n    {\n  \"data\": {\n    \"event_type\": \"message.received\",\n    \"id\": \"11b341af-ad2d-401f-9f9d-860521bf731c\",\n    \"occurred_at\": \"2025-08-13T08:03:15.188+00:00\",\n    \"payload\": {\n      \"autoresponse_type\": None,\n      \"cc\": [],\n      \"completed_at\": None,\n      \"cost\": {\n        \"amount\": \"0.0040\",\n        \"currency\": \"USD\"\n      },\n      \"cost_breakdown\": {\n        \"carrier_fee\": {\n          \"amount\": \"0.00000\",\n          \"currency\": \"USD\"\n        },\n        \"rate\": {\n          \"amount\": \"0.00400\",\n          \"currency\": \"USD\"\n        }\n      },\n      \"direction\": \"inbound\",\n      \"encoding\": \"GSM-7\",\n      \"errors\": [],\n      \"from\": {\n        \"carrier\": \"\",\n        \"line_type\": \"Pre-Paid Wireless\",\n        \"phone_number\": \"+13256663049\"\n      },\n      \"id\": \"4c3b6b62-2ba4-4d5a-8388-1d4192c53366\",\n      \"is_spam\": False,\n      \"media\": [],\n      \"messaging_profile_id\": \"40019736-30f5-4d08-92f6-39f4be9d9eb1\",\n      \"organization_id\": \"3be24ba5-22af-414f-a3ac-360bb38b93ae\",\n      \"parts\": 1,\n      \"received_at\": \"2025-08-13T08:03:14.906+00:00\",\n      \"record_type\": \"message\",\n      \"sent_at\": None,\n      \"subject\": \"\",\n      \"tags\": [],\n      \"text\": \"Hi, this is Ashley from Blue Space Healthcare. We have healthcare job openings nationwide. Would you like to hear more about them? Reply STOP to opt out\",\n      \"to\": [\n        {\n          \"carrier\": \"Telnyx\",\n          \"line_type\": \"Wireless\",\n          \"phone_number\": \"+12819369134\",\n          \"status\": \"webhook_delivered\"\n        }\n      ],\n      \"type\": \"SMS\",\n      \"valid_until\": None,\n      \"webhook_failover_url\": \"https://pc2.proxy.vldo.in/telnyx\",\n      \"webhook_url\": \"https://pc2.proxy.vldo.in/telnyx\"\n    },\n    \"record_type\": \"event\"\n  },\n  \"meta\": {\n    \"attempt\": 1,\n    \"delivered_to\": \"https://pc2.proxy.vldo.in/telnyx\"\n  }\n}","operationId":"receive_sms_telnyx_v2_telnyx_receive_sms_post","parameters":[{"name":"security_param","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Security Param"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/widget":{"get":{"summary":"Read Root","operationId":"read_root_v2_widget_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/v2/receive/voice":{"post":{"summary":"Receive Voice","operationId":"receive_voice_v2_receive_voice_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/shopify/customers/redact":{"post":{"summary":"Shopify Customer Redact","operationId":"shopify_customer_redact_v2_shopify_customers_redact_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/shopify/customers/data_request":{"post":{"summary":"Shopify Customer Data Request","operationId":"shopify_customer_data_request_v2_shopify_customers_data_request_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/shopify/shop/redact":{"post":{"summary":"Shopify Shop Redact","operationId":"shopify_shop_redact_v2_shopify_shop_redact_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/checkout_session/cancel":{"get":{"summary":"Checkout Session Success","operationId":"checkout_session_success_v2_checkout_session_cancel_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/checkout_session/success":{"get":{"summary":"Checkout Session Success","operationId":"checkout_session_success_v2_checkout_session_success_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/hubspot/private/webhook":{"post":{"summary":"Private Webhook","operationId":"private_webhook_v2_hubspot_private_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/telnyx/events":{"post":{"summary":"Telnyx Events","operationId":"telnyx_events_v2_telnyx_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/chat_in_widget":{"post":{"summary":"Chat","operationId":"chat_v2_chat_in_widget_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/sms_widget":{"post":{"summary":"Sms Widget","operationId":"sms_widget_v2_sms_widget_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/voice_widget":{"post":{"summary":"Voice Widget","operationId":"voice_widget_v2_voice_widget_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/crm/sms/{source}":{"post":{"summary":"Send Sms Message From Crm","operationId":"send_sms_message_from_crm_v2_crm_sms__source__post","parameters":[{"name":"source","in":"path","required":true,"schema":{"type":"string","title":"Source"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__chat__SendSMSRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/voice/inbound":{"post":{"summary":"Voice Inbound","operationId":"voice_inbound_v2_voice_inbound_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceInboundRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/voice/outbound":{"post":{"summary":"Voice Outbound","operationId":"voice_outbound_v2_voice_outbound_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceOutboundRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/send-grid/send-email":{"post":{"summary":"Send Email","operationId":"send_email_v2_send_grid_send_email_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/integration/calendar/block":{"post":{"summary":"Block Calendar","operationId":"block_calendar_v2_integration_calendar_block_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/integration/calendar_natural_language/block":{"post":{"summary":"Block Calendar","operationId":"block_calendar_v2_integration_calendar_natural_language_block_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/integration/update/hubspot":{"post":{"summary":"Update Call Data In Hubspot","operationId":"update_call_data_in_hubspot_v2_integration_update_hubspot_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/integration/hubspot/find_contact":{"post":{"summary":"Find Call Data In Hubspot","operationId":"find_call_data_in_hubspot_v2_integration_hubspot_find_contact_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/external/send/sms":{"post":{"summary":"Send Sms","operationId":"send_sms_v2_external_send_sms_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/integration/extract_data":{"post":{"summary":"Extract Data","operationId":"extract_data_v2_integration_extract_data_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/available_slots":{"post":{"summary":"Get Available Slots Route","operationId":"get_available_slots_route_v2_available_slots_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/calendar/all_available_slots":{"post":{"summary":"Get All Available Slots Route","description":"Get all available slots for a specific date or week, excluding booked slots.\n\nRequest body:\n{\n    \"date\": \"2024-01-17\",  // Optional: specific date (YYYY-MM-DD), if not provided returns current week\n    \"timezone\": \"UTC\",     // Optional: timezone (default: UTC)\n    \"meeting_length\": 30,  // Optional: meeting duration in minutes (default: 30)\n    \"start_hour\": 9,       // Optional: start hour for available slots (default: 9)\n    \"end_hour\": 17,        // Optional: end hour for available slots (default: 17)\n    \"exclude_weekends\": false  // Optional: exclude weekends (default: false)\n}\n\nQuery parameters:\n- action_id: Required - The calendar action ID\n- assistant_id: Required - The assistant ID\n- conversation_uuid: Optional - Conversation UUID\n\nResponse:\n{\n    \"status\": \"success\",\n    \"message\": \"All available slots fetched successfully\",\n    \"result\": {\n        \"available_slots\": [\n            {\n                \"date\": \"2024-01-17\",\n                \"day_name\": \"Wednesday\",\n                \"slots\": [\n                    {\n                        \"start_time\": \"2024-01-17T09:00:00+00:00\",\n                        \"end_time\": \"2024-01-17T09:30:00+00:00\",\n                        \"time_slot\": \"09:00 - 09:30\"\n                    },\n                    ...\n                ]\n            },\n            ...\n        ],\n        \"total_slots\": 45,\n        \"period\": {\n            \"start_date\": \"2024-01-17\",\n            \"end_date\": \"2024-01-17\",\n            \"timezone\": \"UTC\"\n        },\n        \"meeting_length_minutes\": 30,\n        \"working_hours\": \"09:00 - 17:00\",\n        \"filtered_by_booking_limits\": true\n    }\n}","operationId":"get_all_available_slots_route_v2_calendar_all_available_slots_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/whatsapp/send_template":{"post":{"summary":"Send Template","operationId":"send_template_v2_whatsapp_send_template_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/shopify/handle":{"post":{"summary":"Handle Shopify","operationId":"handle_shopify_v2_shopify_handle_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/hubspot/create_ticket":{"post":{"summary":"Create Ticket","operationId":"create_ticket_v2_hubspot_create_ticket_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/hubspot/create_contact":{"post":{"summary":"Create Contact","operationId":"create_contact_v2_hubspot_create_contact_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/hubspot/sync_contact_and_ticket":{"post":{"summary":"Sync Contact And Ticket","operationId":"sync_contact_and_ticket_v2_hubspot_sync_contact_and_ticket_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncContactAndTicket"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/integration/laboredge/metadata":{"get":{"summary":"Get Laboredge Metadata","operationId":"get_laboredge_metadata_v2_integration_laboredge_metadata_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/hubspot/review-and-sync":{"post":{"summary":"Review And Sync","operationId":"review_and_sync_v2_hubspot_review_and_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/integration/laboredge/jobs/search":{"post":{"summary":"Laboredge Search Jobs","operationId":"laboredge_search_jobs_v2_integration_laboredge_jobs_search_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/internal/actions/execute/db":{"post":{"summary":"Execute Action Db","operationId":"execute_action_db_v2_internal_actions_execute_db_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/sip":{"post":{"summary":"Sip Route","operationId":"sip_route_v2_sip_post","parameters":[{"name":"access","in":"query","required":false,"schema":{"type":"string","title":"Access"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/sip/ip_resource":{"get":{"summary":"Get Ip Resource Route","operationId":"get_ip_resource_route_v2_sip_ip_resource_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Update Ip Resource Route","operationId":"update_ip_resource_route_v2_sip_ip_resource_put","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Ip Resource Route","operationId":"create_ip_resource_route_v2_sip_ip_resource_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/sip/ip_resource/delete":{"post":{"summary":"Delete Ip Resource Route","operationId":"delete_ip_resource_route_v2_sip_ip_resource_delete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/enable_sip":{"post":{"summary":"Enable Sip Calls","operationId":"enable_sip_calls_v2_enable_sip_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/sip/check":{"post":{"summary":"Enable Sip Calls","operationId":"enable_sip_calls_v2_sip_check_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/create_profiles":{"post":{"summary":"Create Profile Route","description":"Create a new module profile","operationId":"create_profile_route_v2_create_profiles_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/profiles":{"get":{"summary":"Get Profiles Route","description":"Get all profiles or a specific profile by ID","operationId":"get_profiles_route_v2_profiles_get","parameters":[{"name":"module_profile_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Module Profile Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Profiles Route V2 Profiles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/profiles/{module_profile_id}":{"get":{"summary":"Get Profiles Route","description":"Get all profiles or a specific profile by ID","operationId":"get_profiles_route_v2_profiles__module_profile_id__get","parameters":[{"name":"module_profile_id","in":"path","required":true,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Module Profile Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Get Profiles Route V2 Profiles  Module Profile Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/profiles/{profile_id}":{"put":{"summary":"Update Profile Route","description":"Update a module profile","operationId":"update_profile_route_v2_profiles__profile_id__put","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"integer","title":"Profile Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Profile Route","description":"Soft delete a module profile","operationId":"delete_profile_route_v2_profiles__profile_id__delete","parameters":[{"name":"profile_id","in":"path","required":true,"schema":{"type":"integer","title":"Profile Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/add_customers":{"post":{"summary":"Add Customer","operationId":"add_customer_v2_add_customers_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/update_customers/{company_id}":{"put":{"summary":"Update Customer Details","operationId":"update_customer_details_v2_update_customers__company_id__put","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/delete_customers/{user_id}":{"delete":{"summary":"Delete Customer","operationId":"delete_customer_v2_delete_customers__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/analytics/customers":{"get":{"summary":"Get Customers Analytics","operationId":"get_customers_analytics_v2_analytics_customers_get","parameters":[{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Type of data to retrieve: monthly, weekly, quarterly","title":"Type"},"description":"Type of data to retrieve: monthly, weekly, quarterly"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/update_subscription/{subscription_id}":{"put":{"summary":"Update Subscription","operationId":"update_subscription_v2_update_subscription__subscription_id__put","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/get_customer_assistants/{company_id}":{"get":{"summary":"Get Customer Assistants","operationId":"get_customer_assistants_v2_get_customer_assistants__company_id__get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","description":"Type of assistant (EMAIL, SMS, VOICE, CHAT, etc.)","title":"Type"},"description":"Type of assistant (EMAIL, SMS, VOICE, CHAT, etc.)"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","description":"Items per page","default":10,"title":"Per Page"},"description":"Items per page"},{"name":"search_query","in":"query","required":false,"schema":{"type":"string","description":"Search assistant by name","title":"Search Query"},"description":"Search assistant by name"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/recent-activities":{"get":{"summary":"Get Recent Activities","operationId":"get_recent_activities_v2_recent_activities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/generate_customer_token/{user_id}":{"get":{"summary":"Generate Customer Token","operationId":"generate_customer_token_v2_generate_customer_token__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/change_customer_status/{user_id}":{"put":{"summary":"Change Customer Status","operationId":"change_customer_status_v2_change_customer_status__user_id__put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"Status Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/base-plan":{"get":{"summary":"Get Base Plans","operationId":"get_base_plans_v2_base_plan_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/get_subscriptions":{"get":{"summary":"Get Subscriptions","operationId":"get_subscriptions_v2_get_subscriptions_get","parameters":[{"name":"subscription_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/get_subscriptions/{subscription_id}":{"get":{"summary":"Get Subscriptions","operationId":"get_subscriptions_v2_get_subscriptions__subscription_id__get","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/create/base-plan":{"post":{"summary":"Create Base Plan","operationId":"create_base_plan_v2_create_base_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BasePlan"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/base-plan/{base_plan_id}":{"put":{"summary":"Update Base Plan","operationId":"update_base_plan_v2_base_plan__base_plan_id__put","parameters":[{"name":"base_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Base Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/payment/cards":{"post":{"summary":"Signup","description":"Create a new payment method","operationId":"signup_v2_simplyrets_user_payment_cards_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/upgrade_subscription":{"post":{"summary":"Upgrade Subscription","operationId":"upgrade_subscription_v2_simplyrets_user_upgrade_subscription_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/cancel-subscription":{"post":{"summary":"Cancel Subscription","operationId":"cancel_subscription_v2_simplyrets_user_cancel_subscription_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/invoices":{"get":{"summary":"Get Invoices","operationId":"get_invoices_v2_simplyrets_user_invoices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/validate-coupon/{coupon_id}":{"get":{"summary":"Validate Coupon","operationId":"validate_coupon_v2_simplyrets_user_validate_coupon__coupon_id__get","parameters":[{"name":"coupon_id","in":"path","required":true,"schema":{"type":"string","title":"Coupon Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/trial-end":{"get":{"summary":"End Free Trail Request","operationId":"end_free_trail_request_v2_simplyrets_user_trial_end_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/subscriptions":{"get":{"summary":"Get Subscriptions","operationId":"get_subscriptions_v2_simplyrets_user_subscriptions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/purchase-add-on":{"post":{"summary":"Purchase Add On","operationId":"purchase_add_on_v2_simplyrets_user_purchase_add_on_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseAddOns"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/manage-subscription":{"post":{"summary":"Manage Subscription","operationId":"manage_subscription_v2_simplyrets_user_manage_subscription_post","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Data","default":{"update_payment_method":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/api_keys":{"post":{"summary":"Create Api Keys Route","operationId":"create_api_keys_route_v2_simplyrets_user_api_keys_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__apikey__ApiKey"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Api Keys Route","operationId":"get_api_keys_route_v2_simplyrets_user_api_keys_get","parameters":[{"name":"api_key_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/api_keys/{api_key_id}":{"get":{"summary":"Get Api Keys Route","operationId":"get_api_keys_route_v2_simplyrets_user_api_keys__api_key_id__get","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/api_keys/{id}":{"put":{"summary":"Update Api Key Route","operationId":"update_api_key_route_v2_simplyrets_user_api_keys__id__put","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__apikey__ApiKey"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Api Key Route","operationId":"delete_api_key_route_v2_simplyrets_user_api_keys__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/get_voices":{"get":{"summary":"Fetch Data","operationId":"fetch_data_v2_simplyrets_user_get_voices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/openai/models":{"get":{"summary":"Fetch Openai Models Route","operationId":"fetch_openai_models_route_v2_simplyrets_user_openai_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Fetch Openai Models Route V2 Simplyrets User Openai Models Get"}}}}}}},"/v2/simplyrets-user/integrations":{"get":{"summary":"Get Integrations Route","operationId":"get_integrations_route_v2_simplyrets_user_integrations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/api_keys/assistants/{api_key_id}":{"get":{"summary":"Get Api Key Assistants Route","operationId":"get_api_key_assistants_route_v2_simplyrets_user_api_keys_assistants__api_key_id__get","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"integer","title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/sip_trunk/enable/{api_key_id}":{"get":{"summary":"Get Twilio Sip Trunk Route","operationId":"get_twilio_sip_trunk_route_v2_simplyrets_user_sip_trunk_enable__api_key_id__get","parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"integer","title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/_apikeys/{apikey_id}":{"get":{"summary":"Get Apikeys","operationId":"get_apikeys_v2_simplyrets_user__apikeys__apikey_id__get","parameters":[{"name":"apikey_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/_apikeys":{"get":{"summary":"Get Apikeys","operationId":"get_apikeys_v2_simplyrets_user__apikeys_get","parameters":[{"name":"apikey_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Apikeys","operationId":"create_apikeys_v2_simplyrets_user__apikeys_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__apikey__ApiKey"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/_apikeys/{id}":{"put":{"summary":"Update Apikeys","operationId":"update_apikeys_v2_simplyrets_user__apikeys__id__put","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__apikey__ApiKey"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Apikeys","operationId":"delete_apikeys_v2_simplyrets_user__apikeys__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/signup":{"post":{"summary":"Signup","operationId":"signup_v2_simplyrets_user_signup_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/signup-test":{"post":{"summary":"Signup","operationId":"signup_v2_simplyrets_user_signup_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/verify-otp":{"post":{"summary":"Signup","operationId":"signup_v2_simplyrets_user_verify_otp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/get_company_details":{"get":{"summary":"Get Company Details","operationId":"get_company_details_v2_simplyrets_user_get_company_details_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/update_me":{"put":{"summary":"Update Company Details","operationId":"update_company_details_v2_simplyrets_user_update_me_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/companies/details":{"get":{"summary":"Get Companies Details","operationId":"get_companies_details_v2_simplyrets_user_companies_details_get","parameters":[{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}},{"name":"is_agency","in":"query","required":false,"schema":{"type":"boolean","description":"If true, fetch customers based on context company_id","default":false,"title":"Is Agency"},"description":"If true, fetch customers based on context company_id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/companies/details/{company_id}":{"get":{"summary":"Get Companies Details","operationId":"get_companies_details_v2_simplyrets_user_companies_details__company_id__get","parameters":[{"name":"company_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}},{"name":"is_agency","in":"query","required":false,"schema":{"type":"boolean","description":"If true, fetch customers based on context company_id","default":false,"title":"Is Agency"},"description":"If true, fetch customers based on context company_id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/resend-otp":{"post":{"summary":"Resend Otp","description":"Resend OTP to prospect's email","operationId":"resend_otp_v2_simplyrets_user_resend_otp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/get_contactswing_id":{"get":{"summary":"Get Contactswing Company Id","description":"Get ContactSwing company ID from environment variables","operationId":"get_contactswing_company_id_v2_simplyrets_user_get_contactswing_id_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/azure_account_details":{"post":{"summary":"Azure Account Details","operationId":"azure_account_details_v2_simplyrets_user_azure_account_details_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/update_tutorial_counts":{"put":{"summary":"Update Tutorial Counts","operationId":"update_tutorial_counts_v2_simplyrets_user_update_tutorial_counts_put","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/send-10dlc-approval-email":{"post":{"summary":"Send 10Dlc Approval Email","operationId":"send_10dlc_approval_email_v2_simplyrets_user_send_10dlc_approval_email_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/delete_account":{"delete":{"summary":"Delete Account","operationId":"delete_account_v2_simplyrets_user_delete_account_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/workspace/company-details":{"get":{"summary":"Get Workspace Company Details","description":"Get company details for workspace authentication\nReturns company_id, email, phone, and name","operationId":"get_workspace_company_details_v2_simplyrets_user_workspace_company_details_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/sample/api/example":{"post":{"summary":"Sample Api Example","description":"Sample API endpoint for webhook action that returns status=true with dummy data","operationId":"sample_api_example_v2_simplyrets_user_sample_api_example_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/replicate-actions-and-assistant":{"post":{"summary":"Replicate Actions And Assistant","description":"Replicate actions from super admin account to customer account and create assistant.\nTakes action_ids array and assistant data, replicates actions with replaced values.","operationId":"replicate_actions_and_assistant_v2_simplyrets_user_replicate_actions_and_assistant_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/login":{"post":{"summary":"Login","operationId":"login_v2_simplyrets_user_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/user":{"post":{"summary":"Create User Route","operationId":"create_user_route_v2_simplyrets_user_user_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/users":{"get":{"summary":"Get Users Route","operationId":"get_users_route_v2_simplyrets_user_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/user/{user_id}":{"put":{"summary":"Update User Route","operationId":"update_user_route_v2_simplyrets_user_user__user_id__put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete User Route","operationId":"delete_user_route_v2_simplyrets_user_user__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"assign_to_user","in":"query","required":false,"schema":{"type":"string","description":"User ID to reassign sessions to before deletion","title":"Assign To User"},"description":"User ID to reassign sessions to before deletion"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/me":{"get":{"summary":"Get User Profile Route","operationId":"get_user_profile_route_v2_simplyrets_user_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Update Password Route","operationId":"update_password_route_v2_simplyrets_user_me_put","requestBody":{"content":{"application/json":{"schema":{"type":"object","title":"Data"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/delete_oauth_user":{"delete":{"summary":"Delete Oauth User Route","operationId":"delete_oauth_user_route_v2_simplyrets_user_delete_oauth_user_delete","parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"GMAIL","title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/generate-token/{company_plan_id}":{"get":{"summary":"Generate Token Route","operationId":"generate_token_route_v2_simplyrets_user_generate_token__company_plan_id__get","parameters":[{"name":"company_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Company Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/user/forgot_password":{"post":{"summary":"Forgot Password Route","operationId":"forgot_password_route_v2_simplyrets_user_user_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_forgot_password_route_v2_simplyrets_user_user_forgot_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/user/reset_password":{"post":{"summary":"Reset Password Route","operationId":"reset_password_route_v2_simplyrets_user_user_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_reset_password_route_v2_simplyrets_user_user_reset_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/generate_token/{company_plan_id}":{"get":{"summary":"Generate Token Route","operationId":"generate_token_route_v2_simplyrets_user_generate_token__company_plan_id__get","parameters":[{"name":"company_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Company Plan Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/workflow/token":{"get":{"summary":"Get Workflow Token","operationId":"get_workflow_token_v2_simplyrets_user_workflow_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/refresh/token":{"post":{"summary":"Refresh Token","operationId":"refresh_token_v2_simplyrets_user_refresh_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/logout/{login_id}":{"post":{"summary":"Logout","operationId":"logout_v2_simplyrets_user_logout__login_id__post","parameters":[{"name":"login_id","in":"path","required":true,"schema":{"type":"integer","title":"Login Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/users/dropdown":{"get":{"summary":"Get Users Dropdown","operationId":"get_users_dropdown_v2_simplyrets_user_users_dropdown_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/user/login-history":{"get":{"summary":"Get User Login History","operationId":"get_user_login_history_v2_simplyrets_user_user_login_history_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/create-config":{"post":{"summary":"Create Simplyrets User Config Api","operationId":"create_simplyrets_user_config_api_v2_simplyrets_user_create_config_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/simplyrets-user/get-config/{api_id}":{"get":{"summary":"Get Simplyrets User Config Api","operationId":"get_simplyrets_user_config_api_v2_simplyrets_user_get_config__api_id__get","parameters":[{"name":"api_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/simplyrets-user/fetch-properties":{"post":{"summary":"Get Simplyrets Properties Api","operationId":"get_simplyrets_properties_api_v2_simplyrets_user_fetch_properties_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/create-config":{"post":{"summary":"Create Simplyrets User Config Api","operationId":"create_simplyrets_user_config_api_v2_create_config_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/get-config/{api_id}":{"get":{"summary":"Get Simplyrets User Config Api","operationId":"get_simplyrets_user_config_api_v2_get_config__api_id__get","parameters":[{"name":"api_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/fetch-properties":{"post":{"summary":"Get Simplyrets Properties Api","operationId":"get_simplyrets_properties_api_v2_fetch_properties_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/assistant_template/create":{"post":{"summary":"Create Assistant Templates Route","operationId":"create_assistant_templates_route_v2_assistant_template_create_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/assistant_templates":{"get":{"summary":"Get Assistant Templates Route","operationId":"get_assistant_templates_route_v2_assistant_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/assistant_template/{template_id}":{"put":{"summary":"Update Assistant Template Route","operationId":"update_assistant_template_route_v2_assistant_template__template_id__put","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Assistant Template By Id Route","operationId":"get_assistant_template_by_id_route_v2_assistant_template__template_id__get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/assistant_templates/{template_id}":{"delete":{"summary":"Delete Assistant Template Route","operationId":"delete_assistant_template_route_v2_assistant_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/custom_views":{"post":{"summary":"Create Custom View","operationId":"create_custom_view_v2_custom_views_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomViewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Custom Views","operationId":"get_custom_views_v2_custom_views_get","parameters":[{"name":"custom_view_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom View Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/custom_views/{custom_view_id}":{"get":{"summary":"Get Custom Views","operationId":"get_custom_views_v2_custom_views__custom_view_id__get","parameters":[{"name":"custom_view_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom View Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Custom View","operationId":"update_custom_view_v2_custom_views__custom_view_id__put","parameters":[{"name":"custom_view_id","in":"path","required":true,"schema":{"type":"string","title":"Custom View Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/whatsapp/webhook":{"get":{"summary":"Whatsapp Webhook Get","operationId":"whatsapp_webhook_get_v2_whatsapp_webhook_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Whatsapp Webhook","operationId":"whatsapp_webhook_v2_whatsapp_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/whatsapp/message":{"post":{"summary":"Send Message To Whatsapp","operationId":"send_message_to_whatsapp_v2_whatsapp_message_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappNormalMessage"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/whatsapp/send_message":{"post":{"summary":"Send Message To Whatsapp","operationId":"send_message_to_whatsapp_v2_whatsapp_send_message_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappNormalMessage"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/whatsapp/template_message":{"get":{"summary":"Get Template Message To Whatsapp","operationId":"get_template_message_to_whatsapp_v2_whatsapp_template_message_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Send Template Message To Whatsapp","operationId":"send_template_message_to_whatsapp_v2_whatsapp_template_message_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTemplateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/whatsapp/phone_number":{"get":{"summary":"Get Phone Number To Whatsapp","operationId":"get_phone_number_to_whatsapp_v2_whatsapp_phone_number_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/crm/{crm_name}/send-template/whatsapp":{"post":{"summary":"Send Template External Message To Whatsapp","operationId":"send_template_external_message_to_whatsapp_v2_crm__crm_name__send_template_whatsapp_post","parameters":[{"name":"crm_name","in":"path","required":true,"schema":{"type":"string","title":"Crm Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappTemplateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/workspace/whatsapp/phone_number":{"get":{"summary":"Get Phone Number To Whatsapp","operationId":"get_phone_number_to_whatsapp_v2_workspace_whatsapp_phone_number_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/twilio/whatsapp/webhook":{"post":{"summary":"Twilio Whatsapp Webhook","operationId":"twilio_whatsapp_webhook_v2_twilio_whatsapp_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/whatsapp/outbound/call":{"post":{"summary":"Whatsapp Outbound Call","operationId":"whatsapp_outbound_call_v2_whatsapp_outbound_call_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/whatsapp/call_config":{"get":{"summary":"Get Call Config Whatsapp","description":"Get WhatsApp call settings configuration for a phone number.\n\nArgs:\n    phone_number_id: The WhatsApp phone number ID to retrieve settings for\n\nReturns:\n    Call settings including calling_status, weekly_operating_hours, and holiday_schedule","operationId":"get_call_config_whatsapp_v2_whatsapp_call_config_get","parameters":[{"name":"phone_number_id","in":"query","required":true,"schema":{"type":"string","description":"Phone number ID to get call settings for","title":"Phone Number Id"},"description":"Phone number ID to get call settings for"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Update Call Config Whatsapp","description":"Update WhatsApp call settings configuration for a phone number.\n\nArgs:\n    data: WhatsappCallConfigUpdate containing:\n        - phone_number_id (required): The phone number ID to update\n        - calling_status (optional): ENABLED or DISABLED\n        - weekly_operating_hours (optional): List of operating hours per day\n        - holiday_schedule (optional): List of holiday dates with operating hours\n\nReturns:\n    Updated call settings confirmation","operationId":"update_call_config_whatsapp_v2_whatsapp_call_config_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsappCallConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/crm/touchpoints/{source}":{"get":{"summary":"Get Touchpoints","operationId":"get_touchpoints_v2_crm_touchpoints__source__get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":10,"title":"Per Page"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter touchpoints by type","title":"Type"},"description":"Filter touchpoints by type"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/task/email":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_email_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/sms":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_sms_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/call":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_call_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/call/reinitiate":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_call_reinitiate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/call/follow-up":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_call_follow_up_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/whatsapp":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_whatsapp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/calls-checker":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_calls_checker_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/plan-checker":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_plan_checker_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/call/monitor":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_call_monitor_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/email/schedular":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_email_schedular_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/sms/schedular":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_sms_schedular_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/whatsapp/schedular":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_whatsapp_schedular_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/reset-plan":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_reset_plan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/task/create-plan":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_task_create_plan_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/shopify/session":{"get":{"summary":"Get Shop Data","operationId":"get_shop_data_v2_shopify_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/token_activity":{"get":{"summary":"Get Token Activity Route","operationId":"get_token_activity_route_v2_token_activity_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"default":10,"title":"Limit"}},{"name":"assistant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id"}},{"name":"oauth_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Oauth Id"}},{"name":"min_tokens","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Min Tokens"}},{"name":"max_tokens","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Max Tokens"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"prompt_search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Search"}},{"name":"response_search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/candidates/initiate_sms":{"post":{"summary":"Send Candidate Sms","operationId":"send_candidate_sms_v2_candidates_initiate_sms_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SingleSMSList"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/evaluate_sms":{"post":{"summary":"Evaluate Sms","operationId":"evaluate_sms_v2_evaluate_sms_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateSMS"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/archive_sms":{"post":{"summary":"Archive Sms","operationId":"archive_sms_v2_archive_sms_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationId"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/evaluate_sms_rendered":{"post":{"summary":"Evaluate Sms Rendered","operationId":"evaluate_sms_rendered_v2_evaluate_sms_rendered_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateSMS_Rendered"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/white-label":{"post":{"summary":"Create White Label Config","operationId":"create_white_label_config_v2_white_label_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"get":{"summary":"Get White Label Config","operationId":"get_white_label_config_v2_white_label_get","parameters":[{"name":"id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},{"name":"domain_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/white-label/{id}":{"get":{"summary":"Get White Label Config","operationId":"get_white_label_config_v2_white_label__id__get","parameters":[{"name":"id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},{"name":"domain_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update White Label Config","operationId":"update_white_label_config_v2_white_label__id__put","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete White Label Config","operationId":"delete_white_label_config_v2_white_label__id__delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/check_domain_mapping":{"post":{"summary":"Check Domain Mapping","operationId":"check_domain_mapping_v2_check_domain_mapping_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/generate-ssl-certificate":{"post":{"summary":"Generate Ssl Certificate","operationId":"generate_ssl_certificate_v2_generate_ssl_certificate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/delete-ssl-certificate":{"post":{"summary":"Delete Ssl Certificate","operationId":"delete_ssl_certificate_v2_delete_ssl_certificate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/check-ssl-provisioning":{"post":{"summary":"Check Ssl Provisioning","operationId":"check_ssl_provisioning_v2_check_ssl_provisioning_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/whitelabel/account-link":{"post":{"summary":"Account Link","operationId":"account_link_v2_whitelabel_account_link_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/whitelabel/account":{"post":{"summary":"Account","operationId":"account_v2_whitelabel_account_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/whitelabel/return/{account_id}":{"get":{"summary":"Catch Return Connected Account","operationId":"catch_return_connected_account_v2_whitelabel_return__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/whitelabel/refresh/{account_id}":{"get":{"summary":"Catch All","operationId":"catch_all_v2_whitelabel_refresh__account_id__get","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"title":"Account Id"}},{"name":"kwargs","in":"query","required":true,"schema":{"title":"Kwargs"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/verify-domain":{"get":{"summary":"Verify Domain","operationId":"verify_domain_v2_verify_domain_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/generate_draft_sms":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_generate_draft_sms_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/refine_sms_draft":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_refine_sms_draft_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/shorten_sms_draft":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_shorten_sms_draft_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/generic_draft_sms":{"post":{"summary":"Create Action Route","operationId":"create_action_route_v2_generic_draft_sms_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/add-ons":{"post":{"summary":"Create Add On Route","operationId":"create_add_on_route_v2_add_ons_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOnCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Add Ons Route","operationId":"get_add_ons_route_v2_add_ons_get","parameters":[{"name":"add_on_id","in":"query","required":false,"schema":{"type":"string","title":"Add On Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/add-ons/{add_on_id}":{"get":{"summary":"Get Add Ons Route","operationId":"get_add_ons_route_v2_add_ons__add_on_id__get","parameters":[{"name":"add_on_id","in":"path","required":true,"schema":{"type":"string","title":"Add On Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Add On Route","operationId":"update_add_on_route_v2_add_ons__add_on_id__put","parameters":[{"name":"add_on_id","in":"path","required":true,"schema":{"type":"string","title":"Add On Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOnUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Add On Route","operationId":"delete_add_on_route_v2_add_ons__add_on_id__delete","parameters":[{"name":"add_on_id","in":"path","required":true,"schema":{"type":"string","title":"Add On Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/calcom/managed/slots":{"get":{"summary":"Calcom Managed Slots","operationId":"calcom_managed_slots_v2_calcom_managed_slots_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/calcom/book-slot":{"post":{"summary":"Calcom Platform Book Slot","operationId":"calcom_platform_book_slot_v2_calcom_book_slot_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/dashboard/overview":{"get":{"tags":["Dashboard"],"summary":"Get Dashboard Overview","description":"Get comprehensive dashboard overview with session breakdown and voice analytics.\n\nReturns:\n- Total counts (sessions, customers, campaigns)\n- Session breakdown by type (voice, SMS, WhatsApp)\n- Voice call analytics (completed, busy, failed, voicemail)\n- Time-based metrics (today, weekly, monthly, quarterly)\n- Recent activity","operationId":"get_dashboard_overview_v2_dashboard_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/dashboard/voice-analytics":{"get":{"tags":["Dashboard"],"summary":"Get Voice Analytics","description":"Get detailed voice call analytics.\n\nReturns:\n- Total calls breakdown (completed, busy, failed, no answer, voicemail)\n- Incoming vs Outgoing calls\n- Average call duration\n- Success rate\n- Status breakdown with detailed metrics","operationId":"get_voice_analytics_v2_dashboard_voice_analytics_get","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Start date (YYYY-MM-DD)","title":"Start Date"},"description":"Start date (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"End date (YYYY-MM-DD)","title":"End Date"},"description":"End date (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/dashboard/session-breakdown":{"get":{"tags":["Dashboard"],"summary":"Get Session Breakdown","description":"Get current session breakdown by communication type.\n\nReturns:\n- Session counts by type (voice, SMS, WhatsApp, email)\n- Unique customers per type\n- Voice call direction breakdown (incoming/outgoing)","operationId":"get_session_breakdown_v2_dashboard_session_breakdown_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/dashboard/email-alert":{"post":{"tags":["Dashboard"],"summary":"Send Email Alert","description":"Send email alerts to internal team based on type.\n- white_glove: White-glove support request alert\n- support: New support ticket alert (accepts ticket data in request body)\n- feedback: Customer feedback alert (requires rating and feedback params)","operationId":"send_email_alert_v2_dashboard_email_alert_post","parameters":[{"name":"email_type","in":"query","required":true,"schema":{"type":"string","description":"Type of email: white_glove, support, or feedback","title":"Email Type"},"description":"Type of email: white_glove, support, or feedback"},{"name":"rating","in":"query","required":false,"schema":{"type":"string","description":"Rating for feedback emails","title":"Rating"},"description":"Rating for feedback emails"},{"name":"feedback","in":"query","required":false,"schema":{"type":"string","description":"Feedback text for feedback emails","title":"Feedback"},"description":"Feedback text for feedback emails"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Action":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":56,"minLength":1},{"type":"null"}],"title":"Name","description":"Action name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Action description"},"type":{"anyOf":[{"type":"string","enum":["SHOPIFY","SINGLEDATAEXTRACTION","AIRCALL","SEND_EMAIL","SEND_SMS","CALL_TRANSFER","WEBHOOK","APPOINTMENT","DATAEXTRACTION","SEND_WHATSAPP","LABOREDGE","APPOINTMENT_WITHOUT_EMAIL","DTMF_ACTION"]},{"type":"null"}],"title":"Type","description":"Action type"},"action_timing":{"anyOf":[{"$ref":"#/components/schemas/CallTiming"},{"type":"string"},{"type":"null"}],"title":"Action Timing","description":"When to execute the action"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Action status"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version","description":"Action version"},"webhook":{"anyOf":[{"$ref":"#/components/schemas/WebhookData"},{"$ref":"#/components/schemas/CalendarWebhookData"},{"$ref":"#/components/schemas/CallTransferData"},{"type":"null"}],"title":"Webhook","description":"Webhook data for webhook-based actions"},"email":{"anyOf":[{"$ref":"#/components/schemas/EmailData"},{"type":"null"}],"description":"Email data for SEND_EMAIL action"},"sms":{"anyOf":[{"$ref":"#/components/schemas/SMSData"},{"type":"null"}],"description":"SMS data for SEND_SMS action"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number","description":"Phone number for CALL_TRANSFER action"}},"type":"object","title":"Action","description":"Schema for creating and updating actions"},"AddOnCreate":{"properties":{"name":{"type":"string","title":"Name","description":"Add-on name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Add-on description"},"tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens","description":"Number of tokens"},"minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minutes","description":"Number of minutes"},"task_execution_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Task Execution Limit","description":"Number of task execution limit"},"price":{"type":"integer","title":"Price","description":"Price in cents"},"sms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sms","description":"Number of SMS/messages"},"price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Id","description":"Stripe price ID"},"is_active":{"type":"boolean","title":"Is Active","description":"Active status","default":true}},"type":"object","required":["name","price"],"title":"AddOnCreate","description":"Schema for creating add-ons"},"AddOnUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Add-on name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Add-on description"},"tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens","description":"Number of tokens"},"minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minutes","description":"Number of minutes"},"price":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price","description":"Price in cents"},"price_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Id","description":"Stripe price ID"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Active status"}},"type":"object","title":"AddOnUpdate","description":"Schema for updating add-ons"},"ApiKeyChannelEnum":{"type":"string","enum":["SMS","EMAIL","VOICE","CALL","MODEL","DEEPGRAM","OTHER"],"title":"ApiKeyChannelEnum"},"Assistant":{"properties":{"name":{"type":"string","title":"Name","description":"Company name"},"type":{"$ref":"#/components/schemas/AssistantType","description":"Assistant type"},"api_keys":{"anyOf":[{"items":{"$ref":"#/components/schemas/app__schemas__assistant__ApiKey"},"type":"array"},{"type":"null"}],"title":"Api Keys","description":"API keys"},"instructions":{"type":"string","title":"Instructions","description":"Instructions"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model"},"prompts":{"$ref":"#/components/schemas/Prompt","description":"Prompt is mandatory"},"version":{"anyOf":[{"type":"string","enum":["v1","v2","w1"]},{"type":"null"}],"title":"Version","description":"Version of the assistant"},"status":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Status","description":"Status of the assistant"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number","description":"Phone number"},"incoming_call_greeting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Incoming Call Greeting","description":"Incoming call greeting"},"outgoing_call_greeting":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outgoing Call Greeting","description":"Outgoing call greeting"},"synthesizer":{"anyOf":[{"type":"string","enum":["AZURE","Azure","DEEPGRAM","GROK","OPENAI","CARTESIA","ELEVEN_LABS","PLAY_HT","SARVAM"]},{"type":"null"}],"title":"Synthesizer","description":"Synthesizer"},"enable_recordings":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Recordings","description":"Enabled recordings","default":false},"kb_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kb Id","description":"Knowledge base id"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language","default":"english"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id","description":"Voice id"},"action_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Action Ids","description":"Action ids","default":[]},"additional_settings":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__assistant__AdditionalSettings"},{"type":"null"}],"description":"Additional settings"},"response_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Time","description":"Response time out"},"application_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Application Id","description":"Application id of the assistant"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Assistant description"}},"type":"object","required":["name","type","instructions","prompts"],"title":"Assistant"},"AssistantType":{"type":"string","enum":["SMS","EMAIL","VOICE","CHAT","OTHER","VOICE_INCOMING","VOICE_OUTGOING","WHATSAPP","EMAIL_ASSISTANT"],"title":"AssistantType"},"AzureVoiceIntegrationKey":{"properties":{"resource_key":{"type":"string","title":"Resource Key","description":"Azure resource key"},"resource_region":{"type":"string","title":"Resource Region","description":"Azure resource region"}},"type":"object","required":["resource_key","resource_region"],"title":"AzureVoiceIntegrationKey","description":"Azure Voice integration key structure"},"BasePlan":{"properties":{"plan_name":{"type":"string","title":"Plan Name","description":"Name of the base plan"},"description":{"type":"string","title":"Description","description":"Description of the base plan"},"monthly_plan_price":{"type":"integer","title":"Monthly Plan Price","description":"Price of the base plan"},"Annual_plan_price":{"type":"integer","title":"Annual Plan Price","description":"Price of the base plan"},"currency":{"type":"string","title":"Currency","description":"Currency of the base plan"},"trial_call_minutes":{"type":"integer","title":"Trial Call Minutes","description":"Trial call minutes of the base plan"},"trial_tokens_limit":{"type":"integer","title":"Trial Tokens Limit","description":"Trial tokens of the base plan"},"supported_countries":{"items":{"type":"string"},"type":"array","title":"Supported Countries","description":"Supported countries of the base plan"},"max_concurrent_calls":{"type":"integer","title":"Max Concurrent Calls","description":"Max concurrent calls of the base plan"},"max_allowed_tokens":{"type":"integer","title":"Max Allowed Tokens","description":"Max allowed tokens of the base plan"},"no_of_minutes_per_month":{"type":"integer","title":"No Of Minutes Per Month","description":"No of minutes per month of the base plan"},"llms":{"items":{"type":"string"},"type":"array","title":"Llms","description":"LLMs of the base plan"},"includes_free_trial":{"type":"boolean","title":"Includes Free Trial","description":"Includes free trial of the base plan"},"trial_days":{"type":"integer","title":"Trial Days","description":"Trial days of the base plan"}},"type":"object","required":["plan_name","description","monthly_plan_price","Annual_plan_price","currency","trial_call_minutes","trial_tokens_limit","supported_countries","max_concurrent_calls","max_allowed_tokens","no_of_minutes_per_month","llms","includes_free_trial","trial_days"],"title":"BasePlan"},"Body_add_files_knowledge_base_route_v2_add_file__id__post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"},"data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Data","default":{}}},"type":"object","required":["files"],"title":"Body_add_files_knowledge_base_route_v2_add_file__id__post"},"Body_analyze_file_mapping_route_v2_customers_analyze_file_mapping_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_analyze_file_mapping_route_v2_customers_analyze_file_mapping_post"},"Body_forgot_password_route_v2_simplyrets_user_user_forgot_password_post":{"properties":{"email":{"type":"string","title":"Email"},"type":{"type":"string","enum":["email_link","otp"],"title":"Type","default":"otp"}},"type":"object","required":["email"],"title":"Body_forgot_password_route_v2_simplyrets_user_user_forgot_password_post"},"Body_forgot_password_route_v2_user_forgot_password_post":{"properties":{"email":{"type":"string","title":"Email"},"type":{"type":"string","enum":["email_link","otp"],"title":"Type","default":"otp"}},"type":"object","required":["email"],"title":"Body_forgot_password_route_v2_user_forgot_password_post"},"Body_parse_uploaded_file_route_v2_customers_get_mapped_data_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_parse_uploaded_file_route_v2_customers_get_mapped_data_post"},"Body_reset_password_route_v2_simplyrets_user_user_reset_password_post":{"properties":{"code":{"type":"string","title":"Code"},"hash_value":{"type":"string","title":"Hash Value"}},"type":"object","required":["code","hash_value"],"title":"Body_reset_password_route_v2_simplyrets_user_user_reset_password_post"},"Body_reset_password_route_v2_user_reset_password_post":{"properties":{"code":{"type":"string","title":"Code"},"hash_value":{"type":"string","title":"Hash Value"}},"type":"object","required":["code","hash_value"],"title":"Body_reset_password_route_v2_user_reset_password_post"},"Body_update_all_knowledge_base_route_v2_knowledge_base_update_all__kb_id__put":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files","default":[]}},"type":"object","title":"Body_update_all_knowledge_base_route_v2_knowledge_base_update_all__kb_id__put"},"Body_upload_files_route_v2_get_file_url_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"Body_upload_files_route_v2_get_file_url_post"},"BookingTiming":{"properties":{"monday":{"anyOf":[{"$ref":"#/components/schemas/DayTiming"},{"type":"null"}],"description":"Monday booking timing"},"tuesday":{"anyOf":[{"$ref":"#/components/schemas/DayTiming"},{"type":"null"}],"description":"Tuesday booking timing"},"wednesday":{"anyOf":[{"$ref":"#/components/schemas/DayTiming"},{"type":"null"}],"description":"Wednesday booking timing"},"thursday":{"anyOf":[{"$ref":"#/components/schemas/DayTiming"},{"type":"null"}],"description":"Thursday booking timing"},"friday":{"anyOf":[{"$ref":"#/components/schemas/DayTiming"},{"type":"null"}],"description":"Friday booking timing"},"saturday":{"anyOf":[{"$ref":"#/components/schemas/DayTiming"},{"type":"null"}],"description":"Saturday booking timing"},"sunday":{"anyOf":[{"$ref":"#/components/schemas/DayTiming"},{"type":"null"}],"description":"Sunday booking timing"}},"type":"object","title":"BookingTiming","description":"Booking timing structure"},"BpStatusEnum":{"type":"string","enum":["USER","COMPANY","OTHER"],"title":"BpStatusEnum"},"BulkCustomerMappingRequest":{"properties":{"customer_upload_id":{"type":"string","format":"uuid","title":"Customer Upload Id","description":"ID of the uploaded customer file"},"mapping_info":{"items":{"$ref":"#/components/schemas/MappingInfo"},"type":"array","title":"Mapping Info","description":"Mapping information between CSV and database fields"},"custom_fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/app__schemas__customers__CustomField"},"type":"array"},{"type":"null"}],"title":"Custom Fields","description":"Custom fields configuration","default":[]},"cleaning_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cleaning Prompt","description":"Data cleaning instructions in natural language"},"validations_prompt":{"anyOf":[{"items":{"$ref":"#/components/schemas/ValidationInfo"},"type":"array"},{"type":"null"}],"title":"Validations Prompt","description":"Data validation instructions in natural language","default":[]}},"type":"object","required":["customer_upload_id","mapping_info"],"title":"BulkCustomerMappingRequest"},"BulkDeleteAssistants":{"properties":{"assistant_ids":{"items":{"type":"integer"},"type":"array","maxItems":1000,"minItems":1,"title":"Assistant Ids","description":"List of assistant IDs to delete"}},"type":"object","required":["assistant_ids"],"title":"BulkDeleteAssistants"},"BulkDeleteKnowledgeBases":{"properties":{"kb_ids":{"items":{"type":"string"},"type":"array","maxItems":1000,"minItems":1,"title":"Kb Ids","description":"List of knowledge base IDs to delete"}},"type":"object","required":["kb_ids"],"title":"BulkDeleteKnowledgeBases"},"CalcomIntegrationKey":{"properties":{"client_id":{"type":"string","title":"Client Id","description":"Calcom client ID"},"secret_key":{"type":"string","title":"Secret Key","description":"Calcom client secret key"}},"type":"object","required":["client_id","secret_key"],"title":"CalcomIntegrationKey","description":"Calcom integration key structure"},"CalendarWebhookData":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Webhook URL"},"type":{"type":"string","enum":["google","outlook"],"title":"Type","description":"Webhook URL","default":"google"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method","description":"HTTP method","default":"POST"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers","description":"Request headers","default":{}},"static_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Static Body","description":"Static body"},"body":{"anyOf":[{"type":"object"},{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Body","description":"Request body"},"parameters":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Parameters","description":"Parameters for data extraction","default":{}},"required":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required","description":"Required parameters","default":[]},"response_message_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Message Context","description":"Response message context"},"user_id":{"type":"string","title":"User Id","description":"User ID"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"User email"},"followup_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followup Type","description":"Follow-up type"},"call_back_delay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Back Delay","description":"Callback delay in minutes","default":30},"assistant_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id","description":"Assistant ID for follow-up"},"booking_timings":{"anyOf":[{"$ref":"#/components/schemas/BookingTiming"},{"type":"null"}],"description":"Available booking time slots"},"reminder_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reminder Message","description":"Reminder message"},"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number","description":"From number"},"send_slot_only_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Send Slot Only Mode","description":"Send slot only mode","default":false},"telecom_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telecom Provider","description":"Telecom provider"},"buffer_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Buffer Time","description":"Buffer time in minutes"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","description":"Timezone"}},"additionalProperties":true,"type":"object","required":["user_id"],"title":"CalendarWebhookData","description":"Calendar webhook data structure extending base webhook"},"CallHours":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/CallingStatus"},{"type":"null"}],"description":"Call hours status (ENABLED/DISABLED)"},"timezone_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone Id","description":"Timezone ID (e.g., 'America/Manaus')"},"weekly_operating_hours":{"anyOf":[{"items":{"$ref":"#/components/schemas/WeeklyOperatingHours"},"type":"array"},{"type":"null"}],"title":"Weekly Operating Hours","description":"Weekly operating hours configuration"},"holiday_schedule":{"anyOf":[{"items":{"$ref":"#/components/schemas/HolidaySchedule"},"type":"array"},{"type":"null"}],"title":"Holiday Schedule","description":"Holiday schedule configuration"}},"type":"object","title":"CallHours","description":"Call hours configuration with timezone and schedules"},"CallIconVisibility":{"type":"string","enum":["DEFAULT","DISABLE_ALL"],"title":"CallIconVisibility"},"CallIcons":{"properties":{"restrict_to_user_countries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Restrict To User Countries","description":"List of country codes to restrict call icons to"}},"type":"object","title":"CallIcons","description":"Call icons configuration"},"CallTiming":{"type":"string","enum":["before","during","after"],"title":"CallTiming"},"CallTransferData":{"properties":{"extensions":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Extensions","description":"Extension number configurations"}},"type":"object","title":"CallTransferData","description":"Call transfer data structure"},"CallingConfig":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/CallingStatus"},{"type":"null"}],"description":"Calling status (ENABLED/DISABLED)"},"call_icon_visibility":{"anyOf":[{"$ref":"#/components/schemas/CallIconVisibility"},{"type":"null"}],"description":"Call icon visibility (DEFAULT/HIDDEN)"},"call_icons":{"anyOf":[{"$ref":"#/components/schemas/CallIcons"},{"type":"null"}],"description":"Call icons configuration"},"call_hours":{"anyOf":[{"$ref":"#/components/schemas/CallHours"},{"type":"null"}],"description":"Call hours configuration"},"callback_permission_status":{"anyOf":[{"$ref":"#/components/schemas/CallingStatus"},{"type":"null"}],"description":"Callback permission status (ENABLED/DISABLED)"},"sip":{"anyOf":[{"$ref":"#/components/schemas/SipConfig"},{"type":"null"}],"description":"SIP configuration"}},"type":"object","title":"CallingConfig","description":"Calling configuration object for Meta API"},"CallingStatus":{"type":"string","enum":["ENABLED","DISABLED"],"title":"CallingStatus"},"Campaign":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":56,"minLength":1},{"type":"null"}],"title":"Name","description":"Campaign name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Campaign type"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Campaign status"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Whether the campaign is active"},"notes":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Notes","description":"Additional notes"},"business_goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Goal","description":"Business goal of the campaign"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry","description":"Industry type"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment","description":"Additional comments"},"target_audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Audience","description":"Target audience description"},"module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module","description":"Module type"},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id","description":"Reference ID"}},"type":"object","title":"Campaign","description":"Schema for creating and updating campaigns"},"CampaignLimits":{"properties":{"total_sms":{"type":"integer","title":"Total Sms","description":"Total SMS limit"},"total_emails":{"type":"integer","title":"Total Emails","description":"Total emails limit"},"total_calls":{"type":"integer","title":"Total Calls","description":"Total calls limit"}},"type":"object","required":["total_sms","total_emails","total_calls"],"title":"CampaignLimits"},"CampaignRequestExternal":{"properties":{"start_at":{"type":"string","title":"Start At","description":"Start time of the campaign in ISO format"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"source":{"anyOf":[{"type":"string","enum":["internal","bigin","gohighlevel","Salesforce","salesforce","zendesk","zoho"]},{"type":"null"}],"title":"Source","description":"Source system (e.g., salesforce)"},"touch_point_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Touch Point Id"},"sms_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Body"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"email_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Body"},"email_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Subject"},"contacts":{"items":{"$ref":"#/components/schemas/Contact"},"type":"array","title":"Contacts","description":"List of contacts"},"campaign_type":{"type":"string","enum":["CALL","SMS","EMAIL","WHATSAPP"],"title":"Campaign Type","description":"Type of campaign (CALL, SMS, EMAIL)"},"campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Name"},"is_consultants":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Consultants","default":false},"assistant_id":{"type":"integer","title":"Assistant Id","description":"Assistant ID"},"additional_settings":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__campaign__AdditionalSettings"},{"type":"null"}]},"whatsapp_data":{"anyOf":[{"$ref":"#/components/schemas/WhatsappData"},{"type":"null"}]},"touchpoint_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Touchpoint Name"},"whatsapp_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp Body","description":"Whatsapp body"},"attachment_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Url","description":"Attachment URL"}},"type":"object","required":["start_at","source","contacts","campaign_type","assistant_id"],"title":"CampaignRequestExternal"},"CampaignSettings":{"properties":{"maximum_allowed":{"$ref":"#/components/schemas/CampaignLimits","description":"Maximum allowed limits"},"suppression_thresholds":{"$ref":"#/components/schemas/SuppressionThresholds","description":"Suppression thresholds"}},"type":"object","required":["maximum_allowed","suppression_thresholds"],"title":"CampaignSettings"},"CampaignWithTouchPoint":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":56,"minLength":1},{"type":"null"}],"title":"Name","description":"Campaign name"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Campaign type"},"company_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Plan Id","description":"Company plan ID"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id","description":"Workspace ID"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Campaign status"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Whether the campaign is active"},"notes":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Notes","description":"Additional notes"},"touchpoint":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Touchpoint","description":"Touchpoint"},"business_goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Goal","description":"Business goal of the campaign"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry","description":"Industry type"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment","description":"Additional comments"},"target_audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Audience","description":"Target audience description"},"module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module","description":"Module type"},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id","description":"Reference ID"},"touchpoint_name":{"anyOf":[{"type":"string","maxLength":56,"minLength":1},{"type":"null"}],"title":"Touchpoint Name","description":"Touchpoint name"},"touchpoint_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Touchpoint Type","description":"Touchpoint type"},"email_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Subject","description":"Email subject for email touchpoints"},"email_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Body","description":"Email body for email touchpoints"},"assistant_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id","description":"Assistant ID associated with touchpoint"},"sms_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Body","description":"SMS body for SMS touchpoints"},"touchpoint_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Touchpoint Status","description":"Touchpoint status"},"touchpoint_is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Touchpoint Is Active","description":"Whether the touchpoint is active"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start At","description":"Start time for the touchpoint"},"touchpoint_notes":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Touchpoint Notes","description":"Touchpoint notes"},"additional_settings":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Additional Settings","description":"Additional settings"},"touchpoint_reference_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Touchpoint Reference Id","description":"Touchpoint reference ID"}},"type":"object","title":"CampaignWithTouchPoint","description":"Schema for creating a campaign with touchpoint"},"CartesiaIntegrationKey":{"properties":{"api_key":{"type":"string","title":"Api Key","description":"Cartesia API key"}},"type":"object","required":["api_key"],"title":"CartesiaIntegrationKey","description":"Cartesia integration key structure"},"Company":{"properties":{"name":{"type":"string","title":"Name","description":"Company name"}},"type":"object","required":["name"],"title":"Company"},"Contact":{"properties":{"phone":{"anyOf":[{"type":"string","maxLength":15,"minLength":10},{"type":"null"}],"title":"Phone","description":"Phone number of the contact"},"name":{"type":"string","title":"Name","description":"Full name of the contact"},"id":{"type":"string","title":"Id","description":"Salesforce contact ID"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email","description":"Email of the contact"},"time_zone":{"anyOf":[{"type":"string","enum":["CST","PST","UTC","EST","MST","GMT","IST","AKST"]},{"type":"null"}],"title":"Time Zone","description":"Time zone for execution (e.g., CST, PST, UTC)"}},"additionalProperties":true,"type":"object","required":["name","id"],"title":"Contact"},"ConversationId":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id"}},"type":"object","required":["conversation_id"],"title":"ConversationId"},"CreateCompanyPlanRequest":{"properties":{"company_id":{"type":"string","title":"Company Id","description":"Target company ID"},"plan_type":{"type":"string","title":"Plan Type","description":"monthly or annual"},"minutes":{"type":"integer","minimum":0.0,"title":"Minutes","description":"Monthly call minutes allowance"},"tokens":{"type":"integer","minimum":0.0,"title":"Tokens","description":"Token allowance"},"sms":{"type":"integer","minimum":0.0,"title":"Sms","description":"Monthly SMS allowance"}},"type":"object","required":["company_id","plan_type","minutes","tokens","sms"],"title":"CreateCompanyPlanRequest"},"CreateCustomViewRequest":{"properties":{"module":{"type":"string","title":"Module","description":"Module name (e.g., customers, campaigns)"},"filter_json":{"additionalProperties":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},"type":"object","title":"Filter Json","description":"Filter criteria for the view","default":{},"example":{"criteria":[{"field":"email","operator":"contains","value":"example.com"}]}},"fields_json":{"additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"type":"object","title":"Fields Json","description":"Dictionary of fields to show in view","default":{},"example":{"custom_view_name":"My View","email":true,"name":true,"phone":false}},"sorting_json":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Sorting Json","description":"Sorting configuration for the view","default":{},"example":{"field":"created_at","order":"desc"}},"is_default":{"type":"boolean","title":"Is Default","description":"Whether this view is set as default","default":false},"favorites":{"items":{"type":"string"},"type":"array","title":"Favorites","description":"List of favorite items in this view","default":[]},"is_public":{"type":"boolean","title":"Is Public","description":"Whether this view is public or private","default":false}},"type":"object","required":["module"],"title":"CreateCustomViewRequest"},"Customer":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Customer name"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"Customer first name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"Customer last name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email","description":"Customer email address"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name","description":"Customer company name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Customer address"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Customer phone number"},"customer_timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Timezone","description":"Customer timezone"},"working_hours":{"anyOf":[{"$ref":"#/components/schemas/WorkingHours"},{"type":"object"},{"type":"null"}],"title":"Working Hours","description":"Working hours configuration"},"spam_reports":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Spam Reports","description":"Spam reports"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"Customer website"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City"},"zipcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zipcode","description":"Zip code"},"customer_type":{"anyOf":[{"$ref":"#/components/schemas/CustomerTypeEnum"},{"type":"string"},{"type":"null"}],"title":"Customer Type","description":"Customer type"},"subType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtype","description":"Customer sub-type"},"status":{"anyOf":[{"$ref":"#/components/schemas/CustomerStatusEnum"},{"type":"string"},{"type":"null"}],"title":"Status","description":"Customer status"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Active status"},"subStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Substatus","description":"Sub-status"},"leadSource":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Leadsource","description":"Lead source"},"leadStatus":{"anyOf":[{"$ref":"#/components/schemas/LeadStatusEnum"},{"type":"string"},{"type":"null"}],"title":"Leadstatus","description":"Lead status"},"pipelineStatus":{"anyOf":[{"$ref":"#/components/schemas/PipelineStatusEnum"},{"type":"string"},{"type":"null"}],"title":"Pipelinestatus","description":"Pipeline status"},"pipelineSubStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipelinesubstatus","description":"Pipeline sub-status"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Customer title"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context","description":"Customer context"},"bpStatus":{"anyOf":[{"$ref":"#/components/schemas/BpStatusEnum"},{"type":"string"},{"type":"null"}],"title":"Bpstatus","description":"BP status"},"parent_company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Company Id","description":"Parent company ID"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id","description":"Workspace ID"},"primaryAssignment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primaryassignment","description":"Primary assignment"},"secondaryAssignment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secondaryassignment","description":"Secondary assignment"},"subscriptionStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscriptionstatus","description":"Subscription status"},"customFieldDropDown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customfielddropdown","description":"Custom field dropdown"},"customFieldPrice":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Customfieldprice","description":"Custom field price"},"customFieldDates":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Customfielddates","description":"Custom field dates"},"nextFollowUpDate":{"anyOf":[{"type":"string","format":"date-time"},{"type":"string"},{"type":"null"}],"title":"Nextfollowupdate","description":"Next follow-up date"},"customFields":{"anyOf":[{"items":{"$ref":"#/components/schemas/app__schemas__customer__CustomField"},"type":"array"},{"type":"object"},{"type":"null"}],"title":"Customfields","description":"Custom fields"},"notes":{"anyOf":[{"items":{},"type":"array"},{"type":"object"},{"type":"null"}],"title":"Notes","description":"Customer notes"},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id","description":"Reference ID"}},"type":"object","title":"Customer","description":"Schema for creating and updating customers"},"CustomerBulkDeleteData":{"properties":{"customer_ids":{"items":{"type":"string"},"type":"array","maxItems":1000,"minItems":1,"title":"Customer Ids"}},"type":"object","required":["customer_ids"],"title":"CustomerBulkDeleteData"},"CustomerCustomFields":{"properties":{"name":{"type":"string","title":"Name","description":"Name"},"value":{"type":"string","title":"Value","description":"Value"}},"type":"object","required":["name","value"],"title":"CustomerCustomFields"},"CustomerStatusEnum":{"type":"string","enum":["USER","COMPANY","OTHER"],"title":"CustomerStatusEnum"},"CustomerTypeEnum":{"type":"string","enum":["USER","COMPANY","B2B_CUSTOMER","B2C_CUSTOMER","OTHER"],"title":"CustomerTypeEnum"},"CustomerUpdatedData":{"properties":{"customer_ids":{"items":{"type":"string"},"type":"array","maxItems":1000,"minItems":1,"title":"Customer Ids"},"updated_fields":{"type":"object","title":"Updated Fields"}},"type":"object","required":["customer_ids","updated_fields"],"title":"CustomerUpdatedData"},"DayOfWeek":{"type":"string","enum":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"],"title":"DayOfWeek"},"DayTiming":{"properties":{"start_time":{"type":"string","pattern":"^([01]?[0-9]|2[0-3]):[0-5][0-9]$","title":"Start Time","description":"Start time in 24-hour format (HH:MM)"},"end_time":{"type":"string","pattern":"^([01]?[0-9]|2[0-3]):[0-5][0-9]$","title":"End Time","description":"End time in 24-hour format (HH:MM)"}},"type":"object","required":["start_time","end_time"],"title":"DayTiming","description":"Day timing structure"},"DeepgramIntegrationKey":{"properties":{"type":{"type":"string","title":"Type","description":"Deepgram type"},"api_key":{"type":"string","title":"Api Key","description":"Deepgram API key"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"Deepgram user ID"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model"}},"type":"object","required":["type","api_key"],"title":"DeepgramIntegrationKey","description":"Deepgram integration key structure"},"ElevenLabsIntegrationKey":{"properties":{"api_key":{"type":"string","title":"Api Key","description":"ElevenLabs API key"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"ElevenLabs user ID"}},"type":"object","required":["api_key"],"title":"ElevenLabsIntegrationKey","description":"ElevenLabs integration key structure"},"EmailAssistantLabels":{"properties":{"email":{"type":"string","title":"Email","description":"Email of the End User"},"type":{"type":"string","enum":["create","get","delete"],"title":"Type","description":"Type of the email"},"labels":{"anyOf":[{"items":{"$ref":"#/components/schemas/Labels"},"type":"array"},{"type":"null"}],"title":"Labels","description":"Labels"}},"type":"object","required":["email","type"],"title":"EmailAssistantLabels"},"EmailData":{"properties":{"to":{"anyOf":[{"$ref":"#/components/schemas/EmailField"},{"type":"object"}],"title":"To","description":"Recipient email addresses"},"from":{"type":"string","title":"From","description":"Sender email"},"from_type":{"type":"string","title":"From Type","description":"Sender type"},"user_id":{"type":"string","title":"User Id","description":"User ID"},"subject":{"anyOf":[{"$ref":"#/components/schemas/EmailField"},{"type":"object"}],"title":"Subject","description":"Email subject"},"body":{"anyOf":[{"$ref":"#/components/schemas/EmailField"},{"type":"object"}],"title":"Body","description":"Email body"},"cc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cc","description":"CC recipients, as comma-separated string"},"bcc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bcc","description":"BCC recipients, as comma-separated string"},"attachment":{"anyOf":[{"$ref":"#/components/schemas/EmailField"},{"type":"object"},{"type":"null"}],"title":"Attachment","description":"Attachments as list of URLs or metadata, wrapped in `value`"},"send_static_contect":{"type":"boolean","title":"Send Static Contect","description":"If true, send static content","default":false},"response_message_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Message Context","description":"Response message context"}},"type":"object","required":["to","from","from_type","user_id","subject","body"],"title":"EmailData","description":"Email action data structure"},"EmailField":{"properties":{"value":{"title":"Value","description":"Field value"}},"type":"object","required":["value"],"title":"EmailField","description":"Email field structure with value"},"Emotion":{"properties":{"anger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anger","description":"Anger"},"fear":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fear","description":"Fear"},"joy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Joy","description":"Joy"},"sadness":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sadness","description":"Sadness"},"surprise":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Surprise","description":"Surprise"}},"type":"object","title":"Emotion"},"EvaluateSMS":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"EvaluateSMS"},"EvaluateSMS_Rendered":{"properties":{"message":{"type":"string","title":"Message"},"to":{"type":"string","title":"To"}},"type":"object","required":["message","to"],"title":"EvaluateSMS_Rendered"},"GeneralInfo":{"properties":{"company_info":{"type":"string","title":"Company Info","description":"Company info"},"target_audience":{"type":"string","title":"Target Audience","description":"Target audience"},"objective_list":{"items":{"type":"string"},"type":"array","title":"Objective List","description":"Call objective list"},"objection_handling_strategies":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objection Handling Strategies","description":"Objection handling strategies"}},"type":"object","required":["company_info","target_audience","objective_list"],"title":"GeneralInfo"},"GenericIntegrationKey":{"properties":{"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key","description":"API key"},"sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sid","description":"SID"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token","description":"Token"},"account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Id","description":"Account ID"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"Client ID"},"secret_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret Key","description":"Client Secret"},"additional_fields":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Additional Fields","description":"Additional integration key fields"}},"type":"object","title":"GenericIntegrationKey","description":"Generic integration key structure for other API types"},"GoogleVoiceIntegrationKey":{"properties":{"type":{"type":"string","title":"Type","description":"Voice type"},"voice_name":{"type":"string","title":"Voice Name","description":"Voice name"},"language_code":{"type":"string","title":"Language Code","description":"Language code"},"language":{"type":"string","title":"Language","description":"Language"},"model":{"type":"string","title":"Model","description":"Voice model"}},"type":"object","required":["type","voice_name","language_code","language","model"],"title":"GoogleVoiceIntegrationKey","description":"Google Voice integration key structure"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HolidaySchedule":{"properties":{"date":{"type":"string","title":"Date","description":"Date in YYYY-MM-DD format"},"start_time":{"type":"string","title":"Start Time","description":"Start time in HHMM format"},"end_time":{"type":"string","title":"End Time","description":"End time in HHMM format"}},"type":"object","required":["date","start_time","end_time"],"title":"HolidaySchedule","description":"Holiday schedule with specific date and operating hours"},"JobRobotixIntegrationKey":{"properties":{"api_key":{"type":"string","title":"Api Key","description":"JobRobotix API key"},"company_id":{"type":"string","title":"Company Id","description":"JobRobotix company ID"}},"type":"object","required":["api_key","company_id"],"title":"JobRobotixIntegrationKey","description":"JobRobotix integration key structure"},"Labels":{"properties":{"name":{"type":"string","title":"Name","description":"Label name"},"text_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Color","description":"Text color"},"background_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Background Color","description":"Background color"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Label id"}},"type":"object","required":["name"],"title":"Labels"},"LaborEdgeIntegrationKey":{"properties":{"api_key":{"type":"string","title":"Api Key","description":"LaborEdge API key"},"username":{"type":"string","title":"Username","description":"LaborEdge username"},"organization_code":{"type":"string","title":"Organization Code","description":"LaborEdge organization code"},"domain_url":{"type":"string","title":"Domain Url","description":"LaborEdge domain URL"},"authorization":{"type":"string","title":"Authorization","description":"LaborEdge authorization"},"content_type":{"type":"string","title":"Content Type","description":"LaborEdge content type"}},"type":"object","required":["api_key","username","organization_code","domain_url","authorization","content_type"],"title":"LaborEdgeIntegrationKey","description":"LaborEdge integration key structure"},"LeadStatusEnum":{"type":"string","enum":["USER","COMPANY","OTHER"],"title":"LeadStatusEnum"},"MappingInfo":{"properties":{"csv_field":{"type":"string","title":"Csv Field","description":"Field name in the CSV file"},"customer_table_field":{"type":"string","title":"Customer Table Field","description":"Corresponding field in the customer table"},"additional_csv_fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Additional Csv Fields","description":"Additional CSV fields to combine"}},"type":"object","required":["csv_field","customer_table_field"],"title":"MappingInfo"},"PipelineStatusEnum":{"type":"string","enum":["USER","COMPANY","OTHER"],"title":"PipelineStatusEnum"},"PlayHTIntegrationKey":{"properties":{"api_key":{"type":"string","title":"Api Key","description":"PlayHT API key"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"PlayHT user ID"}},"type":"object","required":["api_key"],"title":"PlayHTIntegrationKey","description":"PlayHT integration key structure"},"PollyIntegrationKey":{"properties":{"voice_id":{"type":"string","title":"Voice Id","description":"Polly voice ID"}},"type":"object","required":["voice_id"],"title":"PollyIntegrationKey","description":"Polly integration key structure"},"ProfileUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Full name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Phone number"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"Website URL"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Address"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State"},"zip_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Code","description":"ZIP code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","description":"Timezone"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name","description":"Company name (flat field)"},"organisation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organisation","description":"Organisation"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry","description":"Industry"},"fed_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fed Id","description":"Federal ID"},"where_did_you_hear_about_us":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Where Did You Hear About Us","description":"Where did you hear about us"},"profile_updated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Profile Updated","description":"Profile updated flag"},"profile_update_remainder":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Profile Update Remainder","description":"Profile update remainder"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Type"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"Role"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department","description":"Department"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"Notes"},"livestatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Livestatus","description":"Live status"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Status"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"Profile image URL"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","description":"Currency"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language","description":"Language"},"firstName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firstname","description":"First name"},"lastName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastname","description":"Last name"},"company":{"anyOf":[{"$ref":"#/components/schemas/Company"},{"type":"null"}],"description":"Company information"},"settings":{"anyOf":[{"$ref":"#/components/schemas/Settings"},{"type":"null"}],"description":"User settings"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id","description":"Project ID"},"platform_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Id","description":"Platform ID"}},"type":"object","title":"ProfileUpdate","example":{"address":"","company":{"name":"aniiii"},"company_name":"aniiii","country":"US","department":"","fed_id":"","firstName":"","image_url":"data:image/png;base64,...","industry":"HEALTHCARE","language":"en","lastName":"","livestatus":"","name":"Aniket Baghel","notes":"","organisation":"","phone":"14548765435","profile_update_remainder":0,"profile_updated":true,"role":"","state":"","status":"","type":"","website":"","where_did_you_hear_about_us":"Facebook","zip_code":""}},"Prompt":{"properties":{"agent":{"type":"string","title":"Agent","description":"Agent"},"goal":{"type":"string","title":"Goal","description":"Goal"}},"type":"object","required":["agent","goal"],"title":"Prompt"},"Prosody":{"properties":{"rate":{"anyOf":[{"type":"string","enum":["x-slow","slow","medium","fast","x-fast"]},{"type":"number"},{"type":"null"}],"title":"Rate","description":"Rate"},"volume":{"anyOf":[{"type":"string","enum":["silent","x-soft","soft","medium","loud","x-loud"]},{"type":"number"},{"type":"null"}],"title":"Volume","description":"Volume"},"pitch":{"anyOf":[{"type":"string","enum":["x-low","low","medium","high","x-high"]},{"type":"number"},{"type":"null"}],"title":"Pitch","description":"Pitch"}},"type":"object","required":["rate","volume","pitch"],"title":"Prosody"},"PurchaseAddOns":{"properties":{"add_on_id":{"type":"string","title":"Add On Id","description":"Add on id"},"payment_method_id":{"type":"string","title":"Payment Method Id","description":"Payment method id"}},"type":"object","required":["add_on_id","payment_method_id"],"title":"PurchaseAddOns"},"Reminder":{"properties":{"allowed_idle_time_seconds":{"type":"integer","title":"Allowed Idle Time Seconds","description":"Allowed idle time seconds"},"num_check_human_present_times":{"type":"integer","title":"Num Check Human Present Times","description":"Number of times to check if human is present"},"reminder_messages":{"items":{"type":"string"},"type":"array","title":"Reminder Messages","description":"Reminder message"},"message_before_termination":{"type":"string","title":"Message Before Termination","description":"Message before termination"}},"type":"object","required":["allowed_idle_time_seconds","num_check_human_present_times","reminder_messages","message_before_termination"],"title":"Reminder"},"SMSData":{"properties":{"to":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/SMSField"}],"title":"To","description":"Recipient phone number"},"from":{"type":"string","title":"From","description":"Sender phone number"},"body":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/SMSField"}],"title":"Body","description":"SMS message body"},"cc":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Cc","description":"CC recipients","default":[]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"SMS provider (e.g., TELNYX, TWILIO)"},"response_message_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Message Context","description":"Response message context"}},"type":"object","required":["to","from","body"],"title":"SMSData","description":"SMS action data structure"},"SMSField":{"properties":{"value":{"title":"Value","description":"Field value"}},"type":"object","required":["value"],"title":"SMSField","description":"SMS field structure with value"},"SMTPIntegrationKey":{"properties":{"smtp_server":{"type":"string","title":"Smtp Server","description":"SMTP server address"},"smtp_port":{"anyOf":[{"type":"integer"},{"type":"string"}],"title":"Smtp Port","description":"SMTP port number"},"smtp_username":{"type":"string","title":"Smtp Username","description":"SMTP username/email"},"smtp_password":{"type":"string","title":"Smtp Password","description":"SMTP password/app password"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key","description":"SMTP API key (often same as username)"}},"type":"object","required":["smtp_server","smtp_port","smtp_username","smtp_password"],"title":"SMTPIntegrationKey","description":"SMTP integration key structure"},"SendEmailRequest":{"properties":{"to_email":{"type":"string","maxLength":30,"minLength":5,"title":"To Email","description":"Recipient's email address"},"assistant_id":{"type":"integer","title":"Assistant Id","description":"Assistant ID"},"from_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Email","description":"Sender's email address"},"subject":{"type":"string","maxLength":500,"minLength":1,"title":"Subject","description":"Email subject"},"body":{"type":"string","maxLength":500,"minLength":1,"title":"Body","description":"Email body"},"salesforce_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salesforce User Id","description":"Salesforce user ID"}},"type":"object","required":["to_email","assistant_id","subject","body"],"title":"SendEmailRequest"},"SendGridIntegrationKey":{"properties":{"api_key":{"type":"string","title":"Api Key","description":"SendGrid API key"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id","description":"SendGrid user ID"}},"type":"object","required":["api_key"],"title":"SendGridIntegrationKey","description":"SendGrid integration key structure"},"Settings":{"properties":{"campaign_limits":{"$ref":"#/components/schemas/CampaignSettings","description":"Campaign limits settings"},"trial_limit_billing_enabled":{"type":"boolean","title":"Trial Limit Billing Enabled","description":"Trial limit billing enabled flag"},"fallback_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback Number","description":"Fallback number"},"customer_custom_fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomerCustomFields"},"type":"array"},{"type":"null"}],"title":"Customer Custom Fields","description":"Customer custom fields"},"email_settings":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Email Settings","description":"Email settings payload"}},"type":"object","required":["campaign_limits","trial_limit_billing_enabled"],"title":"Settings"},"SingleSMSList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SingleSMSPayload"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"SingleSMSList"},"SingleSMSPayload":{"properties":{"assistant_id":{"type":"string","title":"Assistant Id","example":"asg-123"},"to_number":{"type":"string","maxLength":20,"minLength":10,"title":"To Number","examples":["+15558675310"],"strip_whitespace":true},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"assigned_to_user":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Assigned To User"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["assistant_id","to_number"],"title":"SingleSMSPayload"},"SipConfig":{"properties":{"status":{"$ref":"#/components/schemas/CallingStatus","description":"SIP status (ENABLED/DISABLED)","default":"DISABLED"},"servers":{"anyOf":[{"items":{"$ref":"#/components/schemas/SipServer"},"type":"array"},{"type":"null"}],"title":"Servers","description":"List of SIP servers"}},"type":"object","title":"SipConfig","description":"SIP configuration for call settings"},"SipServer":{"properties":{"hostname":{"type":"string","title":"Hostname","description":"SIP server hostname"},"port":{"type":"integer","title":"Port","description":"SIP server port"},"request_uri_user_params":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Request Uri User Params","description":"Additional URI user parameters"}},"type":"object","required":["hostname","port"],"title":"SipServer","description":"SIP server configuration"},"Style":{"properties":{"style":{"type":"string","enum":["whisper","normal","excited","sad","angry","fearful","disappointed","surprised","neutral","happy"],"title":"Style","description":"Style"},"intensity":{"type":"number","maximum":2.0,"minimum":0.1,"title":"Intensity","description":"Intensity"}},"type":"object","required":["style","intensity"],"title":"Style"},"SuppressionThresholds":{"properties":{"call_cooldown_days":{"type":"integer","title":"Call Cooldown Days","description":"Call cooldown period in days"},"email_cooldown_days":{"type":"integer","title":"Email Cooldown Days","description":"Email cooldown period in days"},"sms_cooldown_days":{"type":"integer","title":"Sms Cooldown Days","description":"SMS cooldown period in days"},"whatsapp_cooldown_days":{"type":"integer","title":"Whatsapp Cooldown Days","description":"WhatsApp cooldown period in days"}},"type":"object","required":["call_cooldown_days","email_cooldown_days","sms_cooldown_days","whatsapp_cooldown_days"],"title":"SuppressionThresholds"},"SyncContactAndTicket":{"properties":{"sync_type":{"type":"string","enum":["contact","ticket"],"title":"Sync Type","description":"Type of sync (contact or ticket)"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email","description":"Email of the contact"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Phone number of the contact"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"First name of the contact"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"Last name of the contact"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company","description":"Company of the contact"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"Subject of the ticket"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the ticket"}},"type":"object","required":["sync_type"],"title":"SyncContactAndTicket"},"TouchPoint":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":56,"minLength":1},{"type":"null"}],"title":"Name","description":"Touchpoint name"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id","description":"Campaign ID this touchpoint belongs to"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Touchpoint type (EMAIL, CALL, SMS, WHATSAPP)"},"email_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Subject","description":"Email subject for email touchpoints"},"email_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Body","description":"Email body for email touchpoints"},"assistant_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Assistant Id","description":"Assistant ID associated with this touchpoint"},"sms_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Body","description":"SMS body for SMS touchpoints"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Touchpoint status"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Whether the touchpoint is active"},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start At","description":"Start time for the touchpoint"},"notes":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Notes","description":"Additional notes"},"additional_settings":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Additional Settings","description":"Additional settings"},"reference_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reference Id","description":"Reference ID"}},"type":"object","title":"TouchPoint","description":"Schema for creating and updating touchpoints"},"TouchPointTypeEnum":{"type":"string","enum":["EMAIL","CALL","SMS","WHATSAPP"],"title":"TouchPointTypeEnum"},"TwilioIntegrationKey":{"properties":{"sid":{"type":"string","title":"Sid","description":"Twilio SID"},"token":{"type":"string","title":"Token","description":"Twilio Auth Token"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number","description":"Twilio phone number"}},"type":"object","required":["sid","token"],"title":"TwilioIntegrationKey","description":"Twilio integration key structure"},"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"},"ValidationInfo":{"properties":{"csv_field":{"type":"string","title":"Csv Field","description":"Field name in the CSV file"},"customer_table_field":{"type":"string","title":"Customer Table Field","description":"Corresponding field in the customer table"},"user_prompt":{"type":"string","title":"User Prompt","description":"User prompt for validation"}},"type":"object","required":["csv_field","customer_table_field","user_prompt"],"title":"ValidationInfo"},"VoiceCallRequest":{"properties":{"version":{"type":"string","enum":["v1","v2"],"title":"Version","description":"API version to use","default":"v1"},"to":{"type":"string","title":"To","description":"Recipient's phone number or identifier"},"agent_id":{"type":"integer","title":"Agent Id","description":"Agent/Assistant ID"},"source":{"type":"string","title":"Source","description":"Source of the call","default":"API"},"type":{"type":"string","enum":["outbound","inbound"],"title":"Type","description":"Call type","default":"outbound"},"context":{"anyOf":[{"type":"string"},{"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Context","description":"Call context or prompt"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Webhook URL for callbacks","default":"none"},"webhook_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Method","description":"Webhook method"},"variables":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Variables","description":"Custom variables"},"initial_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initial Message","description":"Override for agent's initial greeting message"},"call_type":{"type":"string","enum":["normal","whatsapp"],"title":"Call Type","description":"Call type (v1 only)","default":"normal"},"telecom_provider":{"type":"string","enum":["twilio","whatsapp"],"title":"Telecom Provider","description":"Telecom provider (supports both v1 and v2)","default":"twilio"},"override_twilio_account_sid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Twilio Account Sid","description":"Override Twilio Account SID (v1 only)"},"override_twilio_auth_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Twilio Auth Token","description":"Override Twilio Auth Token (v1 only)"},"override_from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override From Number","description":"Override from number"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","description":"Timezone"},"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number","description":"From number (v2 only)"},"custom_variables":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Custom Variables","description":"Custom variables (v2 format)"},"touch_point_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Touch Point Id","description":"Touch point ID for campaign tracking"},"campaign_outreach_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Outreach Id","description":"Campaign outreach ID"},"customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id","description":"Customer ID"},"include_previous_conversation_summary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Previous Conversation Summary","description":"Include previous conversation summary"},"include_previous_conversation_messages":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Previous Conversation Messages","description":"Include previous conversation messages"}},"type":"object","required":["to","agent_id"],"title":"VoiceCallRequest","description":"Unified voice call request schema supporting both v1 and v2 implementations.\n\nV1: Traditional voice calls via HTTP API\nV2: Modern voice calls via LiveKit SIP integration"},"VoiceInboundRequest":{"properties":{"from_number":{"type":"string","maxLength":20,"minLength":5,"title":"From Number","description":"Sender's phone number"},"to_number":{"type":"string","maxLength":20,"minLength":5,"title":"To Number","description":"Recipient's phone number"},"call_sid":{"type":"string","title":"Call Sid","description":"Call SID"},"call_id":{"type":"string","title":"Call Id","description":"Livekit call ID"}},"additionalProperties":true,"type":"object","required":["from_number","to_number","call_sid","call_id"],"title":"VoiceInboundRequest"},"VoiceOutboundRequest":{"properties":{"to_number":{"anyOf":[{"type":"string","maxLength":20,"minLength":5},{"type":"null"}],"title":"To Number","description":"Recipient's phone number"},"assistant_id":{"type":"integer","title":"Assistant Id","description":"Assistant ID"},"type":{"type":"string","enum":["VOICE_OUTGOING","VOICE_INCOMING","VOICE_WIDGET"],"title":"Type","description":"Type"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt","description":"Prompt"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url","description":"Webhook URL"},"custom_variables":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Custom Variables","description":"Custom variables"},"from_number":{"anyOf":[{"type":"string","maxLength":20,"minLength":5},{"type":"null"}],"title":"From Number","description":"Recipient's phone number"},"additional_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additional Context","description":"Additional context"},"initial_message_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initial Message Override","description":"Initial message override"}},"type":"object","required":["assistant_id","type"],"title":"VoiceOutboundRequest"},"WebhookData":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Webhook URL"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Webhook type"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method","description":"HTTP method","default":"POST"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers","description":"Request headers","default":{}},"static_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Static Body","description":"Static body"},"body":{"anyOf":[{"type":"object"},{"items":{"type":"object"},"type":"array"},{"type":"null"}],"title":"Body","description":"Request body"},"parameters":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Parameters","description":"Parameters for data extraction","default":{}},"required":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required","description":"Required parameters","default":[]},"response_message_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Message Context","description":"Response message context"}},"additionalProperties":true,"type":"object","title":"WebhookData","description":"Base webhook data structure"},"WeeklyOperatingHours":{"properties":{"day_of_week":{"$ref":"#/components/schemas/DayOfWeek","description":"Day of the week (MONDAY-SUNDAY)"},"open_time":{"type":"string","title":"Open Time","description":"Opening time in HHMM format (e.g., '0900')"},"close_time":{"type":"string","title":"Close Time","description":"Closing time in HHMM format (e.g., '1700')"}},"type":"object","required":["day_of_week","open_time","close_time"],"title":"WeeklyOperatingHours","description":"Operating hours for a specific day of the week"},"WhastsappParams":{"properties":{"is_static":{"type":"boolean","title":"Is Static","description":"Is static"},"params":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Params","description":"Params"}},"type":"object","required":["is_static"],"title":"WhastsappParams"},"WhatsappCallConfigUpdate":{"properties":{"phone_number_id":{"type":"string","title":"Phone Number Id","description":"Phone number ID to update settings for"},"calling":{"$ref":"#/components/schemas/CallingConfig","description":"Calling configuration object"}},"additionalProperties":true,"type":"object","required":["phone_number_id","calling"],"title":"WhatsappCallConfigUpdate","description":"Request model for updating WhatsApp call settings"},"WhatsappData":{"properties":{"template":{"type":"string","title":"Template","description":"Template name"},"language_code":{"type":"string","title":"Language Code","description":"Language code"},"header_params":{"anyOf":[{"$ref":"#/components/schemas/WhastsappParams"},{"type":"null"}],"description":"Header parameters"},"body_params":{"anyOf":[{"$ref":"#/components/schemas/WhastsappParams"},{"type":"null"}],"description":"Body parameters"},"button_params":{"anyOf":[{"$ref":"#/components/schemas/WhastsappParams"},{"type":"null"}],"description":"Button parameters"}},"type":"object","required":["template","language_code"],"title":"WhatsappData"},"WhatsappNormalMessage":{"properties":{"user_number":{"type":"string","title":"User Number","description":"User number to send message"},"message":{"type":"string","title":"Message","description":"Message to be sent"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url","description":"Media url to be sent"},"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number","description":"From number to be used"}},"additionalProperties":true,"type":"object","required":["user_number","message"],"title":"WhatsappNormalMessage"},"WhatsappTemplateRequest":{"properties":{"to":{"type":"string","title":"To","description":"Phone number of the contact"},"template_name":{"type":"string","title":"Template Name","description":"Template name"},"language":{"type":"string","title":"Language","description":"Language"},"header_params":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Header Params","description":"Header parameters"},"body_params":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Body Params","description":"Body parameters"},"button_params":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Button Params","description":"Button parameters"},"assistant_id":{"type":"integer","title":"Assistant Id","description":"Assistant id"}},"additionalProperties":true,"type":"object","required":["to","template_name","language","assistant_id"],"title":"WhatsappTemplateRequest"},"WorkingHours":{"properties":{"start":{"type":"string","title":"Start","description":"Start time (HH:MM format)"},"end":{"type":"string","title":"End","description":"End time (HH:MM format)"},"tz":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tz","description":"Timezone"}},"type":"object","required":["start","end"],"title":"WorkingHours","description":"Working hours structure"},"agent":{"properties":{"OpenAI":{"$ref":"#/components/schemas/openAi","description":"OpenAI"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model","default":"llama3-8b-8192"},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature","description":"Temperature","default":0.35},"initial_message":{"type":"string","title":"Initial Message","description":"Initial message"},"reminder":{"$ref":"#/components/schemas/Reminder","description":"Remainder"},"end_conversation_on_goodbye":{"type":"boolean","title":"End Conversation On Goodbye","description":"End conversation on goodbye"},"goodbye_phrases":{"items":{"type":"string"},"type":"array","title":"Goodbye Phrases","description":"Goodbye phrases"},"initial_message_delay":{"type":"number","title":"Initial Message Delay","description":"Initial message delay"},"interrupt_sensitivity":{"type":"string","enum":["low","normal","medium","high"],"title":"Interrupt Sensitivity","description":"Interrupt sensitivity"},"max_tokens":{"type":"integer","title":"Max Tokens","description":"Max Tokens","default":200},"max_call_duration":{"type":"integer","title":"Max Call Duration","description":"Max call duration seconds","default":600},"time_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Zone","description":"Time zone"}},"type":"object","required":["OpenAI","initial_message","reminder","end_conversation_on_goodbye","goodbye_phrases","initial_message_delay","interrupt_sensitivity"],"title":"agent"},"app__schemas__apikey__ApiKey":{"properties":{"type":{"anyOf":[{"type":"string","enum":["TWILIO","ELEVEN_LABS","PLAY_HT","CARTESIA","AZURE_VOICE","OTHER","SEND_GRID","DEEPGRAM","VONAGE","GOOGLE_VOICE","POLLY","OPENAI","GEMINI","JOBROBOTIX","SIMPLYRETS","SIP","SMTP","AIRCALL","LABOREDGE","TELNYX","AZURE","GROQ","STRIPE","DEEPSEEK","CALCOM","SARVAM"]},{"type":"null"}],"title":"Type","description":"API key type"},"integration_key":{"anyOf":[{"$ref":"#/components/schemas/TwilioIntegrationKey"},{"$ref":"#/components/schemas/ElevenLabsIntegrationKey"},{"$ref":"#/components/schemas/PlayHTIntegrationKey"},{"$ref":"#/components/schemas/GoogleVoiceIntegrationKey"},{"$ref":"#/components/schemas/DeepgramIntegrationKey"},{"$ref":"#/components/schemas/PollyIntegrationKey"},{"$ref":"#/components/schemas/SendGridIntegrationKey"},{"$ref":"#/components/schemas/SMTPIntegrationKey"},{"$ref":"#/components/schemas/CartesiaIntegrationKey"},{"$ref":"#/components/schemas/AzureVoiceIntegrationKey"},{"$ref":"#/components/schemas/LaborEdgeIntegrationKey"},{"$ref":"#/components/schemas/JobRobotixIntegrationKey"},{"$ref":"#/components/schemas/CalcomIntegrationKey"},{"$ref":"#/components/schemas/GenericIntegrationKey"},{"type":"object"},{"type":"null"}],"title":"Integration Key","description":"Integration key data"},"notes":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Notes","description":"Additional notes","default":{}},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"API key status"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default","description":"Default API key flag"},"runtime_config":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Runtime Config","description":"Runtime configuration","default":{}}},"type":"object","title":"ApiKey","description":"Schema for creating and updating API keys"},"app__schemas__assistant__AdditionalSettings":{"properties":{"SynthesizerUsed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synthesizerused","description":"The synthesizer service currently in use"},"TranscriberUsed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcriberused","description":"The transcriber service currently in use"},"AgentUsed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agentused","description":"The agent service currently in use"},"save_transcripts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Save Transcripts","description":"Whether to save conversation transcripts"},"Agent":{"anyOf":[{"$ref":"#/components/schemas/agent"},{"type":"null"}],"description":"Agent configuration settings"},"Synthesizer":{"anyOf":[{"$ref":"#/components/schemas/synthesizer"},{"type":"null"}],"description":"Synthesizer configuration settings"},"Transcriber":{"anyOf":[{"$ref":"#/components/schemas/transcriber"},{"type":"null"}],"description":"Transcriber configuration settings"},"enable_voicemail_detection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enable Voicemail Detection","description":"Whether to enable voicemail detection","default":false},"voicemail_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voicemail Message","description":"Voicemail message"},"check_idle_time":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Check Idle Time","description":"Whether to enable check idle time","default":true}},"additionalProperties":true,"type":"object","title":"AdditionalSettings"},"app__schemas__assistant__ApiKey":{"properties":{"api_key_id":{"type":"integer","title":"Api Key Id","description":"API key id"},"type":{"$ref":"#/components/schemas/ApiKeyChannelEnum","description":"API key type"}},"type":"object","required":["api_key_id","type"],"title":"ApiKey"},"app__schemas__campaign__AdditionalSettings":{"properties":{"execution_days":{"anyOf":[{"items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"type":"array"},{"type":"null"}],"title":"Execution Days","description":"Days on which the campaign should execute"},"start_hour":{"anyOf":[{"type":"integer","maximum":23.0,"minimum":0.0},{"type":"null"}],"title":"Start Hour","description":"Hour when execution starts (0-23)"},"end_hour":{"anyOf":[{"type":"integer","maximum":23.0,"minimum":0.0},{"type":"null"}],"title":"End Hour","description":"Hour when execution ends (0-23)"},"delay":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Delay","description":"Delay in execution (in minutes)"},"time_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Zone","description":"Time zone for execution (e.g., CST, PST, UTC)"},"salesforce_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salesforce User Id","description":"Salesforce user ID"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"email ID"},"from_emails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"From Emails","description":"sender emails"},"from_numbers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"From Numbers","description":"from numbers"},"email_medium":{"anyOf":[{"type":"string","enum":["SMTP","SEND_GRID"]},{"type":"null"}],"title":"Email Medium","description":"email medium (send_grid or smpt)"},"call_back_data":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Call Back Data","description":"Call back data"},"ignore_suppression":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ignore Suppression","description":"Ignore suppression","default":false}},"additionalProperties":true,"type":"object","title":"AdditionalSettings"},"app__schemas__chat__SendSMSRequest":{"properties":{"to_number":{"type":"string","maxLength":20,"minLength":5,"title":"To Number","description":"Recipient's phone number"},"assistant_id":{"type":"integer","title":"Assistant Id","description":"Assistant ID"},"message":{"type":"string","maxLength":500,"minLength":1,"title":"Message","description":"Message content"},"assign_to_agent":{"type":"boolean","title":"Assign To Agent","description":"Whether to assign message to an agent"},"salesforce_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salesforce User Id","description":"Salesforce user ID"}},"type":"object","required":["to_number","assistant_id","message","assign_to_agent"],"title":"SendSMSRequest"},"app__schemas__customer__CustomField":{"properties":{"fieldname":{"type":"string","title":"Fieldname","description":"Field name"},"fieldinformation":{"title":"Fieldinformation","description":"Field information/value"}},"type":"object","required":["fieldname","fieldinformation"],"title":"CustomField","description":"Custom field structure"},"app__schemas__customers__CustomField":{"properties":{"csv_field":{"type":"string","title":"Csv Field","description":"Field name in the CSV file"},"customer_table_field":{"type":"string","title":"Customer Table Field","description":"Corresponding field in the customer table"}},"type":"object","required":["csv_field","customer_table_field"],"title":"CustomField"},"app__schemas__prompts__SendSMSRequest":{"properties":{"assistant_type":{"type":"string","enum":["VOICE","CHAT","SMS","EMAIL"],"title":"Assistant Type","description":"Assistant type"},"general_info":{"$ref":"#/components/schemas/GeneralInfo","description":"General info"}},"type":"object","required":["assistant_type","general_info"],"title":"SendSMSRequest"},"azure":{"properties":{"voice_name":{"type":"string","title":"Voice Name","description":"Voice name"},"rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rate","description":"Rate"},"language_code":{"type":"string","title":"Language Code","description":"Language code"},"prosody":{"anyOf":[{"$ref":"#/components/schemas/Prosody"},{"type":"null"}],"description":"Prosody"},"style":{"anyOf":[{"$ref":"#/components/schemas/Style"},{"type":"null"}],"description":"Style"}},"type":"object","required":["voice_name","rate","language_code"],"title":"azure"},"cartesia":{"properties":{"speed":{"type":"string","enum":["slow","medium","fast","normal"],"title":"Speed","description":"Speed"},"emotion":{"$ref":"#/components/schemas/Emotion"},"language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Code","description":"Language code"}},"type":"object","required":["speed"],"title":"cartesia"},"deepgram":{"properties":{"language":{"type":"string","title":"Language","description":"Language code"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model"},"keywords":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keywords","description":"Keywords"}},"type":"object","required":["language"],"title":"deepgram"},"elevenLabs":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model"},"stability":{"type":"string","title":"Stability","description":"Stability"},"style_exaggeration":{"type":"string","title":"Style Exaggeration","description":"Style exaggeration"},"similarity":{"type":"string","title":"Similarity","description":"Similarity"},"optimize_latency":{"type":"string","title":"Optimize Latency"},"language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Code","description":"Language code"}},"type":"object","required":["stability","style_exaggeration","similarity"],"title":"elevenLabs"},"openAi":{"properties":{"backchannel_probability":{"type":"number","title":"Backchannel Probability","description":"Backchannel probability"},"temperature":{"type":"number","title":"Temperature","description":"Temperature"},"max_tokens":{"type":"integer","title":"Max Tokens","description":"Max tokens"},"model_name":{"type":"string","title":"Model Name","description":"Model name"}},"type":"object","required":["backchannel_probability","temperature","max_tokens","model_name"],"title":"openAi"},"sarvam":{"properties":{"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model"},"speaker":{"type":"string","title":"Speaker","description":"Speaker"},"language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Code","description":"Language code"}},"type":"object","required":["speaker"],"title":"sarvam"},"sarvamtts":{"properties":{"language":{"anyOf":[{"type":"string","enum":["en-IN","hi-IN","bn-IN","ta-IN","te-IN","gu-IN","kn-IN","ml-IN","mr-IN","pa-IN","od-IN"]},{"type":"null"}],"title":"Language","description":"Language","default":"en-IN"}},"additionalProperties":true,"type":"object","title":"sarvamtts"},"synthesizer":{"properties":{"Azure":{"$ref":"#/components/schemas/azure","description":"Azure"},"Cartesia":{"$ref":"#/components/schemas/cartesia","description":"Cartersia"},"ElevenLabs":{"$ref":"#/components/schemas/elevenLabs","description":"ElevenLabs"},"Sarvam":{"anyOf":[{"$ref":"#/components/schemas/sarvam"},{"type":"null"}],"description":"Sarvam"}},"additionalProperties":true,"type":"object","required":["Azure","Cartesia","ElevenLabs"],"title":"synthesizer"},"transcriber":{"properties":{"Deepgram":{"$ref":"#/components/schemas/deepgram","description":"Deepgram"},"Sarvam":{"anyOf":[{"$ref":"#/components/schemas/sarvamtts"},{"type":"null"}],"description":"Sarvam"}},"additionalProperties":true,"type":"object","required":["Deepgram"],"title":"transcriber"}}}}