Document Validator Config

The config feature allows you to customize various parameters to enhance or adjust the behavior of the Document Validator according to your company’s needs. When a validation is executed, these parameters override the default configuration we have stored for any validation performed in Truora, ensuring that customers have all models up to date. for example:

Parameter Client Config Default Config Used Config
(Client+Default)
Allowed Retries 2 3 2
Timeout 900 300 900
Retries TTL - 300 300

In this guide, you will learn how to update, retrieve, and delete a configuration for the Document Validator. We will use a single example throughout this guide to demonstrate the use of the Update, Get, and Delete Config requests, helping you understand their essential functions and responses.

Document Validator Default Config

The Document Validator has a default configuration, which you can leave as it is or adjust to better suit your industry or use case. Below are the default values for this configuration:

General Parameters

Parameter Default Value
timeout 300
allowed_retries 0
retry_ttl 300

Parameters by Country and Document Type

Country Document Type Document Version Validation Methods
ALL passport passport - data-consistency
- photo-of-photo
- manual-review
BR cnh br_driver-license - data-consistency
- government-database-validation
- photo-of-photo
- manual-review
BR general-registration br_rg-2022 - government-database-validation
- photo-of-photo
- manual-review
CL driver-license cl_driver-license - data-consistency
- government-database-validation
- photo-of-photo
- manual-review
CL foreign-id - cl_national-id-2013
- cl_foreign-id-2013
- cl_national-id-2025
- cl_foreign-id-2025
- data-consistency
- government-database-validation
- photo-of-photo
- photocopy-analysis
- manual-review
CL national-id - cl_national-id-2002
- cl_national-id-2013
- cl_foreign-id-2013
- cl_national-id-2025
- cl_foreign-id-2025
- data-consistency
- government-database-validation
- photo-of-photo
- photocopy-analysis
- manual-review
CL passport passport - data-consistency
- photo-of-photo
- manual-review
CO driver-license co_driver-license-2013 - data-consistency
- photo-of-photo
- manual-review
CO foreign-id - co_foreign-id
- co_foreign-id-2025
- data-consistency
- government-database-validation
- photo-of-photo
- manual-review
CO identity-card - co_identity-card-2008
- co_identity-card-old
- data-consistency
- photo-of-photo
- manual-review
CO national-id - co_national-id-2000
- co_national-id-2020
- data-consistency
- government-database-validation
- photo-of-photo
- photocopy-analysis
- image-analysis
- manual-review
CO temporary-national-id co_contrasena - data-consistency
- manual-review
CO passport passport - data-consistency
- government-database-validation
- photo-of-photo
- manual-review
CO pep co_pep - government-database-validation
- photo-of-photo
- manual-review
CO ppt co_ppt - data-consistency
- government-database-validation
- photo-of-photo
- manual-review
CO rut - co_rut_person
- co_rut_company
- data-consistency
- manual-review
MX foreign-id - mx_fm2
- mx_fm3
- data-consistency
- government-database-validation
- photo-of-photo
- image-analysis
- photocopy-analysis
- manual-review
MX invoice - mx_invoice-cfe
- mx_invoice-telmex
- mx_invoice-total-play
- data-consistency
- manual-review
MX national-id - mx_ife-c
- mx_ife-d
- mx_ine-f
- mx_ine-e
- mx_ine-g
- data-consistency
- government-database-validation
- photo-of-photo
- photocopy-analysis
- image-analysis
- manual-review
MX passport - passport
- mx_passport-2025
- data-consistency
- government-database-validation
- photo-of-photo
- manual-review
MX picture-id mx_student-card - data-consistency
- manual-review
MX record - mx_company-tax-report
- mx_person-tax-report
- data-consistency
- manual-review
PE national-id - pe_national-id-2005
- pe_national-id-2013
- pe_national-id-2020
- pe_national-id-2025
- data-consistency
- government-database-validation
- photo-of-photo
- manual-review
PE foreign-id - pe_foreign-card-2019
- pe_foreign-card-2022
- photo-of-photo
- manual-review
SV national-id - sv_national-id-2001
- sv_national-id-2020
- data-consistency
- photo-of-photo
- manual-review
SV foreign-id sv_foreign-id-2021 - data-consistency
- photo-of-photo
- manual-review
SV passport passport - data-consistency
- photo-of-photo
- manual-review

