---
title: Upload
description: Generate encrypted file URLs from customer KYC documents and pictures.
---

## What it is

Upload generates file URLs from your customers' KYC documents and pictures. BlindPay encrypts them before sharing with vendors and saving them in our database, helping you stay compliant with data protection laws.

## Prerequisites

::c-prerequisites
::

## Upload a file

You can check the required fields in the [BlindPay API Docs](https://api.blindpay.com/reference#tag/upload/POST/v1/upload){target="\_blank"}.

::c-auth-note
::

::c-code-group

```bash [cURL]
curl 'http://localhost:8787/v1/upload?instance_id=in_000000000000' \
  --request POST \
  --header 'Content-Type: multipart/form-data' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --form 'bucket=onboarding' \
  --form 'file=your_file.pdf' # this file should be a standard File format, please see more: https://developer.mozilla.org/en-US/docs/Web/API/File
```

::

::c-alert{type="success" icon="circle-check"}
Success! Use the `file_url` returned by the API to populate the required document URLs when [creating a customer](/docs/essentials/customers#create-a-customer).
::

## Related

- [Analyze Document](/docs/essentials/analyze-document) · [Customers](/docs/essentials/customers) · [KYC Basics](/knowledge-base/guides/kyc-basics)
