Skip to main content

File Upload

Before initiating a verification check that requires documents (education, employment, address, etc.), upload the file using this API to get a fileUrl. Pass that URL as the document parameter in the corresponding verification API.

API Endpoint

Endpoint URL: POST https://api.trential.dev/utility/api/1.0/files

Try it out →

Request

Send a multipart/form-data POST request with the file and the fileCategory query parameter set to the verification type the document belongs to.

curl -X POST 'https://api.trential.dev/utility/api/1.0/files?fileCategory=bgv-twelfth' \
-H 'x-api-key: API_KEY_VALUE' \
-F 'file=@/path/to/marksheet.pdf'

fileCategory Values

ValueUsed for
bgv-tenth10th marksheet
bgv-twelfth12th marksheet
bgv-degreeDegree certificate or marksheet
bgv-employmentSalary slip, appointment letter, or experience letter
bgv-criminalCourt record verification
bgv-police-verificationPolice verification
bgv-police-clearance-certificatePolice Clearance Certificate
bgv-cibilPAN card for credit check
bgv-local-address-digitalLocal address document (digital)
bgv-local-address-postalLocal address document (postal)
bgv-permanent-address-digitalPermanent address document (digital)
bgv-permanent-address-postalPermanent address document (postal)

Response

{
"code": 0,
"message": "Success",
"data": {
"fileUrl": "https://storage.googleapis.com/trential-images-dev/65940bdd9b271d7e123a90d2/bgv-twelfth/ff88720aefc6a461bbb60f9eee94d27afa4e4eac1c52a971481a41b5b06f7a66"
}
}

Use the returned fileUrl as the document URL when calling verification APIs such as 12th Verification, Degree Verification, or Employment Verification.