Configurable Parameters

General Parameters

For settings that affect all documents, you can set the following parameters:

  • timeout: The amount of time, in seconds, that users will have to perform the validation before it times out. The default value is 300 seconds (5 minutes), with a maximum of 21600 seconds (6 hours) and a minimum of 1 second.
  • allowed_retries: The number of times the validation may be retried before failing. The default value value is 0 retries, with a maximum of 3 retries.
  • retry_ttl: The time to live (TTL), in seconds, for creating a retry of any validation. The default value is 300 seconds (5 minutes), with a maximum of 1800 seconds (30 minutes) and a minimum of 1 second.

Document Version Config

The following parameters are intended to change the configuration of a document version by enabling or disabling certain validation methods:

  • validation_method.data-consistency.status: Allowed: enabled |disabled. Analyzes the extracted data from the document for consistency, such as date of birth and document number.
  • validation_method.government-database-validation.status: Allowed: enabled |disabled. Validates the extracted identification number against government databases.
  • validation_method.photocopy-analysis.status: Allowed: enabled |disabled. Analyzes if the image used for validation is a photocopy of a document.
  • validation_method.photo-of-photo.status: Allowed: enabled |disabled. Analyzes if the image used for validation is a photograph of a photograph of a document.
  • validation_method.image-analysis.status: Allowed: enabled |disabled. Checks for any alterations or edits in the image of the validated document.
  • validation_method.manual-review.status: Allowed: enabled |disabled. Determines whether manual review will be performed upon validation failure. You must contact Truora to activate this service. For more information please visit the manual review guide.

To configure the desired document version, you will need to send the next parameters in the body of your request along with the desired validation methods described above:

  • country: Allowed: CO |CL | MX| PE | BR | SV | ALL. Country for which the document validation configuration will be updated.
  • document_type: Allowed: national-id | foreign-id | driver-license | passport | identity-card| rut | temporary-national-id | pep | ppt | invoice | picture-id | record | cnh | general-registration. The type of document for which the document validation configuration will be updated. If omitted, all supported document types will be affected.
  • document_version: The version of the document type for which the document validation configuration will be updated. If omitted, all supported document versions will be affected. To see the Allowed different versions available per country and document type, refer to the tables in Appendix 1: Supported Document Versions.

    Please contact our Support Team for further assistance

    Contact us
    .

Update Config - Document Validator

To Update the configuration for the Document Validator, follow these steps:

  1. Create a PUT request to the endpoint https://api.validations.truora.com/v1/config.
  2. Set the Headers
    • Truora-API-Key: enter the value of your Truora API-key.
    • Content-Type: the value should be application/x-www-form-urlencoded.
  3. Set required values for the request body
    • validator [Required]: Allowed: document-validation. Validator to be configured.
    • timeout [Optional]: The amount of time, in seconds, that users will have to perform the validation before it times out.
    • allowed_retries [Optional]: The number of times the validation may be retried before failing.
    • retry_ttl [Optional]: The time to live (TTL) for creating a retry of any validation.
    • country [Required if modifying a validation method]: Allowed: CO |CL | MX| PE | BR | SV | ALL. Country for which the document validation configuration will be updated.
    • document_type [Required if modifying a validation method]: Allowed: national-id | foreign-id | driver-license | passport | identity-card| rut | temporary-national-id | pep | ppt | invoice | picture-id | record | cnh | general-registration. The type of document for which the document validation configuration will be updated. If omitted, all supported document types will be affected.
    • document_version [Required if modifying a validation method]: The version of the document type for which the document validation configuration will be updated. If omitted, all supported document versions will be affected. To see the Allowed different versions available per country and document type, refer to the tables in Appendix 1: Supported Document Versions.

      Please contact our Support Team for further assistance.

    • validation_method.data-consistency.status [Optional]: Allowed: enabled |disabled. Analyzes the extracted data from the document for consistency, such as date of birth and document number.
    • validation_method.government-database-validation.status [Optional]: Allowed: enabled |disabled. Validates the extracted identification number against government databases.
    • validation_method.photocopy-analysis.status [Optional]: Allowed: enabled |disabled. Analyzes if the image used for validation is a photocopy of a document.
    • validation_method.photo-of-photo.status [Optional]: Allowed: enabled |disabled. Analyzes if the image used for validation is a photograph of a photograph of a document.
    • validation_method.image-analysis.status [Optional]: Allowed: enabled |disabled. Checks for any alterations or edits in the image of the validated document.
    • validation_method.manual-review.status [Optional]: Allowed: enabled |disabled. Determines whether manual review will be performed upon validation failure. For more information about manual review, please visit the manual review guide.

