JavaScript SDK overviewComplete reference for the $sleek object: open views, control the launcher and layout, read session state, and wire HTML triggers
Configure the SDKEvery window global the Sleekplan SDK reads at load time: SLEEK_PRODUCT_ID, SLEEK_USER, SLEEK_SETTINGS, SLEEK_DATA, and SLEEK_COOKIE_DOMAIN, plus how the SDK stores its session
Identify and manage usersPass user identity to Sleekplan with $sleek.setUser(), attach arbitrary metadata, and clear the session on logout so feedback is attributed correctly
Set the visitor's languageShow the widget, the portal and the iframe in your user's language: pass it in the SSO token, switch it at runtime with $sleek.setLanguage(), pick it with the URL, or store it over the REST API
Listen to SDK eventsUse $sleek.on() to react to the widget lifecycle, authentication, navigation, and submissions, with the payload every event carries
Show CSAT, NPS, and feedback popupsTrigger satisfaction and NPS surveys, feedback prompts, and changelog announcements with $sleek.showPopup(), and control which ones appear on their own
JWT Single Sign-OnAuthenticate your existing users into Sleekplan with signed JSON Web Tokens — no separate login required, supported in the widget, embed, and standalone page