Skip to main content
The Verilock Widget is a no-code, embeddable component that launches the full verification flow directly on your website. Add a script tag, configure with data attributes, and you’re live.

Installation

Add the Verilock Widget script to your page:
The script is lightweight (~18 KB gzipped) and loads asynchronously. It has no external dependencies.

Display Modes

The widget supports three display modes:

Quick Start: Auto-Init with Data Attributes

The simplest integration uses HTML data attributes with no JavaScript required:

Inline Mode

Data Attributes Reference

JavaScript API

For full control, initialize the widget programmatically:

Configuration Options

Inline Mode Example

Events & Callbacks

Subscribe to lifecycle events to react to verification state changes:

Event Reference

Full Example

Customization

Theme Overrides

Override default widget styles with CSS custom properties:

Content Security Policy

If your site uses a Content Security Policy, add the following directives:
Use your publishable key (pk_...) in the widget. Never expose your secret API key in client-side code.