For this guide’s example we will start by setting the following parameters:

  • validator: document-validation
  • timeout: 250
  • allowed_retries: 3
  • country : CO
  • document_type: national-id
  • document_version: co_national-id-2000
  • validation_method.data-consistency.status: disabled
  • validation_method.manual-review.status: enabled

Sending the Update Config request with these parameters, the response should look similar to the following:

PUT
/v1/config
                
    {
        "authenticate": {
            "timeout": 300,
            "allowed_retries": 2
        },
        "document-validation": {
            "timeout": 250,
            "allowed_retries": 3,
            "document_config": {
                "CO": {
                    "driver-license": {
                        "co_driver-license-2013": [
                            "data-consistency"
                        ]
                    },
                    "foreign-id": {
                        "co_foreign-id": [
                            "data-consistency",
                            "government-database-validation"
                        ]
                    },
                    "identity-card": {
                        "co_identity-card-2008": [
                            "data-consistency"
                        ],
                        "co_identity-card-old": [
                            "data-consistency"
                        ]
                    },
                    "national-id": {
                        "co_national-id-2000": [
                            "government-database-validation",
                            "image-analysis",
                            "manual-review",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ],
                        "co_national-id-2020": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ]
                    },
                    "passport": {
                        "passport": [
                            "data-consistency"
                        ]
                    },
                    "pep": {
                        "co_pep": [
                            "government-database-validation"
                        ]
                    },
                    "ppt": {
                        "co_ppt": [
                            "data-consistency",
                            "government-database-validation",
                            "manual-review"
                        ]
                    },
                    "rut": {
                        "co_rut_company": [
                            "data-consistency"
                        ],
                        "co_rut_person": [
                            "data-consistency"
                        ]
                    }
                },
                "MX": {
                    "foreign-id": {
                        "mx_fm2": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo"
                        ],
                        "mx_fm3": [
                            "photo-of-photo",
                            "data-consistency",
                            "government-database-validation"
                        ]
                    },
                    "invoice": {
                        "mx_invoice-cfe": [
                            "data-consistency"
                        ],
                        "mx_invoice-telmex": [
                            "data-consistency"
                        ],
                        "mx_invoice-total-play": [
                            "data-consistency"
                        ]
                    },
                    "national-id": {
                        "mx_ife-c": [
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis",
                            "data-consistency"
                        ],
                        "mx_ife-d": [
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis",
                            "data-consistency"
                        ],
                        "mx_ine-e": [
                            "photocopy-analysis",
                            "data-consistency",
                            "government-database-validation",
                            "image-analysis",
                            "photo-of-photo"
                        ],
                        "mx_ine-f": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ],
                        "mx_ine-g": [
                            "data-consistency",
                            "government-database-validation",
                            "image-analysis",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ]
                    },
                    "passport": {
                        "passport": [
                            "data-consistency"
                        ]
                    },
                    "picture-id": {
                        "mx_student-card": [
                            "data-consistency"
                        ]
                    },
                    "record": {
                        "mx_company-tax-report": [
                            "data-consistency"
                        ],
                        "mx_person-tax-report": [
                            "data-consistency"
                        ]
                    }
                },
                "PE": {
                    "foreign-id": {
                        "pe_foreign-card-2019": [
                            "manual-review"
                        ],
                        "pe_foreign-card-2022": [
                            "manual-review"
                        ]
                    },
                    "national-id": {
                        "pe_national-id-2005": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo"
                        ],
                        "pe_national-id-2013": [
                            "government-database-validation",
                            "photo-of-photo",
                            "data-consistency"
                        ],
                        "pe_national-id-2020": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo"
                        ]
                    }
                }
            },
            "retry_ttl": 300
        },
        "electronic-signature": {
            "timeout": 900
        },
        "email-verification": {
            "timeout": 400,
            "allowed_retries": 1
        },
        "enterprise-data": {
            "timeout": 300
        },
        "face-recognition": {
            "timeout": 300,
            "enrollment_timeout": 300,
            "allowed_retries": 0,
            "use_manual_review": false,
            "threshold": 0.65,
            "face_validation_config": {
                "similarity": {
                    "threshold": 0.65
                }
            },
            "retry_ttl": 300,
            "include_face_search": true
        },
        "face-search": {
            "timeout": 300,
            "enrollment_timeout": 300,
            "threshold": 0.98
        },
        "identity-questions": {
            "timeout": 300,
            "allowed_retries": 1,
            "threshold": 0.75
        },
        "phone-verification": {
            "timeout": 300,
            "allowed_retries": 2,
            "custom_name": "el proceso"
        },
        "voice-recognition": {
            "timeout": 300,
            "enrollment_timeout": 300
        }
    }

            

