Latest SDK versions: Web
2.1.0 · Android 2.1.0 — View release notesPrerequisites
Before you start, make sure you have:- A ClickTerm account
- A published template with an effective version (see Product Guide)
- An integration with your App ID and App Key (from Integrations)
Need to set up your credentials and template first? See Creating an app & template.
1. Install the SDK
Add the ClickTerm SDK script tag to your frontend app:The SDK is loaded from the ClickTerm CDN. No npm package is required.
2. Initialize the SDK
After loading the script, initialize the client with your App ID. You can obtain it from the Integrations menu in the ClickTerm dashboard.3. Show the clickwrap dialog
CallClicktermDialog.show() to present the clickwrap to your user. The SDK:
- Fetches the current effective template version from ClickTerm
- Displays it in a modal dialog
- Creates an event in ClickTerm once the end user accepts or declines
- Returns a Signature to your application
example.js
4. Verify on your backend
After the end user accepts or declines the clickwrap, the SDK creates an unverified event in ClickTerm and returns a Signature. Send this Signature to your server, then call ClickTerm’s verification endpoint with your App ID and App Key. This verifies the event — confirming the Signature hasn’t been forged or tampered with. For accepted events, a Certificate of Acceptance is generated.clickwrapEventStatus ("ACCEPTED" or "DECLINED") along with the full event metadata (event ID, template version, timestamps, etc.).
ACCEPTED— The user accepted the terms. The event is now verified and a Certificate of Acceptance is generated.DECLINED— The event is still verified, but no Certificate of Acceptance is generated. It’s up to your application to decide how to handle this (e.g., block the user journey or restrict features).
Next steps
Integration flow
Understand the complete integration architecture.
Template placeholders
Pass user-specific data into your clickwrap templates.
Widget customization
Customize the dialog appearance from the dashboard.
API Reference
Explore all available API endpoints.

