Skip to main content

Create a Name Validation

Endpoint​

PUT https://api.verifik.co/v2/document-validations/{id}/validate

This endpoint performs name validation by comparing the names extracted from a user's document with official government records. It validates that the user's provided names match their official identity records through government API integrations.

Headers​

Content-Type​

Type: String
Required: Yes

application/json

Authorization​

Type: String
Required: Yes

Bearer {YOUR_ACCESS_TOKEN}

warning

Prerequisites: Users must complete both the signUpForm step and the document step before name validation can be performed.

warning

Additional Feature: Name Validations are an additional feature and are subject to charges. Each validation request will incur a fee based on your plan.

Path Parameters​

id​

Type: string
Required: Yes

The unique identifier of the document validation record to validate.

Query Parameters​

force​

Type: boolean
Required: No

Force re-validation even if already validated. Example: force=true

Body Parameters​

This endpoint does not require a request body. All necessary information is automatically retrieved from the document validation record.

Supported Regions and Document Types​

Name validation is currently supported for the following regions and document types:

RegionDocument TypeDescription
PanamaCCPAPanama National ID Card
ColombiaCCColombian National ID Card
ColombiaDRCCColombian Diplomatic ID Card
ChileCLChilean National ID Card
info

Note: Support for additional regions and document types may be available. Contact your account manager for the most up-to-date list of supported countries and document types.

Request​

import axios from 'axios';

const options = {
method: 'PUT',
url: 'https://api.verifik.co/v2/document-validations/document_validation_123456789/validate',
params: {
force: false
},
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_token>'
}
};

try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}

Response​

{
"success": true,
"data": {
"_id": "document_validation_123456789",
"status": "ACTIVE",
"nameValidation": {
"firstName": {
"provided": "John",
"official": "John",
"match": true,
"confidence": 0.95
},
"lastName": {
"provided": "Doe",
"official": "Doe",
"match": true,
"confidence": 0.95
},
"overallMatch": true,
"validationDate": "2024-01-15T10:32:00Z"
},
"updatedAt": "2024-01-15T10:32:00Z"
},
"signature": {
"dateTime": "April 11, 2023 12:25 PM",
"message": "Certified by Verifik.co"
}
}

Features​

  • Government Validation: Compares names with official government records
  • Multiple Countries: Support for Panama, Colombia, and Chile
  • Document Types: National and diplomatic ID cards
  • Automatic Validation: Automatically retrieves information from document
  • Re-validation: Option to force re-validation with force parameter
  • Confidence Scores: Detailed scores for each name
  • Prerequisites: Requires completion of registration form and document
  • Premium Feature: Additional service with per-validation charges
  • Multiple Languages: Support for JavaScript, Python, PHP, and Swift
  • Error Handling: Detailed error responses for different scenarios