Among other details, you will identify the updated config:

  • For document-validation the timeout is set to 250 and allowed_retries is set to 3.
  • For "CO / national-id / co_national-id-2000" the manual-review is listed (enabled) and data-consistency is not listed (disabled)

Get Config

The Get Config request allows you to fetch the current configuration state for all validators associated with your account. This request retrieves the configuration for the Document Validator as well as the configuration states for all other validators linked to your account.

  • To obtain the current validators’ configuration, send a GET request to the endpoint https://api.validations.truora.com/v1/config

In the case of our current example, at this point you should receive the same response as the previous step:

GET
/v1/config
                
    {
        "authenticate": {
            "timeout": 300,
            "allowed_retries": 2
        },
        "document-validation": {
            "timeout": 250,
            "allowed_retries": 3,
            "document_config": {
                "CO": {
                    "driver-license": {
                        "co_driver-license-2013": [
                            "data-consistency"
                        ]
                    },
                    "foreign-id": {
                        "co_foreign-id": [
                            "data-consistency",
                            "government-database-validation"
                        ]
                    },
                    "identity-card": {
                        "co_identity-card-2008": [
                            "data-consistency"
                        ],
                        "co_identity-card-old": [
                            "data-consistency"
                        ]
                    },
                    "national-id": {
                        "co_national-id-2000": [
                            "government-database-validation",
                            "image-analysis",
                            "manual-review",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ],
                        "co_national-id-2020": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ]
                    },
                    "passport": {
                        "passport": [
                            "data-consistency"
                        ]
                    },
                    "pep": {
                        "co_pep": [
                            "government-database-validation"
                        ]
                    },
                    "ppt": {
                        "co_ppt": [
                            "data-consistency",
                            "government-database-validation",
                            "manual-review"
                        ]
                    },
                    "rut": {
                        "co_rut_company": [
                            "data-consistency"
                        ],
                        "co_rut_person": [
                            "data-consistency"
                        ]
                    }
                },
                "MX": {
                    "foreign-id": {
                        "mx_fm2": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo"
                        ],
                        "mx_fm3": [
                            "photo-of-photo",
                            "data-consistency",
                            "government-database-validation"
                        ]
                    },
                    "invoice": {
                        "mx_invoice-cfe": [
                            "data-consistency"
                        ],
                        "mx_invoice-telmex": [
                            "data-consistency"
                        ],
                        "mx_invoice-total-play": [
                            "data-consistency"
                        ]
                    },
                    "national-id": {
                        "mx_ife-c": [
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis",
                            "data-consistency"
                        ],
                        "mx_ife-d": [
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis",
                            "data-consistency"
                        ],
                        "mx_ine-e": [
                            "photocopy-analysis",
                            "data-consistency",
                            "government-database-validation",
                            "image-analysis",
                            "photo-of-photo"
                        ],
                        "mx_ine-f": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ],
                        "mx_ine-g": [
                            "data-consistency",
                            "government-database-validation",
                            "image-analysis",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ]
                    },
                    "passport": {
                        "passport": [
                            "data-consistency"
                        ]
                    },
                    "picture-id": {
                        "mx_student-card": [
                            "data-consistency"
                        ]
                    },
                    "record": {
                        "mx_company-tax-report": [
                            "data-consistency"
                        ],
                        "mx_person-tax-report": [
                            "data-consistency"
                        ]
                    }
                },
                "PE": {
                    "foreign-id": {
                        "pe_foreign-card-2019": [
                            "manual-review"
                        ],
                        "pe_foreign-card-2022": [
                            "manual-review"
                        ]
                    },
                    "national-id": {
                        "pe_national-id-2005": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo"
                        ],
                        "pe_national-id-2013": [
                            "government-database-validation",
                            "photo-of-photo",
                            "data-consistency"
                        ],
                        "pe_national-id-2020": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo"
                        ]
                    }
                }
            },
            "retry_ttl": 300
        },
        "electronic-signature": {
            "timeout": 900
        },
        "email-verification": {
            "timeout": 400,
            "allowed_retries": 1
        },
        "enterprise-data": {
            "timeout": 300
        },
        "face-recognition": {
            "timeout": 300,
            "enrollment_timeout": 300,
            "allowed_retries": 0,
            "use_manual_review": false,
            "threshold": 0.65,
            "face_validation_config": {
                "similarity": {
                    "threshold": 0.65
                }
            },
            "retry_ttl": 300,
            "include_face_search": true
        },
        "face-search": {
            "timeout": 300,
            "enrollment_timeout": 300,
            "threshold": 0.98
        },
        "identity-questions": {
            "timeout": 300,
            "allowed_retries": 1,
            "threshold": 0.75
        },
        "phone-verification": {
            "timeout": 300,
            "allowed_retries": 2,
            "custom_name": "el proceso"
        },
        "voice-recognition": {
            "timeout": 300,
            "enrollment_timeout": 300
        }
    }

            

