> For the complete documentation index, see [llms.txt](https://dev.vulos.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.vulos.io/reference/identity-javascript-sdk/the-base-package/kyc/kycdetails.md).

# KycDetails

## Members

### `api :` [`KycApi`](/reference/identity-javascript-sdk/the-base-package/kyc/kycapi.md)

The `KycApi` that this object was created with.

### `details :` [`KycDetailsResponse`](/reference/identity-javascript-sdk/the-base-package/kyc/kycapi.md#kycdetailsresponse)

An object that implements the `KycDetailsResponse` interface.

## Methods

### `constructor(api, details)`

Create a new instance of the `KycDetails` object.

* `api` must be an instance of [`KycApi`](/reference/identity-javascript-sdk/the-base-package/kyc/kycapi.md);
* `details` must implement the [`KycDetailsResponse`](/reference/identity-javascript-sdk/the-base-package/kyc/kycapi.md#kycdetailsresponse) interface;

{% hint style="warning" %}
This constructor should not be called directly, use `ApplicationReference.uploadKycDetails()` instead.
{% endhint %}

### `async createRequest(webhook)`

Create a new KYC request based on the details, the `webhook` argument is optional.

This function returns a [`KycInstance`](/reference/identity-javascript-sdk/the-base-package/kyc/kycinstance.md).

```javascript
const kycInstance = await kycDetails.createRequest()
```
