# Generate SDK Session ID

This endpoint allows the user to generate a short-lived sessionID to initilise the SDK.

## SDK Liveness Token

<mark style="color:blue;">`POST`</mark> `{{baseurl}}/v2/api/identity/sdk/liveness/session/generate`&#x20;

#### Headers

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

| Field      | Type   | Description                                                                                                                                                       |
| ---------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ttlSeconds | Number | <p>TTL in seconds</p><p>Default value: <mark style="color:red;"><code>120</code></mark></p><p>Size range: <mark style="color:red;"><code>30-600</code></mark></p> |
| metadata   | Object | <p>Custom metadata</p><p>Default value: <mark style="color:red;"><code>{}</code></mark></p>                                                                       |

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

```json
{
    "success": true,
    "statusCode": 200,
    "message": "SDK session generated",
    "data": {
        "sessionId": "200f5a883713b7ff26f22f489d716ca3",
        "expiresAt": "2025-10-05T23:56:48.821Z",
        "status": "active"
    },
    "links": []
}
```

{% endtab %}
{% endtabs %}

<br>