Delete Config - Document Validator

The Delete Config request allows you to delete a validator’s configuration or a specific parameter within the validator’s configuration. Deleting the configuration resets its values back to their defaults.

  • To delete a config, send a DELETE request to the endpoint https://api.validations.truora.com/v1/config with the following Query Parameters:

    • validator [Required]: Name of the validation config to delete. Set this value to document-validation.
    • type [Optional]: Allowed: timeout | allowed_retries | retry_ttl | document_config. This specifies the configuration type to be reset. If provided, only the selected configuration will be reset. Otherwise, all configurations will be reset.
  • Note 1: If you omit the type parameter when sending the request, all configurations associated with the validator will be deleted, reverting all values to their default settings.

  • Note 2: Setting the type field to document_config will reset any Document Version Config to their default values.

Deleting a specific config type

Following our example, we had updated the following configuration:

  • For document-validation the timeout was set to 250 and allowed_retries was set to 3.
  • For "CO / national-id / co_national-id-2000", the manual-review was listed (enabled) and data-consistency was not listed (disabled).

To reset the timeout to its default value (300 seconds), set the following Query Parameters :

  • validator: document-validation
  • type: timeout

Now send the DELETE request to the endpoint https://api.validations.truora.com/v1/config. In the response, you should see that for document-validation the timeout has been reset to 300, and allowed_retries will remain unchanged at 3:

