Search…
Webhooks
Use webhooks to get notified about reports that happen in your YVOS account.

What is a Webhook?

At Youverify, webhooks are a very important part of our reporting process. We use webhooks to communicate with different services. These are our identity and address services.
Webhooks get pushed when the address or identity has been completed.
Please follow the following steps to have access to it;
▪ Set your webhook from the YVOS web portal(If already set, ignore the next step).
▪ Login to the YVOS portal-->Go to settings -> API KEY/Webhook. Scroll to " Webhook" and set your HTTP callback URL.

Verifying Events

It is of great importance to verify that an event originated from Youverify to avoid delivering value based on a fictitious event. Validate the Signature - Valid events are raised with a header x-youverify-signature which is essentially a HMAC SHA512 signature of the event payload signed using your secret key.

Status Reports

Pending:

The status report “PENDING” for our Identity services is displayed when our upstream identity providers are unavailable.
This status enables us to manage the upstream provider's downtime. To get the completed result for verification with a “PENDING” status, you will have to listen to the webhook to retrieve the completed verification and the corresponding response. The sample below shows when an identity verification request with a “PENDING” status.
PENDING REQUEST IDENTITY RESPONSE PAYLOAD
1
{
2
"data": {
3
"id": "reports_7cf70262-0e6d-47fd-9792-9da167db2c6a",
4
"reference_id": "5c9260b8f2e11",
5
"candidate": {
6
"id": "c3cc9392-ee0d-4c8d-b78b-599dbbaba238",
7
"reference_id": "YV5c9260b7ac780",
8
"name": "John Doe",
9
"first_name": "John",
10
"last_name": "Doe",
11
"middle_name": "",
12
"email": null,
13
"mobile": null
14
},
15
"status": "PENDING",
16
"reason": "Pending Request",
17
"identity_number": "AAA26887AA01",
18
"package": "identity",
19
"package_name": "Identity",
20
"type": "frsc | nin | bvn | ibvn | pvc",
21
"task_created_by": "Youverify Devops",
22
"end_time": "2019-03-20 16:48:09"
23
},
Copied!

VERIFIED/NOT VERIFIED:

The information below is sample post data to your registered webhook for identity verification, for a verified and not verified report.
Identity response:
1
{
2
'data': {
3
'id' : 'reports_424380ae-5e6a-425b-abcb-24e082e4a7a5',
4
'status' : 'NOT VERIFIED | VERIFIED',
5
'task_status' : 'NOT VERIFIED ' | 'VERIFIED',
6
'reason' : 'Invalid application details.',
7
'package_name' : 'Identity',
8
'candidate_id' : 3388,
9
'package' : 'identity',
10
'identity_type' : 'frsc | nin | bvn | ibvn | pvc',
11
'identity_number' : 22122122221
12
}
13
};
Copied!
ADDRESS RESPONSE PAYLOAD
Address Completed Payload(individual) v2
Address Completed Payload(Guarantor) v2
Address Completed Payload(business) v2
1
{
2
"event": "address.completed",
3
"apiVersion": "v2",
4
"data": {
5
"candidate": {
6
"candidateId": "620861ac0972f71ec8caf07d",
7
"firstName": "Famous",
8
"middleName": "Prior",
9
"lastName": "Ehichioya",
10
"photo": "https://youverify-api-bucket.nyc3.digitaloceanspaces.com/reports/live_photos/2022-02-13/photo_620845a0edc7b3471.jpg",
11
"email": "[email protected]",
12
"mobile": "08030000000"
13
},
14
"agent": {
15
"firstName": "Famous",
16
"middleName": null,
17
"lastName": "Ehichioya",
18
"signature": "data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQE",
19
"photo": "https://api.staging.youverify.co/uploads/agents/images/c0806491bf8e74bf1fc06d9e2949408e6f957249.jpg"
20
},
21
"address": {
22
"latlong": {
23
"lat": "6.5009833",
24
"lon": "3.376612"
25
},
26
"flatNumber": "1st floor",
27
"buildingName": "Sum house",
28
"buildingNumber": "350",
29
"subStreet": "Hughes avenue",
30
"street": "Borno way",
31
"landmark": "Police Station",
32
"state": "Lagos",
33
"city": "Yaba",
34
"country": "Nigeria",
35
"lga": "Lagos Mainland"
36
},
37
"referenceId": "620865a2cae6f",
38
"parentId": null,
39
"status": "awaiting_qa",
40
"taskStatus": "VERIFIED",
41
"subjectConsent": "true",
42
"startDate": "2022-02-13T00:00:00.000Z",
43
"endDate": "2022-02-13T00:00:00.000Z",
44
"submittedAt": "2022-02-13T02:20:03.000Z",
45
"executionDate": "2022-02-13T02:20:03.000Z",
46
"completedAt": "2022-02-13T02:20:03.000Z",
47
"acceptedAt": "2022-01-06T07:47:27.000Z",
48
"revalidationDate": "2022-05-13T00:00:00.000Z",
49
"notes": [
50
{
51
"createdAt": "2022-02-13 03:20:02",
52
"note": "Candidate resides at Flat Number 1st Floor, Sum House, 350, Sub Street Hughes Avenue, Borno Way Street, Police Station, Yaba, Lagos, Nigeria, . It is a Terraced house painted black with a yellow gate. Address and candidate was confirmed by the Nearby retailer"
53
}
54
],
55
"isFlagged": true,
56
"agentSubmittedLongitude": "3.3808834",
57
"agentSubmittedLatitude": "6.490806",
58
"reportGeolocationUrl": "https://www.google.com/maps/search/?api=1&query=6.490806, 3.3808834",
59
"mapAddressUrl": "https://www.google.com/maps/search/?api=1&query=350+Borno+Way%2C+Yaba+%2C+Lagos%2C+Nigeria",
60
"submissionDistanceInMeters": 1226,
61
"reasons": null,
62
"signature": "data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQE",
63
"images": [
64
{
65
"filePath": "https://youverify-api-bucket.nyc3.digitaloceanspaces.com/reports/files/images/resize/2022-02-13/1644718659252.jpg",
66
"fileType": "image/jpg",
67
"height": 300,
68
"width": 400
69
}
70
],
71
"buildingType": "Terraced house",
72
"buildingColor": "black",
73
"gatePresent": true,
74
"gateColor": "yellow",
75
"availabilityConfirmedBy": "Nearby retailer",
76
"closestLandmark": "House",
77
"additionalInfo": null,
78
"reportAgentAccess": null,
79
"incidentReport": null,
80
"description": "Verify the candidate",
81
"reportId": "reports_4768505a-f96b-42f0-a53e-310aada37a81",
82
"downloadUrl": "https://api.staging.youverify.co/v1/reports/reports_4768505a-f961-42f0-a53e-310aada37a81/download/pdf",
83
"apiVersion": "v2",
84
"businessType": "admin",
85
"businessId": "61d880f1e8e15aaf24558f1a",
86
"userId": "61d880f2e8e15aaf24558f9b",
87
"type": "individual",
88
"metadata": {},
89
"createdAt": "2022-02-13T01:58:07.159Z",
90
"_createdAt": "2022-02-13T02:58:077+01:00",
91
"verificationId": "620865a2cae6f",
92
"id": "620865980972f71ec8caf080"
93
}
94
}
Copied!
1
{
2
"event": "address.completed",
3
"apiVersion": "v2",
4
"data": {
5
"candidate": {
6
"candidateId": "61d88528e8e15aaf249fe191",
7
"firstName": "Famous",
8
"middleName": null,
9
"lastName": "Ehichioya",
10
"photo": "https://cdn.youverify.co/1640838946220-r6fvnt3g0YDgxYikH9e1y.png",
11
"email": "[email protected]",
12
"mobile": "08129xxxxxx"
13
},
14
"guarantor": {
15
"firstName": "Peter",
16
"middleName": null,
17
"lastName": "James",
18
"photo": null,
19
"email": "[email protected]",
20
"mobile": "080xxxxxxxx"
21
},
22
"agent": {
23
"firstName": null,
24
"middleName": null,
25
"lastName": null,
26
"signature": null,
27
"photo": null
28
},
29
"address": {
30
"latlong": {
31
"lat": "0",
32
"lon": "0"
33
},
34
"flatNumber": null,
35
"buildingName": null,
36
"buildingNumber": null,
37
"subStreet": null,
38
"street": null,
39
"landmark": null,
40
"state": null,
41
"city": null,
42
"country": "Nigeria",
43
"lga": null
44
},
45
"referenceId": "5b17c55a24328",
46
"parentId": null,
47
"status": "completed",
48
"taskStatus": "VERIFIED",
49
"subjectConsent": "true",
50
"startDate": "2018-06-06T00:00:00.000Z",
51
"endDate": "2018-06-06T00:00:00.000Z",
52
"submittedAt": "2018-06-06T13:28:26.000Z",
53
"executionDate": "2018-06-06T13:28:26.000Z",
54
"completedAt": null,
55
"acceptedAt": null,
56
"revalidationDate": null,
57
"notes": [
58
{
59
"note": "He leaves in 3rd room by the left, bungalow painted green but fading already, there is a mosque beside the house, a female tailor who is a tenant sows females cloths at the front.",
60
"createdAt": "2018-06-07T15:50:33.000Z"
61
}
62
],
63
"isFlagged": false,
64
"agentSubmittedLongitude": "3.3196546",
65
"agentSubmittedLatitude": "6.6053929",
66
"reportGeolocationUrl": null,
67
"mapAddressUrl": null,
68
"submissionDistanceInMeters": null,
69
"reasons": null,
70
"signature": null,
71
"images": [],
72
"buildingType": null,
73
"buildingColor": null,
74
"gatePresent": false,
75
"gateColor": null,
76
"availabilityConfirmedBy": null,
77
"closestLandmark": null,
78
"additionalInfo": null,
79
"reportAgentAccess": null,
80
"incidentReport": null,
81
"description": "",
82
"reportId": "0d501eec-5f4d-4e14-a05b-173ce0dbb31e",
83
"downloadUrl": "https://api.youverify.co/v1/reports/0d501eec-5f4d-4e12-a05b-173ce0dbb31e/download/pdf",
84
"apiVersion": "v2",
85
"mysqlId": 4621,
86
"businessId": "61d880f1e8e15aaf24558f27",
87
"businessType": "business",
88
"userId": "61d880f2e8e15aaf24558f9c",
89
"type": "guarantor",
90
"createdAt": "2018-06-06T13:28:26.000Z",
91
"lastModifiedAt": "2022-01-07T18:28:48.374Z",
92
"metadata": {},
93
"_createdAt": "2018-06-06T14:28:2626+01:00",
94
"_lastModifiedAt": "2022-01-07T19:28:4848+01:00",
95
"verificationId": "5b17c55a24328",
96
"id": "61d88619e8e15aaf24a76d0f",
97
"user": {
98
"firstName": "Famous",
99
"lastName": "Ehichioya",
100
"middleName": "",
101
"email": "[email protected]",
102
"mobile": "23490xxxxxxx",
103
"countryCode": "NGN",
104
"id": "61d880f2e8e15aaf24558f9c"
105
}
106
}
107
}
Copied!
1
{
2
"event": "address.completed",
3
"apiVersion": "v2",
4
"data": {
5
"candidate": {
6
"candidateId": "61d8853be8e15aaf24a1759f",
7
"firstName": "Kayode",
8
"middleName": "",
9
"lastName": "Oge",
10
"photo": "https://cdn.youverify.co/1640838946220-r6fvnt3g0YDgxYikH9e1y.png",
11
"email": "[email protected]",
12
"mobile": "08068xxxxxx"
13
},
14
"business": {
15
"name": "Conserveria Africana Limited(GBFOODS)",
16
"registrationNumber": "510302",
17
"email": "[email protected]",
18
"mobile": "08026xxxxxxx"
19
},
20
"agent": {
21
"firstName": "Fred",
22
"middleName": null,
23
"lastName": "Momoh",
24
"signature": "data:image/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAVQAAAGjCAYAAABzBe0",
25
"photo": "https://api.youverify.co/uploads/agents/images/f3edc8af968af72ca19724c0ba8d91446a8a0220.jpg"
26
},
27
"address": {
28
"latlong": {
29
"lat": "6.54303",
30
"lon": "3.3931607"
31
},
32
"flatNumber": "",
33
"buildingName": "",
34
"buildingNumber": "5A",
35
"subStreet": "",
36
"street": "14 hughes avenue",
37
"landmark": "Bukka Hut",
38
"state": "lagos",
39
"city": "Lagos",
40
"country": "Nigeria",
41
"lga": null
42
},
43
"referenceId": "5db0385991396",
44
"parentId": null,
45
"status": "completed",
46
"taskStatus": "VERIFIED",
47
"subjectConsent": "true",
48
"startDate": "2019-10-23T00:00:00.000Z",
49
"endDate": "2019-10-23T00:00:00.000Z",
50
"submittedAt": "2019-10-23T14:45:01.000Z",
51
"executionDate": "2019-10-23T14:45:01.000Z",
52
"completedAt": "2019-10-23T14:45:01.000Z",
53
"acceptedAt": "2019-10-23T12:24:19.000Z",
54
"revalidationDate": "2020-01-23T00:00:00.000Z",
55
"notes": [
56
{
57
"createdAt": "2019-10-23 15:44:34",
58
"note": "Verified"
59
}
60
],
61
"isFlagged": false,
62
"agentSubmittedLongitude": "3.3929242",
63
"agentSubmittedLatitude": "6.5416855",
64
"reportGeolocationUrl": "https://www.google.com/maps/search/?api=1&query=6.5416855, 3.3929242",
65
"mapAddressUrl": "https://www.google.com/maps/search/?api=1&query=5a+Olu+Osunkeye+Crescent+Gbagada%2C+Lagos+%2C+Lagos%2C+Nigeria",
66
"submissionDistanceInMeters": 151,
67
"reasons": null,
68
"signature": "data:image/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAVQAAAGjCAYAAABzBe0UAAAc4Ul",
69
"images": [
70
{
71
"filePath": "https://youverify-api-bucket.nyc3.digitaloceanspaces.com/reports/files/images/resize/2019-10-23/1571838290509_91527.jpg",
72
"fileType": "image/jpeg",
73
"height": 300,
74
"width": 400
75
}
76
],
77
"buildingType": null,
78
"buildingColor": null,
79
"gatePresent": false,
80
"gateColor": null,
81
"availabilityConfirmedBy": null,
82
"closestLandmark": null,
83
"additionalInfo": null,
84
"reportAgentAccess": null,
85
"incidentReport": null,
86
"description": "",
87
"reportId": "reports_6e002d9a-3f07-4978-8ef4-99510f8d4fdd",
88
"downloadUrl": "https://api.youverify.co/v1/reports/reports_6e002d9a-3f07-4978-8ef1-99510f8d4fdd/download/pdf",
89
"apiVersion": "v2",
90
"mysqlId": 123771,
91
"businessId": "61d880efe8e15aaf245582eb",
92
"businessType": "business",
93
"userId": "61d880f2e8e15aaf245591f8",
94
"type": "business",
95
"createdAt": "2019-10-23T13:24:09.000Z",
96
"lastModifiedAt": "2022-02-24T00:58:41.722Z",
97
"metadata": {},
98
"_createdAt": "2019-10-23T14:24:099+01:00",
99
"_lastModifiedAt": "2022-02-24T01:58:4141+01:00",
100
"verificationId": "5db0385991396",
101
"id": "61d88618e8e15aaf24a7624b",
102
"user": {
103
"firstName": "Famous",
104
"lastName": "Ehichioya",
105
"middleName": "",
106
"email": "[email protected]",
107
"mobile": "2348036xxxxxx",
108
"countryCode": "NGN",
109
"id": "61d880f2e8e15aaf245591f8"
110
}
111
},
112
}
Copied!
NB: Please note that the above symbol " | " is used to differentiate the possible outcomes.