# Generate SDK Liveness Token

This endpoint allows the user to generate a liveness token

## SDK Liveness Token

<mark style="color:blue;">`POST`</mark> `{{baseurl}}/v2/api/identity/sdk/liveness/token`

#### Headers

| Name                                    | Type   | Description      |
| --------------------------------------- | ------ | ---------------- |
| token<mark style="color:red;">\*</mark> | String | API secret token |

| Field                                              | Type   | Description                            |
| -------------------------------------------------- | ------ | -------------------------------------- |
| publicMerchantID<mark style="color:red;">\*</mark> | String | Public merchant ID                     |
| deviceCorrelationId                                | String | Device correlation ID                  |
| deviceId                                           | String | deviceId to derive deviceCorrelationId |

{% tabs %}
{% tab title="First Tab" %}

```json
{
 "publicMerchantID":"92hfbw9ub299929b"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Response" %}

```json
{
  "success": true,
  "statusCode": 200,
  "message": "Liveness token fetched successfully!",
  "data": {
    "authToken": "eyJhbGciOi...",
    "sessionId": "b15a8d20-c602-..."
  },
  "links": []
}
```

{% endtab %}
{% endtabs %}

<br>