DELETE
/v1/config?validator=document-validation&type=timeout
                
    {
        "authenticate": {
            "timeout": 300,
            "allowed_retries": 2
        },
        "document-validation": {
            "timeout": 300,
            "allowed_retries": 3,
            "document_config": {
                "CO": {
                    "driver-license": {
                        "co_driver-license-2013": [
                            "data-consistency"
                        ]
                    },
                    "foreign-id": {
                        "co_foreign-id": [
                            "data-consistency",
                            "government-database-validation"
                        ]
                    },
                    "identity-card": {
                        "co_identity-card-2008": [
                            "data-consistency"
                        ],
                        "co_identity-card-old": [
                            "data-consistency"
                        ]
                    },
                    "national-id": {
                        "co_national-id-2000": [
                            "government-database-validation",
                            "image-analysis",
                            "manual-review",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ],
                        "co_national-id-2020": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ]
                    },
                    "passport": {
                        "passport": [
                            "data-consistency"
                        ]
                    },
                    "pep": {
                        "co_pep": [
                            "government-database-validation"
                        ]
                    },
                    "ppt": {
                        "co_ppt": [
                            "data-consistency",
                            "government-database-validation",
                            "manual-review"
                        ]
                    },
                    "rut": {
                        "co_rut_company": [
                            "data-consistency"
                        ],
                        "co_rut_person": [
                            "data-consistency"
                        ]
                    }
                },
                "MX": {
                    "foreign-id": {
                        "mx_fm2": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo"
                        ],
                        "mx_fm3": [
                            "photo-of-photo",
                            "data-consistency",
                            "government-database-validation"
                        ]
                    },
                    "invoice": {
                        "mx_invoice-cfe": [
                            "data-consistency"
                        ],
                        "mx_invoice-telmex": [
                            "data-consistency"
                        ],
                        "mx_invoice-total-play": [
                            "data-consistency"
                        ]
                    },
                    "national-id": {
                        "mx_ife-c": [
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis",
                            "data-consistency"
                        ],
                        "mx_ife-d": [
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis",
                            "data-consistency"
                        ],
                        "mx_ine-e": [
                            "photocopy-analysis",
                            "data-consistency",
                            "government-database-validation",
                            "image-analysis",
                            "photo-of-photo"
                        ],
                        "mx_ine-f": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ],
                        "mx_ine-g": [
                            "data-consistency",
                            "government-database-validation",
                            "image-analysis",
                            "photo-of-photo",
                            "photocopy-analysis"
                        ]
                    },
                    "passport": {
                        "passport": [
                            "data-consistency"
                        ]
                    },
                    "picture-id": {
                        "mx_student-card": [
                            "data-consistency"
                        ]
                    },
                    "record": {
                        "mx_company-tax-report": [
                            "data-consistency"
                        ],
                        "mx_person-tax-report": [
                            "data-consistency"
                        ]
                    }
                },
                "PE": {
                    "foreign-id": {
                        "pe_foreign-card-2019": [
                            "manual-review"
                        ],
                        "pe_foreign-card-2022": [
                            "manual-review"
                        ]
                    },
                    "national-id": {
                        "pe_national-id-2005": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo"
                        ],
                        "pe_national-id-2013": [
                            "government-database-validation",
                            "photo-of-photo",
                            "data-consistency"
                        ],
                        "pe_national-id-2020": [
                            "data-consistency",
                            "government-database-validation",
                            "photo-of-photo"
                        ]
                    }
                }
            },
            "retry_ttl": 300
        },
        "electronic-signature": {
            "timeout": 900
        },
        "email-verification": {
            "timeout": 400,
            "allowed_retries": 1
        },
        "enterprise-data": {
            "timeout": 300
        },
        "face-recognition": {
            "timeout": 300,
            "enrollment_timeout": 300,
            "allowed_retries": 0,
            "use_manual_review": false,
            "threshold": 0.65,
            "face_validation_config": {
                "similarity": {
                    "threshold": 0.65
                }
            },
            "retry_ttl": 300,
            "include_face_search": true
        },
        "face-search": {
            "timeout": 300,
            "enrollment_timeout": 300,
            "threshold": 0.98
        },
        "identity-questions": {
            "timeout": 300,
            "allowed_retries": 1,
            "threshold": 0.75
        },
        "phone-verification": {
            "timeout": 300,
            "allowed_retries": 2,
            "custom_name": "el proceso"
        },
        "voice-recognition": {
            "timeout": 300,
            "enrollment_timeout": 300
        }
    }

            

