> For the complete documentation index, see [llms.txt](https://lumin-soft.gitbook.io/ekyc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lumin-soft.gitbook.io/ekyc/integration-throw-api/sign-contract-api/high-mode.md).

# High mode

You can be integrated using a **web plugin**&#x20;

<mark style="color:blue;">Create Session Token: First Step When Customer Click On Sign contract You Have To Initialize Session First By Creating Session Token Using The Following API</mark>&#x20;

{% openapi src="/files/Ke1CM7j689KqGsPs90OJ" path="/api/v1/Auth/GenerateSignContractRequestSessionToken" method="post" %}
[enROLLCollection.json](https://3826285197-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGM6tCcdsukNbOigN9U2m%2Fuploads%2FWQofGsplYV2pyApE4bNZ%2FenROLLCollection.json?alt=media\&token=ec51999f-4eea-4770-9e89-00911641e9db)
{% endopenapi %}

{% hint style="info" %}
SignContractMode enum 2 value for high mode and 1 if you want to use low.
{% endhint %}

## **Import eNROLL JS File in index.html :**&#x20;

{% file src="/files/zoaB4AcZmcSFxfyDBPK1" %}

<pre><code><strong>&#x3C;script src="eNROLL.min.js">&#x3C;/script>
</strong></code></pre>

## Add Div Element With Specifying Id For This Div

```
<div id="myDiv">
</div>
```

## &#x20;Initialize eNroll Component Anywhere In Your JS File After the Document Is Loaded:

```typescript
eNROLL.init({
        elementId: 'frame',
        mode:"digitalSign",
        url: environment.pluginUrl,
        sessionId: sessionStorage.getItem('sessionToken'),
        onExit: () => {
          this.router.navigateByUrl('login');
        },
        onComplete: () => {
          alert("Completed");
          this.router.navigateByUrl('login');
        },
        onError: (errorCode,message) => {
          alert(`errorCde : ${errorCode} , Message x:${message}`);
        },
      });
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lumin-soft.gitbook.io/ekyc/integration-throw-api/sign-contract-api/high-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
