To differentiate the document evaluation items, the warningTags
include the isDoc
key.
Example:
Copy {
"tag": "compromised_document",
"passed": true,
"isDoc": true,
"label": "Compromised Document"
}
All evaluation requests are asynchronous.
Therefore, the response to the document check request will not be completed in real time.
If you have set up the webhooks, your system will receive notifications automatically.
Otherwise, your system can poll Waldo's API until the evaluation is completed.
200: OK Document Upload Evaluation 400 Bad request 401: Unauthorized Invalid token or expired 403: Forbidden Service not authorized 403: Forbidden Inactive API key
Copy {
"requestId": "ayclpQyi6p",
"event": "evaluation",
"evaluation": {
"type": "document",
"status": "initiated"
},
"validation": {
"status": "APPROVED",
"kyc": "PASSED",
"fraudScore": 0.9,
"fraudFlag": false
},
"customerId": "66b9fc5fcfd24a0bb512fdeb",
"uri": "https://app.waldo.ai/customers/66b9fc5fcfd24a0bb512fdeb",
"errors": []
}
Copy {
"code": "MISSING_DATA",
"message": "Missing data: {field name}"
}
Copy {
"code": "INVALID_TOKEN",
"message": "Invalid token."
}
Copy {
"code": "NOT_AUTHORIZED",
"message": "You are not authorized to perform this action. Please contact support for assistance."
}
Copy {
"code": "API_KEY_REVOKED",
"message": "This API key has been revoked. Please visit the Waldo AI dashboard to review your API key."
}
Webhooks complete event notification
Copy {
"requestId": "ayclpQyi6p",
"event": "evaluation",
"evaluation": {
"type": "document",
"status": "completed"
},
"validation": {
"status": "APPROVED",
"kyc": "PASSED",
"fraudScore": 0.9,
"fraudFlag": false,
"warnings": 3,
"warningTags": [
{
"tag": "ssn",
"passed": true,
"label": "SSN Integrity"
},
{
"tag": "date_of_birth",
"passed": true,
"label": "Date of Birth Integrity"
},
{
"tag": "legal_and_regulatory_warnings",
"passed": true,
"label": "Legal and Regulatory Warnings"
},
{
"tag": "politically_exposed_person",
"passed": true,
"label": "Politically Exposed Person"
},
{
"tag": "sanction",
"passed": true,
"label": "Sanctions List"
},
{
"tag": "age_validation",
"passed": false,
"isDoc": true,
"label": "Age Validation"
},
{
"tag": "image_integrity",
"passed": false,
"isDoc": true,
"label": "Image Integrity"
},
{
"tag": "data_comparison",
"passed": true,
"isDoc": true,
"label": "Data Comparison"
},
{
"tag": "data_consistency",
"passed": true,
"isDoc": true,
"label": "Data Consistency"
},
{
"tag": "compromised_document",
"passed": true,
"isDoc": true,
"label": "Compromised Document"
},
{
"tag": "visual_authenticity",
"passed": false,
"isDoc": true,
"label": "Visual Authenticity"
},
{
"tag": "data_validation",
"passed": true,
"isDoc": true,
"label": "Data Validation"
}
],
"kycBreakdown": {
"identityBreakdown": {},
"watchlistBreakdown": {},
"documentBreakdown": {
"age_validation": {
"label": "Age Validation",
"passed": false,
"tags": {
"minimum_accepted_age": {
"label": "Minimum Accepted Age",
"passed": false
}
}
},
"image_integrity": {
"label": "Image Integrity",
"passed": false,
"tags": {
"colour_picture": {
"label": "Colour Picture",
"passed": false
},
"image_quality": {
"label": "Image Quality",
"passed": false
}
}
},
"visual_authenticity": {
"label": "Visual Authenticity",
"passed": false,
"tags": {
"digital_tampering": {
"label": "Digital Tampering",
"passed": false
},
"picture_face_integrity": {
"label": "Picture Face Integrity",
"passed": false
}
}
}
}
}
},
"customerId": "<customer-id>",
"uri": "https://app.waldo.ai/customers/<customer-id>",
"errors": []
}