After creating a Web Flow, you will need a Web Integration Token to link the Flow with an URL and perform the necessary validations. Follow these steps to create a Web Integration Token in Postman or any other API client.
In order to ease the process, you can see this Postman collection:
Add the following params in the request body with their respective values
key_name: api-key user name
key_type: web
grant: digital-identity
api_key_version: 1
country: The country where the validation is to be performed. Allowed: ALL.
redirect_url: URL where the user is to be redirected once the validation is completed
flow_id: from flow creation
account_id: account ID linked with this validation. Use this ID to trace the validations performed by the account later on.
To see how to generate the account_id, please visit Create Account to link processes by user guide.
phone (optional): The user phone number can be set if you already have it. The format is + country_code phone_number e.g.: +573101234567
Note: If you wish to include additional information in the identity validation process, you can do so by registering the inputs using the following structure start_variables.metadata., followed by the variable name and its corresponding result. Example: start_variables.metadata.name = juan.
Send the request and copy the api_key from the response.
As last step use https://identity.truora.com/?token=<api_key> and set the api_key to perform the validation process and sharing the link.
Note: The Web Integration Tokens have a 2 hours shelf life by default
The process_id is a unique identifier assigned to each <api key> created in Truora, and it appears at the end of the URL when the flow is started. It is important to keep track of this process_id, as it is required to check the status of the process in the endpoint shown in the next step. Additionally, the API key can be verified on the https://jwt.io/ website to obtain information about the process.
The process_status can either be success or failure at the end. In the meantime, it will be pending. Success occurs when the document validation was successfully. Failure can occur due to an internal error, a time out, or if the document validation is declined.
Note Whenever a validation fails due to inconsistencies in the validation process,a declined reason to indicate the specific reason for the failure Here’s a list of declined reasons.