Configuring validators
Validators can be tweaked by using the config endpoint. Follow these steps to set up your validator configuration:
- Create a PUT request to the following url: https://api.validations.truora.com/v1/config.
- Create a Header named
Truora-API-Key
and set its value to your API key. - Create a Header named
Content-Type
and set its value toapplication/json
. - Add a field named
validator
to the Body and set its value to the validation you wish to configure: eitheridentity-questions
,face-recognition
,email-verification
,phone-verification
, ordocument-validation
. - Add configuration fields according to the following table:
Validator | Fields |
---|---|
Document validation |
|
Email validation |
|
Face recognition |
|
Voice recognition |
|
Phone validation |
|
Security identity questions |
|
For more information on these fields, check the API reference.
- Send the request. The API returns a map of the configuration for all validations.