Validate Verification Process
curl --request POST \
--url https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType} \
--header 'Content-Type: multipart/form-data' \
--form 'documents=(binary file data)' \
--form 'inputs[0]={
"fieldName": "DOCUMENT_TYPE",
"value": "PASSPORT"
}' \
--form 'inputs[1]={
"fieldName": "FRONT_IMAGE",
"fileName": "passport_front.jpg",
"value": "passport_front.jpg"
}' \
--form documents.items='@example-file'import requests
url = "https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}"
files = { "documents.items": ("example-file", open("example-file", "rb")) }
payload = {
"documents": "(binary file data)",
"inputs[0]": "{
\"fieldName\": \"DOCUMENT_TYPE\",
\"value\": \"PASSPORT\"
}",
"inputs[1]": "{
\"fieldName\": \"FRONT_IMAGE\",
\"fileName\": \"passport_front.jpg\",
\"value\": \"passport_front.jpg\"
}"
}
response = requests.post(url, data=payload, files=files)
print(response.text)const form = new FormData();
form.append('documents', '(binary file data)');
form.append('inputs[0]', '{
"fieldName": "DOCUMENT_TYPE",
"value": "PASSPORT"
}');
form.append('inputs[1]', '{
"fieldName": "FRONT_IMAGE",
"fileName": "passport_front.jpg",
"value": "passport_front.jpg"
}');
form.append('documents.items', '{
"fileName": "example-file"
}');
const options = {method: 'POST'};
options.body = form;
fetch('https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents\"\r\n\r\n(binary file data)\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B0%5D\"\r\n\r\n{\r\n \"fieldName\": \"DOCUMENT_TYPE\",\r\n \"value\": \"PASSPORT\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B1%5D\"\r\n\r\n{\r\n \"fieldName\": \"FRONT_IMAGE\",\r\n \"fileName\": \"passport_front.jpg\",\r\n \"value\": \"passport_front.jpg\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents\"\r\n\r\n(binary file data)\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B0%5D\"\r\n\r\n{\r\n \"fieldName\": \"DOCUMENT_TYPE\",\r\n \"value\": \"PASSPORT\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B1%5D\"\r\n\r\n{\r\n \"fieldName\": \"FRONT_IMAGE\",\r\n \"fileName\": \"passport_front.jpg\",\r\n \"value\": \"passport_front.jpg\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents\"\r\n\r\n(binary file data)\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B0%5D\"\r\n\r\n{\r\n \"fieldName\": \"DOCUMENT_TYPE\",\r\n \"value\": \"PASSPORT\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B1%5D\"\r\n\r\n{\r\n \"fieldName\": \"FRONT_IMAGE\",\r\n \"fileName\": \"passport_front.jpg\",\r\n \"value\": \"passport_front.jpg\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents\"\r\n\r\n(binary file data)\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B0%5D\"\r\n\r\n{\r\n \"fieldName\": \"DOCUMENT_TYPE\",\r\n \"value\": \"PASSPORT\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B1%5D\"\r\n\r\n{\r\n \"fieldName\": \"FRONT_IMAGE\",\r\n \"fileName\": \"passport_front.jpg\",\r\n \"value\": \"passport_front.jpg\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body[][
{
"fieldName": "SELFIE_VIDEO",
"message": "Poor lighting detected in selfie video",
"errorCode": "POOR_LIGHTING"
},
{
"fieldName": "FRONT_IMAGE",
"message": "Document is blurry or unclear",
"errorCode": "DOCUMENT_QUALITY"
}
]{
"error": "VERIFICATION_NOT_FOUND",
"message": "The specified verification ID was not found"
}Verification
Validate Verification Process
Validates inputs for a specific verification process type without actually submitting them. This allows clients to pre-validate document uploads and field values before formal submission, identifying any errors or missing requirements early in the process.
Use Cases
- Validating document quality before submission
- Checking for errors in verification inputs
- Testing selfie videos for lighting and quality issues
- Verifying that all required inputs are present
Notes
- This endpoint uses the same input format as the submission endpoint
- The validation is specific to the process type specified in the URL
- Returns an empty array if validation passes
- Returns detailed error information if validation fails
POST
/
verifications
/
{verificationId}
/
validations
/
{processType}
Validate Verification Process
curl --request POST \
--url https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType} \
--header 'Content-Type: multipart/form-data' \
--form 'documents=(binary file data)' \
--form 'inputs[0]={
"fieldName": "DOCUMENT_TYPE",
"value": "PASSPORT"
}' \
--form 'inputs[1]={
"fieldName": "FRONT_IMAGE",
"fileName": "passport_front.jpg",
"value": "passport_front.jpg"
}' \
--form documents.items='@example-file'import requests
url = "https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}"
files = { "documents.items": ("example-file", open("example-file", "rb")) }
payload = {
"documents": "(binary file data)",
"inputs[0]": "{
\"fieldName\": \"DOCUMENT_TYPE\",
\"value\": \"PASSPORT\"
}",
"inputs[1]": "{
\"fieldName\": \"FRONT_IMAGE\",
\"fileName\": \"passport_front.jpg\",
\"value\": \"passport_front.jpg\"
}"
}
response = requests.post(url, data=payload, files=files)
print(response.text)const form = new FormData();
form.append('documents', '(binary file data)');
form.append('inputs[0]', '{
"fieldName": "DOCUMENT_TYPE",
"value": "PASSPORT"
}');
form.append('inputs[1]', '{
"fieldName": "FRONT_IMAGE",
"fileName": "passport_front.jpg",
"value": "passport_front.jpg"
}');
form.append('documents.items', '{
"fileName": "example-file"
}');
const options = {method: 'POST'};
options.body = form;
fetch('https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents\"\r\n\r\n(binary file data)\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B0%5D\"\r\n\r\n{\r\n \"fieldName\": \"DOCUMENT_TYPE\",\r\n \"value\": \"PASSPORT\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B1%5D\"\r\n\r\n{\r\n \"fieldName\": \"FRONT_IMAGE\",\r\n \"fileName\": \"passport_front.jpg\",\r\n \"value\": \"passport_front.jpg\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents\"\r\n\r\n(binary file data)\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B0%5D\"\r\n\r\n{\r\n \"fieldName\": \"DOCUMENT_TYPE\",\r\n \"value\": \"PASSPORT\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B1%5D\"\r\n\r\n{\r\n \"fieldName\": \"FRONT_IMAGE\",\r\n \"fileName\": \"passport_front.jpg\",\r\n \"value\": \"passport_front.jpg\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents\"\r\n\r\n(binary file data)\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B0%5D\"\r\n\r\n{\r\n \"fieldName\": \"DOCUMENT_TYPE\",\r\n \"value\": \"PASSPORT\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B1%5D\"\r\n\r\n{\r\n \"fieldName\": \"FRONT_IMAGE\",\r\n \"fileName\": \"passport_front.jpg\",\r\n \"value\": \"passport_front.jpg\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urtentic.com/api/v1/verifications/{verificationId}/validations/{processType}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents\"\r\n\r\n(binary file data)\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B0%5D\"\r\n\r\n{\r\n \"fieldName\": \"DOCUMENT_TYPE\",\r\n \"value\": \"PASSPORT\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"inputs%5B1%5D\"\r\n\r\n{\r\n \"fieldName\": \"FRONT_IMAGE\",\r\n \"fileName\": \"passport_front.jpg\",\r\n \"value\": \"passport_front.jpg\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"documents.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body[][
{
"fieldName": "SELFIE_VIDEO",
"message": "Poor lighting detected in selfie video",
"errorCode": "POOR_LIGHTING"
},
{
"fieldName": "FRONT_IMAGE",
"message": "Document is blurry or unclear",
"errorCode": "DOCUMENT_QUALITY"
}
]{
"error": "VERIFICATION_NOT_FOUND",
"message": "The specified verification ID was not found"
}Path Parameters
Unique identifier of the verification. This is the verificationId returned when starting a verification.
Type of verification process to validate.
- LIVENESS: Validates selfie video for liveness detection
- DOCUMENT_VERIFICATION: Validates document images and data
- LOCATION_INTELLIGENCE: Validates location and environment data
- EMAIL_CHECK: Validates email verification inputs
Available options:
LIVENESS, DOCUMENT_VERIFICATION, LOCATION_INTELLIGENCE, EMAIL_CHECK Body
multipart/form-data
Response
Empty array when no validation errors are found
Name of the field with validation error
Example:
"SELFIE_VIDEO"
Error message describing the validation failure
Example:
"Poor lighting detected in selfie video"
Error code for programmatic handling. Common error codes:
General Errors
- MISSING_FIELD: Required field is missing
- INVALID_FORMAT: Field has incorrect format
Document Errors
- DOCUMENT_EXPIRED: Document is expired
- DOCUMENT_QUALITY: Image quality is insufficient
- DOCUMENT_MISMATCH: Document type doesn't match selected type
- DOCUMENT_TAMPERED: Signs of document tampering detected
Liveness Errors
- POOR_LIGHTING: Inadequate lighting for liveness verification
- MULTIPLE_FACES: Multiple faces detected in selfie
- FACE_MISMATCH: Face doesn't match document photo
- REPLAY_ATTACK: Potential replay attack detected
Location Errors
- VPN_DETECTED: VPN or proxy detected
- LOCATION_RESTRICTED: User in restricted location
- LOCATION_MISMATCH: Location doesn't match expected location
Email Errors
- INVALID_EMAIL: Email address format is invalid
- EMAIL_RISK_HIGH: Email associated with high risk score
- OTP_INVALID: One-time password is incorrect
Example:
"POOR_LIGHTING"