Loading...
Loading...
Integrate Didit Database Validation API to verify personal data against government databases. Use when the user wants to validate identity against government records, verify national ID numbers, check CPF/CURP/DNI/cedula numbers, perform identity database lookups, validate identity documents against official sources, or implement database verification for Latin American or Spanish identity documents using Didit. Supports 18 countries with 1x1 and 2x2 matching methods.
npx skill4agent add didit-protocol/skills didit-database-validationfull_matchpartial_matchno_match| Method | Description | Starting Price |
|---|---|---|
| 1x1 | Single data source validation | $0.05 |
| 2x2 | Two data sources cross-validation | $0.30 |
x-api-keyPOST https://apx.didit.me/auth/v2/programmatic/register/{"email": "you@gmail.com", "password": "MyStr0ng!Pass"}POST https://apx.didit.me/auth/v2/programmatic/verify-email/{"email": "you@gmail.com", "code": "A3K9F2"}api_keyGET /v3/billing/balance/POST /v3/billing/top-up/{"amount_in_dollars": 50}POST https://verification.didit.me/v3/database-validation/| Header | Value | Required |
|---|---|---|
| Your API key | Yes |
| | Yes |
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Yes | Universal ID number — auto-maps to correct country field |
| string | No | First name for matching |
| string | No | Last name for matching |
| string | No | DOB in |
| string | No | ISO 3166-1 alpha-3 country code |
| boolean | No | Save in Business Console |
| string | No | Your identifier for session tracking |
id_number| Country | Mapped Field | Document | Format |
|---|---|---|---|
| ARG | | DNI | — |
| BOL | | CI | — |
| BRA | | CPF | 11 digits |
| CHL | | RUT | — |
| COL | | Cedula | — |
| CRI | | Cedula | — |
| DOM | | Cedula | 11 digits |
| ECU | | Cedula | 10 digits |
| ESP | | DNI/NIE | — |
| GTM | | DPI | — |
| HND | | DNI | — |
| MEX | | CURP | 18 chars |
| PAN | | Cedula | — |
| PER | | DNI | 8 digits |
| PRY | | CI | — |
| SLV | | DUI | — |
| URY | | CI | — |
| VEN | | Cedula | — |
import requests
response = requests.post(
"https://verification.didit.me/v3/database-validation/",
headers={"x-api-key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={
"id_number": "12345678",
"first_name": "Carlos",
"last_name": "Garcia",
"issuing_state": "PER",
},
)
print(response.json())const response = await fetch("https://verification.didit.me/v3/database-validation/", {
method: "POST",
headers: { "x-api-key": "YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
id_number: "12345678",
first_name: "Carlos",
last_name: "Garcia",
issuing_state: "PER",
}),
});{
"request_id": "a1b2c3d4-...",
"database_validation": {
"status": "Approved",
"match_type": "full_match",
"issuing_state": "PER",
"validation_type": "1x1",
"screened_data": {
"personal_number": "12345678",
"first_name": "Carlos",
"last_name": "Garcia"
},
"validations": {
"full_name": "full_match",
"identification_number": "full_match"
}
}
}| Status | Meaning | Action |
|---|---|---|
| Full match against government records | Identity confirmed |
| No match found | Identity could not be verified |
| Partial match or insufficient data | Review screened_data and validations |
| Code | Meaning | Action |
|---|---|---|
| Invalid request | Check ID number format for target country |
| Invalid API key | Verify |
| Insufficient credits | Top up at business.didit.me |
| Result | Criteria |
|---|---|
| Full Match | Full name concatenation at 85% similarity (Levenshtein), OR First + Last both full match |
| Partial Match | Any single name component full match |
| No Match | No component reaches 70% similarity |
Individual name components use 70% Levenshtein threshold. Example: "Christophel" vs "Christopher" = Full Match; "Chris" vs "Christopher" = No Match.
| Match Type | Name | ID Number |
|---|---|---|
| Full Match | Full Match |
| Partial Match | Full Match |
| All other combinations | — |
| Match Type | Condition |
|---|---|
| Both sources confirm name + ID |
| One source confirms |
| Neither source confirms |
DOB and ID number matching is exact only — no fuzzy matching.
| Tag | Description |
|---|---|
| Missing required data — provide ID number, name, and country |
| Partial match found — requires investigation |
| No match found in government records |
Whenfires, session goes to "In Review". Validation auto-retriggers once missing data is provided.COULD_NOT_PERFORM_DATABASE_VALIDATION
| Country | Method | Coverage | Required Input |
|---|---|---|---|
| Argentina | 1x1 | 95% | Document number |
| Bolivia | 1x1 | 95% | Document number + DOB |
| Brazil | 1x1 | 95% | Tax number (CPF) |
| Chile | 1x1 | 95% | Personal number (RUT) |
| Colombia | 1x1 | 95% | Document number + type |
| Costa Rica | 1x1 | 95% | Personal number |
| Dominican Republic | 1x1 | 95% | Personal number |
| Ecuador | 1x1 / 2x2 | 90-96% | Personal number |
| El Salvador | 1x1 | 95% | Document number + DOB |
| Guatemala | 1x1 | 95% | Document number |
| Honduras | 1x1 | 95% | Document number |
| Mexico | 1x1 | 95% | Personal number (CURP) |
| Panama | 1x1 | 95% | Document number + DOB |
| Paraguay | 1x1 | 95% | Document number |
| Peru | 1x1 / 2x2 | 95-99% | Personal number |
| Spain | 1x1 | 95% | Personal number + doc type + expiry |
| Uruguay | 1x1 | 95% | Personal number + DOB |
| Venezuela | 1x1 | 95% | Document number |
# Requires: pip install requests
export DIDIT_API_KEY="your_api_key"
python scripts/validate_database.py --id-number 12345678 --country PER --first-name Carlos --last-name Garcia
python scripts/validate_database.py --id-number GARC850315HDFRRL09 --country MEX