Clone a Chat Widget
POST/chat-widget/clone
Clones an existing chat widget into a new widget
Request
API Version
2021-04-15- application/json
- Body
- Example (auto)
Bodyrequired
locationId
ID of the widget to clone. Cloning is rejected with a 422 when the source widget’s stored chatType is outside liveChat and emailChat — the restriction is evaluated against the persisted widget, not against this request body.
Name for the cloned widget
{
"locationId": "oHJiAh0wDG3BzmzACVD6",
"chatWidgetId": "oHJiAh0wDG3BzmzACVD6",
"name": "Chat Widget 1 (copy)"
}
Created
- application/json
- Schema
- Example (auto)
Schema
Chat widget ID
Schema version of the widget
Chat Type. Reads are not restricted to the public-API write allow-list, so any stored chat type can be returned here.
liveChatwaChatemailChatallInOneChatvoiceAiChatfacebookChatinstagramChatWidget name
The location ID that owns this widget
Whether the widget is soft-deleted
Whether this is the default widget for the location
Widget settings
How the widget was created
chat-widgeta2pCompliancepublic-apisnapshotfunnelswebsiteblogsclient-portalvoice-aiwordpressconversation-aiagent-studioID of the user who last updated the widget
ID of the widget this one was cloned or imported from
Creation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
{
"_id": "ve9EPM428h8vShlRWsss",
"version": 2,
"chatType": "emailChat",
"name": "Chat Widget 1",
"locationId": "ve9EPM428h8vShlRWsss",
"deleted": false,
"default": false,
"settings": {
"acknowledgementDetails": {
"icon": "Check",
"placeholderColor": "#12b76a",
"liveChatIcon": "MessageDotsCircle",
"liveChatPlaceholderColor": "#12b76a"
},
"agencyName": "Example Agency",
"agencyWebsite": "https://example.com",
"allowAvatarImage": true,
"autoCountryCode": true,
"countryCode": "US",
"chatType": "emailChat",
"promptType": "avatar",
"chatIcon": "messageChatCircle",
"enableRevisitMessage": true,
"heading": "Welcome to Our Website",
"complianceEnabled": true,
"showLegalNotice": true,
"legalNoticeText": "We collect the details you provide to respond to your inquiry.",
"consentRequired": false,
"legalMsg": "By using this website, you agree to our terms and conditions.",
"liveChatAckMsg": "Thank you for reaching out. How may I assist you today?",
"liveChatEndedMsg": "Thank you for chatting with us. Have a great day!",
"liveChatFeedbackMsg": "We would appreciate your feedback. Please rate your experience.",
"liveChatFeedbackNote": "Your feedback helps us improve our services.",
"liveChatIntroMsg": "Hello! Welcome to our live chat support. How can I assist you today?",
"liveChatUserInactiveMsg": "Are you still there? Please let us know if you need assistance.",
"liveChatUserInactiveTime": "5 minutes",
"liveChatVisitorInactiveMsg": "Looks like you stepped away. Feel free to return whenever you need help.",
"liveChatVisitorInactiveTime": "10 minutes",
"locale": "en-us",
"promptAvatar": "avatar.jpg",
"promptAvatarAltText": "company logo",
"isPromptAvatarImageOptimize": false,
"promptMsg": "Need assistance? Feel free to ask us anything!",
"revisitPromptMsg": "Welcome back! How can we help you today?",
"sendActionText": "Send",
"showAgencyBranding": true,
"showConsentCheckbox": true,
"showLiveChatWelcomeMsg": true,
"showPrompt": true,
"subHeading": "We are here to help you!",
"successMsg": "Your message has been sent successfully.",
"thankYouMsg": "Thank you for visiting our website!",
"theme": {
"name": "blue",
"value": "blue",
"colors": {
"chatBubbleColor": "#155EEF",
"backgroundColor": "#ffffff",
"headerColor": "#0040C1",
"buttonColor": "#155EEF",
"avatarBackgroundColor": "#ffffff",
"avatarBorderColor": "#155EEF",
"senderMessageColor": "#155EEF",
"receivedMessageColor": "#F2F4F7"
},
"typography": {
"fontFamily": "Roboto",
"colors": {
"senderMessageTextColor": "#ffffff",
"receivedMessageTextColor": "#111828",
"headerMessageTextColor": "#ffffff",
"welcomeMessageTextColor": "#344054",
"systemMessageTextColor": "#344054"
}
}
},
"waNumber": "+1234567890",
"widgetPrimaryColor": "#4285F4",
"representativeAssignedMessage": "A representative has been assigned and will be with you shortly.",
"dimensions": {
"position": "bottom-right",
"sizes": {
"width": 360,
"height": 640
}
},
"prefilledMessageText": "I want to know more",
"advanceSettings": {
"brandingTitle": "Powered by",
"redirect": {
"redirectAction": false,
"redirectText": "For more details, please visit our website"
},
"enableContactForm": true,
"defaultConsentCheck": true,
"allInOneChatTypes": [
"liveChat",
"emailChat",
"voiceAiChat"
],
"prefilledMessageText": "I want to know more",
"voiceAiAnimation": null,
"voiceAiAnimationColor": "#155EEF",
"voiceAiAnimationSize": "md",
"voiceAiDisplayMode": "avatar"
},
"locationCountryCode": "US",
"widgetId": "92929283937922",
"widgetPlacement": "embedded",
"loadStrategy": "interaction"
},
"creationSource": "chat-widget",
"updatedBy": "oHJiAh0wDG3BzmzACVD6",
"originId": "ve9EPM428h8vShlRWsss",
"createdAt": "2026-08-17T09:24:11.123Z",
"updatedAt": "2026-08-17T09:24:11.123Z"
}