# 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()
```


---

# Agent Instructions: 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://dev.vulos.io/reference/identity-javascript-sdk/the-base-package/kyc/kycdetails.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.