Deleting all configurations

Following our example, after deleting the timeout config, we have the following configuration states:

  • For document-validation, the timeout was reset to its default (300), and allowed_retries was set to 3.
  • For "CO / national-id / co_national-id-2000" the manual-review was listed (enabled) and data-consistency was not listed (disabled).

To reset all the configuration for the Document Validator, set the following Query Parameters :

  • validator: document-validation
  • type: Omit this parameter. Remember that if this parameter is omitted, all configurations will be reset to their default values.

Now send the DELETE request to the endpoint https://api.validations.truora.com/v1/config:

DELETE
/v1/config?validator=document-validation
                
{
    "authenticate": {
        "timeout": 300,
        "allowed_retries": 2
    },
    "document-validation": {
        "timeout": 300,
        "allowed_retries": 0,
        "document_config": {
            "CO": {
                "driver-license": {
                    "co_driver-license-2013": [
                        "data-consistency"
                    ]
                },
                "foreign-id": {
                    "co_foreign-id": [
                        "data-consistency",
                        "government-database-validation"
                    ]
                },
                "identity-card": {
                    "co_identity-card-2008": [
                        "data-consistency"
                    ],
                    "co_identity-card-old": [
                        "data-consistency"
                    ]
                },
                "national-id": {
                    "co_national-id-2000": [
                        "image-analysis",
                        "photo-of-photo",
                        "photocopy-analysis",
                        "data-consistency",
                        "government-database-validation"
                    ],
                    "co_national-id-2020": [
                        "photocopy-analysis",
                        "data-consistency",
                        "government-database-validation",
                        "photo-of-photo"
                    ]
                },
                "passport": {
                    "passport": [
                        "data-consistency"
                    ]
                },
                "pep": {
                    "co_pep": [
                        "government-database-validation"
                    ]
                },
                "ppt": {
                    "co_ppt": [
                        "data-consistency",
                        "government-database-validation",
                        "manual-review"
                    ]
                },
                "rut": {
                    "co_rut_company": [
                        "data-consistency"
                    ],
                    "co_rut_person": [
                        "data-consistency"
                    ]
                }
            },
            "MX": {
                "foreign-id": {
                    "mx_fm2": [
                        "data-consistency",
                        "government-database-validation",
                        "photo-of-photo"
                    ],
                    "mx_fm3": [
                        "data-consistency",
                        "government-database-validation",
                        "photo-of-photo"
                    ]
                },
                "invoice": {
                    "mx_invoice-cfe": [
                        "data-consistency"
                    ],
                    "mx_invoice-telmex": [
                        "data-consistency"
                    ],
                    "mx_invoice-total-play": [
                        "data-consistency"
                    ]
                },
                "national-id": {
                    "mx_ife-c": [
                        "data-consistency",
                        "government-database-validation",
                        "photo-of-photo",
                        "photocopy-analysis"
                    ],
                    "mx_ife-d": [
                        "data-consistency",
                        "government-database-validation",
                        "photo-of-photo",
                        "photocopy-analysis"
                    ],
                    "mx_ine-e": [
                        "data-consistency",
                        "government-database-validation",
                        "image-analysis",
                        "photo-of-photo",
                        "photocopy-analysis"
                    ],
                    "mx_ine-f": [
                        "data-consistency",
                        "government-database-validation",
                        "photo-of-photo",
                        "photocopy-analysis"
                    ],
                    "mx_ine-g": [
                        "data-consistency",
                        "government-database-validation",
                        "image-analysis",
                        "photo-of-photo",
                        "photocopy-analysis"
                    ]
                },
                "passport": {
                    "passport": [
                        "data-consistency"
                    ]
                },
                "picture-id": {
                    "mx_student-card": [
                        "data-consistency"
                    ]
                },
                "record": {
                    "mx_company-tax-report": [
                        "data-consistency"
                    ],
                    "mx_person-tax-report": [
                        "data-consistency"
                    ]
                }
            },
            "PE": {
                "foreign-id": {
                    "pe_foreign-card-2019": [
                        "manual-review"
                    ],
                    "pe_foreign-card-2022": [
                        "manual-review"
                    ]
                },
                "national-id": {
                    "pe_national-id-2005": [
                        "data-consistency",
                        "government-database-validation",
                        "photo-of-photo"
                    ],
                    "pe_national-id-2013": [
                        "data-consistency",
                        "government-database-validation",
                        "photo-of-photo"
                    ],
                    "pe_national-id-2020": [
                        "photo-of-photo",
                        "data-consistency",
                        "government-database-validation"
                    ]
                }
            }
        },
        "retry_ttl": 300
    },
    "electronic-signature": {
        "timeout": 900
    },
    "email-verification": {
        "timeout": 400,
        "allowed_retries": 1
    },
    "enterprise-data": {
        "timeout": 300
    },
    "face-recognition": {
        "timeout": 300,
        "enrollment_timeout": 300,
        "allowed_retries": 0,
        "use_manual_review": false,
        "threshold": 0.65,
        "face_validation_config": {
            "similarity": {
                "threshold": 0.65
            }
        },
        "retry_ttl": 300,
        "include_face_search": true
    },
    "face-search": {
        "timeout": 300,
        "enrollment_timeout": 300,
        "threshold": 0.98
    },
    "identity-questions": {
        "timeout": 300,
        "allowed_retries": 1,
        "threshold": 0.75
    },
    "phone-verification": {
        "timeout": 300,
        "allowed_retries": 2,
        "custom_name": "el proceso"
    },
    "voice-recognition": {
        "timeout": 300,
        "enrollment_timeout": 300
    }
}

            

