> For the complete documentation index, see [llms.txt](https://docs.tutelar.io/tutelar-api-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tutelar.io/tutelar-api-document/client-side-integrations/javascript-integration.md).

# Javascript Integration

## **Client Side Integration**

Integrate the Tutelar JS SDK to your website.&#x20;

### Step 1&#x20;

Just copy the below snippet and paste it before closing of head tag in your html.

{% code fullWidth="false" %}

```html
<script type="text/javascript" src="https://cdn.tutelar.io/js/v2/client"></script>
```

{% endcode %}

### Step 2

Call the below method in your script to initialise the Tutelar SDK to get client details.

```javascript
 var tutelar = new Tutelar({"public_key" : "tutpk_xxxxxxxxx"});
```

You can get your Public key from the Client Dashboard from Access Settings.

### Step 3

Call the below method in your script to get client details.

```javascript
tutelar.getClientDetails();
```
