Install and set up the ClickTerm Web SDK in your project.
The ClickTerm Web SDK lets you display clickwrap agreements to end users in your web application. It’s distributed as an npm package (@clickterm/widget) and as a single JavaScript file loaded via a script tag.
Both distributions contain the same SDK. Code samples in these docs use the
window.Clickterm global — if you installed from npm, replace that line with
the import above.
Get your App ID from the Integrations page in the ClickTerm Dashboard.
Never expose your App Key in client-side code. The App Key is used
only for backend verification calls. The client SDK uses only the App ID.
Store the App Key safely — it won’t display again after creation, but can be
regenerated. Regenerating the key requires updating your backend configuration.
After calling initialize(), you can immediately use ClicktermDialog methods. Without initialization, the SDK will throw an error when requesting a clickwrap.
// Full setup exampleconst { ClicktermClient, ClicktermDialog } = window.Clickterm;ClicktermClient.initialize("YOUR_CLICKTERM_APP_ID");// Now you can show clickwraps (dialog mode)ClicktermDialog.show({ endUserId: "user-123", clickwrapTemplateId: "YOUR_TEMPLATE_ID",}).then((result) => { console.log("Result:", result);});// Or use inline mode (SDK v2.2.0+)// See ClicktermDom for details