{
message: "The phone or email you entered does not match your account"
}
metadata: We recommend passing in the metadata (userId,email,trackId...) as a good way for you to compare the data received correctly with the data on your end.
This returns the PDF file of a verification. The PDF file can only be obtained within 24 hours from the time of completing the IDV.
Depending on which Verification Agent you are using, there are two options for retrieving images and files from Dentity. Please ask Dentity support which method is applicable for your account before integrating this API.
Path Parameters
Name
Type
Description
verificationId*
String
Unique verification id
Query Parameters
Name
Type
Description
confidences
Boolean
Include Confidence Scores in the PDF. It's false by default
Headers
Name
Type
Description
x-api-key*
String
Domain’s API Key
{
"data":{
"pdf":"KQovQ3JlYXRvciAo/v8AdwBrAGg..." //PDF of the verification in base64
}
}
In this case you will likely need to know when the customer is verified so that you can approve their order. This can be done using the callbackUrl option, which will make a request from our system to yours when the verification status is updated, such as when the verification is verified or failed.
We will send a PUT request to the callback URL with the following data in JSON format.
Webhook type:
Type
Description
verification_status
Verification status change
email_delivery_status
Email delivery status change
sms_delivery_status
SMS delivery status change
verification_status will be sent when the status of verification changes
idvImages are not returned for all IDV providers. So contact us before you start using it.
{
"type": "verification_status",
"_id": "6333e7c08372cd0011d974aa",
"status": "verified",
"user": {
"firstName": "Jamie",
"lastName": "Johnston",
"fullName": "Jamie Johnston",
"email": "example@dentity.com",
"phoneNumber": "0987654321",
"dateOfBirth": "string",
"addressDetail": {
"street": "string",
"country": "string",
"city": "string",
"state": "string",
"zip": "string"
}
},
"metadata": {
"id": "sample_15fa31da59f69041641984405622"
},
// idvImages are not returned for all IDV providers. So contact us before you start using it.
"idvImages": [
{
"category": "drivers_license",
"images": {
"cropped_back": null,
"cropped_front": null,
"face": "https://documentary-assets-production-sandbox-cognito-us-west-2.s3.us-west-2.amazonaws.com/flwses_5YcEVAaJhGHbmP/1/r/rLsqCopvKH675Klm.jpeg?response-content-disposition=attachment%3B%20filename%3Dface.jpeg&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIATAVOPDHKTR4VVYBD%2F20230520%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230520T044527Z&X-Amz-Expires=60&X-Amz-SignedHeaders=host&X-Amz-Signature=187a35670d9fe3b7d175a44b41c01a6ff5649f391febc3ae381022e0ec070207",
"original_back": "https://documentary-assets-production-sandbox-cognito-us-west-2.s3.us-west-2.amazonaws.com/flwses_5YcEVAaJhGHbmP/1/back.jpeg?response-content-disposition=attachment%3B%20filename%3Doriginal_back.jpeg&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIATAVOPDHKTR4VVYBD%2F20230520%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230520T044527Z&X-Amz-Expires=60&X-Amz-SignedHeaders=host&X-Amz-Signature=206ed0b1c7dbfb436e515a0eba68649c7ceb866ba62bd9757747579dbe240a71",
"original_front": "https://documentary-assets-production-sandbox-cognito-us-west-2.s3.us-west-2.amazonaws.com/flwses_5YcEVAaJhGHbmP/1/front.jpeg?response-content-disposition=attachment%3B%20filename%3Doriginal_front.jpeg&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIATAVOPDHKTR4VVYBD%2F20230520%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230520T044527Z&X-Amz-Expires=60&X-Amz-SignedHeaders=host&X-Amz-Signature=aaf53c1b1694ab2de0474c4ea240f8d53569798a557d9bee4c527a3fba096262"
}
}
]
}
email_delivery_status will be sent when the email sending status change
Email delivery events include processed, dropped, delivered, deferred, and bounce.
Status
Description
processed
Message has been received and is ready to be delivered.
dropped
You may see the following drop reasons: Invalid SMTPAPI header, Spam Content (if Spam Checker app is enabled), Unsubscribed Address, Bounced Address, Spam Reporting Address, Invalid, Recipient List over Package Quota
delivered
Message has been successfully delivered to the receiving server.
deferred
Receiving server temporarily rejected the message.
bounce
Receiving server could not or would not accept mail to this recipient permanently. If a recipient has previously unsubscribed from your emails, the message is dropped.
blocked
Receiving server could not or would not accept the message temporarily. If a recipient has previously unsubscribed from your emails, the message is dropped.
sms_delivery_status Dentitywill send an update to that URL every time the status changes; Values include accepted, sending, sent, failed, and delivered.