Skip to main content
POST
Upload a File
Use the POST /v2/base/file/upload endpoint to upload documents to VelaFi. This endpoint supports KYC/KYB identity verification files as well as invoice documents for merchant accounts. The request must be sent as multipart/form-data. You can upload up to five files in a single request; each file must be between 10 KB and 3 MB and in one of the supported formats. The response returns a temporary signed URL for each uploaded file so you can verify the upload succeeded before referencing the file in subsequent API calls.
This endpoint requires authorization. Include your X-BH-TOKEN header on every request. Requests without a valid token will be rejected.

Request

Headers

Body Parameters

string
required
The type of business document being uploaded. Currently fixed to FIAT_ACCOUNT.
file
required
One or more files to upload. Maximum 5 files per request. Each file must be between 10 KB and 3 MB. Supported formats: jpg, jpeg, png, pdf.

Response Fields

number
HTTP-style status code. 200 indicates success.
string
Human-readable status message, e.g. "SUCCESS".
array
Array of uploaded file objects, one entry per file.

Example

Response

Store the fileUrl field from the response — this is the permanent relative path you reference in KYC/KYB submission requests. The tempFileUrl is a short-lived signed URL for verification only and will expire.