Documentation Index
Fetch the complete documentation index at: https://docs.clickterm.com/llms.txt
Use this file to discover all available pages before exploring further.
ClicktermDialog controls the clickwrap consent dialog shown to end users. It provides methods to show a clickwrap for acceptance and to display previously accepted content.
Access
Methods
show
Displays a clickwrap dialog to the end user. If the user has already accepted the latest effective major version, the promise resolves immediately without showing the dialog.| Parameter | Type | Required | Description |
|---|---|---|---|
options | ShowOptions | Yes | Dialog options (see below) |
config | DialogConfig | No | Dialog configuration (see below) |
| Field | Type | Required | Description |
|---|---|---|---|
endUserId | string | Yes | Your identifier for the end user (max 256 chars) |
clickwrapTemplateId | string | Yes | Template ID from the ClickTerm dashboard |
templatePlaceholders | object | No | Key-value pairs for placeholder substitution |
language | string | No | Language code (e.g., "en", "de"). Falls back to the configured default |
| Field | Type | Default | Description |
|---|---|---|---|
disableClose | boolean | false | Prevent the user from closing the dialog without accepting |
Promise<ShowResult>
The result object contains the Signature that should be sent to your backend for verification.
Example:
Requests to show a clickwrap are not counted toward billing. Only the
verification step (
POST /clickwrap/verify) is billed.showAcceptedContent
Displays the previously accepted clickwrap content to the user. Use this when you want to let users review what they agreed to.| Field | Type | Required | Description |
|---|---|---|---|
endUserId | string | Yes | The end user identifier |
clickwrapTemplateId | string | Yes | Template ID |
Promise<AcceptedContentResult>
Example:
The accepted content dialog only appears if the user has an accepted and verified event.