Finally, in this response you should recognize the following changes:

  • For document-validation the timeout remains 300 (default), and allowed_retries is reset to 0 (default).
  • For "CO / national-id / co_national-id-2000" the validation methods we previously set will be reset to their defaults:

    - manual-review is not listed (disabled)
    - data-consistency is now listed (enabled)

Appendix 1. Supported Document Versions

The following tables show the supported and allowed Document Versions per Document Type and Country:

COLOMBIA (CO)

Document Type Document Version
driver-license co_driver-license-2013
foreign-id co_foreign-id
co_foreign-id-2025
identity-card co_identity-card-2008
co_identity-card-old
national-id co_national-id-2000
co_national-id-2020
passport passport
ppt co_ppt
pep co_pep
rut co_rut-person
co_rut-company
temporary-national-id co_contrasena

CHILE (CL)

Document Type Document Version
driver-license cl_driver-license
foreign-id cl_foreign-id-2013
cl_national-id-2013
cl_national-id-2025
cl_foreign-id-2025
national-id cl_national-id-2002
cl_foreign-id-2013
cl_national-id-2013
cl_national-id-2025
cl_foreign-id-2025
passport passport

MEXICO (MX)

Document Type Document Version
foreign-id mx_fm2
mx_fm3
invoice mx_invoice-cfe
mx_invoice-telmex
mx_invoice-total-play
national-id mx_ife-c
mx_ife-d
mx_ine-e
mx_ine-f
mx_ine-g
passport passport
mx_passport-2025
picture-id mx_student-card
record mx_company-tax-report
mx_person-tax-report

PERU (PE)

Document Type Document Version
national-id pe_national-id-2005
pe_national-id-2013
pe_national-id-2020
pe_national-id-2025
foreign-id pe_foreign-card-2019
pe_foreign-card-2022

SALVADOR (SV)

Document Type Document Version
national-id sv_national-id-2001
sv_national-id-2020
foreign-id sv_foreign-id-2021
passport passport

BRAZIL (BR)

Document Type Document Version
cnh br_driver-license
general-registration br_rg-2022

ALL (ALL)*

Document Type Document Version
passport passport
*Note: Country ALL is used for passport