Docs

Script Tag

Initialize Chat on Website

To deploy the chat to a website there is just one script tag needed:

Default Button creates an own chat button.
<script src="https://example.ws-chat.de/__frontend__/?js=1&lang=de&popup=20&mobilePopup=0"></script>

Target a custom button
<script src="https://example.ws-chat.de/__frontend__/?js=1&lang=de&popup=20&mobilePopup=0&button=%23chatToggle"></script>
You can specify a specific button (by using a url encoded query selector), if the customer don't want the default button.

Parameters

API

Instance API

/login

Logs in as an administrator. Cookies are set as HttpOnly cookies.

POST
{
  "email":"john@doe.com",
  "pass": "test"
}
GET /logout

Removes HttpOnly Cookie. Destroys session.

GET /user/active/all

Returns number of active non-admin chat users.

{
  "data": 1  // 0 - Infinity 
}

Initializor API