Upload a File
Step 1: Reserve a file ID
Call the upload URL endpoint with the file’spurpose and contentType. You’ll receive a fileId to reference in later API calls and a putUrl to upload the actual file.
Response:
JSON
Step 2: Upload the file
Use theputUrl from the response to upload the file bytes with an HTTP PUT request. Set the Content-Type header to match the contentType you specified in Step 1.
Bash
fileId is ready to use in API calls like KYC submission, contract upload, or beneficiary creation.
File Purposes
Each file must be tagged with apurpose that describes how it will be used. The following values are supported:
Download a File
Retrieve file details and a pre-signed download URL by file ID. Response:JSON
getUrl is a pre-signed, single-use download link. Request a new one each time you need to download the file.
Where Files Are Used
Image Requirements
- Supported formats: JPEG, PNG
- Images must be clear and readable
- All text and photos on the document must be visible
- File size should be reasonable for the document type (typically under 10 MB)