Upload a file
Upload a file for use in KYC and other verification flows. The file is sent as
multipart/form-data with a single field named file.
Constraints:
- Maximum file size is 20 MB.
- Only the following MIME types are accepted:
application/pdf,image/jpeg,image/png,image/heic,image/tiff. - Exactly one file may be uploaded per request, in a field named
file.
The response returns a public file identifier (file_...) that can be referenced
in subsequent requests.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The file to upload, sent as multipart/form-data with a single field named file.
Maximum size is 20 MB. Accepted MIME types are application/pdf, image/jpeg,
image/png, image/heic, image/tiff.
The file to upload. Maximum size is 20 MB. Accepted MIME types are
application/pdf, image/jpeg, image/png, image/heic, image/tiff.
Response
File uploaded successfully.
A file that has been uploaded to HIFI.
Public file identifier.
"file_9aB0xY4mNpXwZ7bV1aLdt"
Timestamp when the file was uploaded, in ISO 8601 format.
"2026-07-01T10:30:00.000Z"
Original name of the uploaded file.
"passport.pdf"
Size of the file in bytes.
245760
MIME type of the uploaded file.
application/pdf, image/jpeg, image/png, image/heic, image/tiff "application/pdf"