A file is an image, a PDF or a video that you upload for a verification: a photo of a document side or page, a selfie, a video.
A file is not linked to an applicant when you create it. To use a file in a verification, add its file_id to a document: in the front_side_id, back_side_id, or other_side_1_id–other_side_3_id parameter of a Create document or Update a document request. Our system checks only the files that are linked to documents.
Typical flow
- Upload a file with the Create a file request and get
file_id. - Add
file_idto a document of the applicant. - Create a verification.
File requirements
| Requirement | Value |
|---|---|
| Formats | JPG, JPEG, PNG, HEIC, WEBP, BMP, GIF, PDF, MP4, WEBM |
| Maximum file size | 50 MB |
| Minimum image resolution | 440 px on the shortest side |
| Maximum image resolution | 100 megapixels |
Our system detects the file format from the file content, not from the file name or extension. The file name is not stored.
What you can do
- Upload a file
- Replace the content of a file
Upload a file of a document side (page), a selfie, or a video. The response returns a file_id. Use it in the front_side_id, back_side_id, or other_side_1_id–other_side_3_id parameter of a Create document or Update a document request.
Send the file in the file field of a multipart/form-data body. See the file requirements in the Files section overview.
Image processing
Our system converts uploaded images to JPEG. If the longer side of an image is larger than 4096 px, our system reduces it to 4096 px. PDF and video files are not converted on upload.
- https://api.kycaid.comhttps://api.kycaid.com/files
{
"file": "string"
}OK
The request was successful, and our system created the file.
{ "file_id": "3c4d5e6f7a8b3c4d5e6f7a8b3c4d5e6f7a8b" }