Skip to main content
GET
/
api
/
webhook
/
webchat-script
Get webchat embed script
curl --request GET \
  --url https://your-instance.example.com/api/webhook/webchat-script
"(function(){var w=window,d=document,c={webchatConfigId:\"64a1b2c3d4e5f60012345678\",primaryColor:\"#3B82F6\",position:\"bottom-right\",starterMessage:\"Hi! How can we help?\",apiBaseUrl:\"https://api.tetherai.ca\"};w.__TETHER_WEBCHAT__=c;var s=d.createElement(\"script\");s.src=c.apiBaseUrl+\"/static/webchat-runtime.js\";s.async=true;d.head.appendChild(s);})();"

Query Parameters

webchatConfigId
string
required

Response

JavaScript embed script with the resolved webchat configuration inlined.

The response is of type string.