Skip to main content
Integrate EntityLocker business document retrieval into your web application using the JavaScript SDK. The SDK provides a pre-built interface that handles the complete EntityLocker flow.
1

Create a session

Before initializing the SDK, you must create a unique session. Each SDK instance requires its own session to ensure secure and independent interactions.Use the Create Session endpoint to generate this session. This is a server-side API call that uses Sandbox Authentication to validate your credentials.Once created, you’ll receive a session_id, which you’ll need when initializing the SDK on the client side.
2

Add the SDK script

Include the EntityLocker SDK script in your HTML page.
The SDK is loaded globally and available as EntitylockerSDK.
3

Initialize the SDK

Configure and launch the EntityLocker SDK when the user initiates document retrieval.

3.1 Basic implementation

session_id
string
required
Unique session ID generated when Create Session API is called.
brand
object
required
Configuration for branding displayed in the EntityLocker interface.
theme
object
required
Appearance configuration for the SDK.
4

Handle SDK events

Set up an event listener to handle SDK events indicating session completion, cancellation, or errors.
To programmatically verify the final status of a session, call the Session Status endpoint from your backend.

Event types

The SDK emits the following event types:

Next steps

Create Session API

Learn how to create sessions for the SDK

Session Status API

Monitor session progress and status

Fetch Document API

Retrieve document data after completion