> For the complete documentation index, see [llms.txt](https://doc.youverify.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.youverify.co/know-your-customer-services-kyc/sdk/generate-sdk-session-id.md).

# 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>


---

# 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://doc.youverify.co/know-your-customer-services-kyc/sdk/generate-sdk-session-id.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.
