---
title: "Upload files by user token and file upload token"
method: POST
path: "/payout/file_uploads/{user_token}/{file_upload_token}"
tags: ["KYC"]
---

# Upload files by user token and file upload token

`POST /payout/file_uploads/{user_token}/{file_upload_token}`

This **POST** endpoint is used to upload one or more files in response to a file upload request.  
<br> You must specify both the `user_token` and the `file_upload_token` in the URL path to identify which user and file upload request the files should be associated with.  
<br> In the request body, you must include the `files_type` to indicate the type of documents being uploaded (e.g., *Bank Statement*, *Paper Check*, etc.) along with an array of `files`. Each file object requires the original `file_name` (with extension) and its Base64-encoded `file_content`.  
<br> The service supports multiple file uploads in a single request. Each uploaded file is validated against the expected file types defined in the original file upload request.  
<br> The response will confirm whether the upload was successful and return the status of the operation. Upload attempts with invalid file types, corrupted Base64 content, or files exceeding allowed limits will result in an error.

## Request body

- object
  - `files_type` string, required — The type of files that are being uploaded. The value is obtained from the list of accepted file types in the list of file uploads request. For example: Bank Statement, Paper Check, etc
  - `files` object[], required
    - `file_name` string, required — Original file name including file extension. Supported types: jpeg, jpg, png, gif, bmp, tiff, tif, svg, webp, raw, pdf.
    - `file_content` string, required — Base64-encoded file content. When uploading multiple files, the total size of the API request (including all files) is limited to 10 MB.

## Response `200`

OK

- object
  - `success` boolean — True if upload was succesful. False otherwise

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — You do not have necessary permissions for the resource
- `404` — Not Found
- `405` — Invalid input
- `500` — Internal Server Error
- `504` — Gateway Timeout

---

[API](https://skmtc.dev/masspay/apis/masspay-api.md) · [All operations](https://skmtc.dev/masspay/apis/masspay-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/masspay/masspay-api/revisions/c03b61a6a551/schema)
