Read a widget's public configuration
GET
/api/channels/webchat/sessionReturns the presentation settings for a widget so you can render the launcher before anyone starts a conversation. No session is created.
Widget public key, from an authorised domain
Parameters
keystringqueryrequiredThe widget's public key.
Originstring · uriheaderrequiredMust match one of the widget's allowed domains.
Responses
200The widget's public configuration.400The key parameter is missing.403The Origin is not on the widget's allowed-domains list.404No enabled widget matches that key.curl -X GET 'https://staging.useline.io/api/channels/webchat/session?key=pk_live_2f8c' \ -H 'Origin: https://example.com'