Validation RENAPO / CURP
Valids that a CURP and returns complete information about the person registered.
Endpoint
POST
/api/v1/official-list/mx/curp/validateBearer TokenValid a CURP against RENAPO
Leaders
| Leader | Value | Required |
|---|---|---|
Authorization | Bearer <api-key-jwt> | Yes |
Content-Type | application/json | Yes |
Body
| Name | Type | Required | Description |
|---|---|---|---|
curp | string | CURP To validate. Format: 18 characters (4 letters + 6 digits date + 1 letter H / M + 5 letters + 2 alphanum). |
Example
curl -X POST https://services.api.jaak.ai/api/v1/official-list/mx/curp/validate \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \
-H "Content-Type: application/json" \
-d '{"curp": "PEGJ800115HDFRRL09"}'
Successful response (200 OK)
{
"curp": "PEGJ800115HDFRRL09",
"isValid": true,
"message": "",
"eventId": "evt_345mno",
"details": {
"segments": {
"consonants": "PGJ",
"homonymy": "80",
"verificationDigit": "9"
},
"person": {
"fullName": "_",
"fullPaternalSurname": "PEREZ",
"fullMaternalSurname": "GARCIA",
"gender": "HOMBRE",
"birthDate": "1980-01-15",
"birthEntity": "CDMX",
"nationality": "MEXICAN",
"renapoGender": "HOMBRE",
"renapoBirthDate": "15/01/1980",
"entityName": "Mexico City"
},
"probatoryDocument": {
"registrationYear": "1980",
"book": "A001",
"certificateNumber": "12345",
"registryEntity": "Civil Registry"
}
}
}
| Section | Description |
|---|---|
segments | Structural decomposition of CURP (locally verified). |
person | Demographic data RENAPO. |
probatoryDocument | Act of birth supporting CURP (if RENAPO ). |
Response CURP Invalid (200 OK)
{
"curp": "INVALIDA",
"isValid": false,
"message": "CURP Not found in RENAPO",
"eventId": "evt_345mno"
}
Mistakes
| HTTP | errorCode | Description |
|---|---|---|
| 400 | 0002 | CURP with invalid format (length, regex) |
| 401 | — | API Invalid Key |
| 500 | 0000 | Error consulting RENAPO |
Validate format without consulting RENAPO
If you only have to validate the format of CURP at local level (with no consumption of RENAPO) with regex:
^[A-Z]{4}\d{6}[HM][A-Z]{5}[A-Z0-9]{2}$
- Positions 1-4:4 letters
- Positions 5-10: date of birth
YYMMDD - Position 11:
H(man) orM(woman) - Positions 12-16:5 letters
- Positions 17-18:2 alphanumeric (autoclaves)