> For the complete documentation index, see [llms.txt](https://docs.neox.vn/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neox.vn/docs/collections/integration/api-upload-kyc-file.md).

# API upload file

* This is the API used to upload KYC files
* 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="/pages/Z6i4pnK4y9vE73CiFAF9">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>


---

# 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://docs.neox.vn/docs/collections/integration/api-upload-kyc-file.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.
