# API upload file

* This is the API used to upload KYC files
* &#x20;API:
  * Path: *v2/col/files/upload*
  * Method: POST
  * Request: body, form-data

**Request Parameter**

<table><thead><tr><th>Parameter</th><th width="119">Data Type</th><th width="124">Required</th><th>Description</th></tr></thead><tbody><tr><td>file</td><td>File</td><td>Y</td><td>File upload</td></tr></tbody></table>

**Response Data**

<table><thead><tr><th width="157">Parameter</th><th width="145.33333333333331">Data Type</th><th>Descriptions</th></tr></thead><tbody><tr><td>code</td><td>Number</td><td>Error code, refer to <a href="error-codes">table of error codes</a>.</td></tr><tr><td>message</td><td>String</td><td>Error description.</td></tr><tr><td>data</td><td>Object</td><td>Refer to <a href="#uploadfileresponse">UploadFileResponse</a></td></tr></tbody></table>

#### UploadFileResponse

<table><thead><tr><th width="157">Parameter</th><th width="141.33333333333331">Data Type</th><th>Description</th></tr></thead><tbody><tr><td>fileName</td><td>String</td><td>The name of the file which is uploaded</td></tr><tr><td>path</td><td>String</td><td>The path to the file</td></tr></tbody></table>
