curl --request POST \
--url https://your-instance.example.com/api/webchats \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"backgroundColor": "<string>",
"primaryColor": "<string>",
"secondaryColor": "<string>",
"promptId": "<string>",
"allowedDomains": [
"<string>"
],
"initialStage": "<string>",
"description": "<string>",
"starterMessage": "<string>",
"icon": "<string>",
"headerTextColor": "<string>",
"statusText": "<string>",
"statusTextColor": "<string>",
"timestampColor": "<string>",
"csatBackgroundColor": "<string>",
"csatTextColor": "<string>",
"csatThankYouMessage": "<string>",
"pipelineId": "<string>",
"pipelineStage": "<string>",
"isAutopilot": true,
"isEnabled": true
}
'