> ## Documentation Index
> Fetch the complete documentation index at: https://docs.checkin.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Web SDK quick start

> Render the verification flow in your website.

The Web SDK renders the verification flow inside a container on your page. Your backend creates a session token for each verification and receives the result.

## Before you start

* A flow name from your Backoffice
* Your SDK key, stored on your backend

**1. Create a session token on your backend**

Create one token per verification session. Never expose the SDK key client-side.

```bash theme={null}
curl --request POST "https://partner.sb.getid.dev/sdk/v2/token" \
  --header "X-SDK-Key: $CHECKIN_SDK_KEY" \
  --header "Content-Type: application/json"
```

Return the `token` from the response to your frontend.

**2. Load the SDK**

Add the launcher script and a container element. The script loads asynchronously and doesn't block page rendering.

```html theme={null}
<script src="https://cdn.getid.cloud/sdk/getid-web-sdk-launcher-v7.min.js"></script>

<div id="checkin-component"></div>
```

**3. Start the flow**

```javascript theme={null}
window.getidWebSdk.init({
  apiUrl: 'https://partner.sb.getid.dev',
  jwt: sessionToken,
  containerId: 'checkin-component',
  flowName: 'YOUR_FLOW_NAME',
  locale: 'en',
  metadata: { externalId: 'customer-123' },
  onComplete: (data) => {
    // Send data.applicationId to your backend
  },
  onFail: (data) => {
    // data.code, data.message
  },
});
```

**4. Handle the result on your backend**

`onComplete` means all data is collected; the verification is still processing. Send `applicationId` to your backend and match it with the [webhook](https://docs.checkin.com/integrate/results/webhooks.md) result, or fetch it from the [API](https://docs.checkin.com/integrate/results/retrieve-results.md).

During integration you can pass `sdkKey` instead of `jwt`. Don't do this in production.

## Next steps

* [Configuration reference](https://docs.checkin.com/integrate/web-sdk/configuration.md)
* [Callbacks and events](https://docs.checkin.com/integrate/web-sdk/events.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.