Face authentication
Face authentication webhooks are used to communicate authentication to the client-server.
Setting up the webhook
To configure the default webhook URL of a query template, navigate to the Query Templates menu on the CAF Trust Platform and enter the desired template and edit the Webhook field.
Each Query Template created in the CAF Trust Platform will need a call-back URL assigned for the webhooks. This URL can be different across active templates or the same.
Webhook Tester and Request Bin are useful tools for receiving webhook calls. You can use them to generate a webhook URL and use that URL for any Postman requests that require you to specify a webhook URL, then use the sites to inspect the content of any webhooks they received.
Webhook notifications
You will receive a notification via webhook on the following event:
Face authentication from web onboarding
You will be notified each time face authentication is attempted, whether it is true
or false
.
Webhook response parameters
Name | Type | Description |
---|---|---|
tenant* | String | Unique identifier of the tenant. |
onboardingId* | String | Unique ID of the onboarding process. |
type* | String | Type of webhook. |
personId* | String | Unique ID of the person undergoing authentication. (CPF) |
attemptId* | String | Unique ID of the authentication attempt. |
isMatch* | Boolean | Indicates whether there was a successful match between the face authentication and the person's data. |
date* | String | Date and time when the authentication occurred. |
onboardingToken* | String | Token from the onboarding link. |
Example webhook post:
Last updated