Scan Prompt > Chilean ID
Last updated
Last updated
https://api.verifik.co/v2/ocr/scan-prompt
RUT_FULL
this will scan the whole document if you pass the image with both sides.
RUT
This will scan only the front part of the chilean ID
RUT_BACK
This will scan only the back part of the chilean ID
import http.client
import json
conn = http.client.HTTPSConnection("api.verifik.co")
payload = json.dumps({
"documentType": "RUT_FULL",
"image": "/9j/4AAQSkZJRgABAQEASABIAAD/4g...."
})
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR...5cCI6IkpXVqFqa1ldKk8Tt5Kh_o'
}
conn.request("POST", "/v2/ocr/scan-prompt", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const axios = require('axios');
let data = JSON.stringify({
"documentType": "RUT_FULL",
"image": "/9j/4AAQSkZ..."
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.verifik.co/v2/ocr/scan-prompt',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsI...1ldKk8Tt5Kh_o'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
{
"data": {
"documentNumber": "602.915.704",
"documentType": "RUT_FULL",
"documentCategory": "Unknown",
"nationality": "VEN",
"gender": "M",
"url": "https://cdn.verifik.co/ocr/613a3a48f2c84b454153add7/1749010850727-png",
"requiresBackSide": false,
"status": "ACTIVE_BUT_UNVERIFIED",
"imageValidated": false,
"validationMethod": "SCAN_PROMPT",
"inputMethod": "NOT_SET",
"namesMatch": false,
"fullNameMatchPercentage": 0,
"firstNameMatchPercentage": 0,
"lastNameMatchPercentage": 0,
"OCRExtraction": {
"firstName": "RUBEN ADILIO",
"lastName": "MENDOZA FERRER",
"fullName": "RUBEN ADILIO MENDOZA FERRER",
"documentNumber": "602.915.704",
"nationality": "VEN",
"dateOfBirth": "31 ENE 1989",
"gender": "M",
"expirationDate": "12 ENE 2023",
"emissionDate": "17 FEB 2022",
"RUT": "27.698.626-0",
"RUN": "27.698.626-0",
"NAC": "345678",
"placeOfBirth": "Santiago",
"profession": "ASISTENTE SOCIAL",
"barCode": "INCHLBA30243850A0110110222F3110223CHL80000004<1<8ACEVEDOSANMARTIN<EMILIACAR",
"documentType": "RUT_FULL"
},
"scoreValidated": false,
"type": "ocr",
"infoValidationSupported": true,
"client": "613a3a48f2c84b454153add7",
"_id": "683fc9a8701e4cc487b8f4c3",
"updatedAt": "2025-06-04T04:20:56.585Z",
"createdAt": "2025-06-04T04:20:56.585Z",
"__v": 0
},
"signature": {
"dateTime": "June 4, 2025 4:20 AM",
"message": "Certified by Verifik.co"
},
"id": "UWTDL"
}
{
"code": "InternalServer",
"message": "Template not found"
}