KYC - Address Verification (Individuals)
Address History
Retrieves a user’s verified address verification history with pagination support.
GET
/
v2
/
api
/
addresses
/
history
Address History
curl --request GET \
--url https://api.youverify.co/v2/api/addresses/history \
--header 'token: <api-key>'import requests
url = "https://api.youverify.co/v2/api/addresses/history"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.youverify.co/v2/api/addresses/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.youverify.co/v2/api/addresses/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.youverify.co/v2/api/addresses/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.youverify.co/v2/api/addresses/history")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/addresses/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "Addresses retrieved successfully!",
"data": {
"docs": [
{
"candidate": {
"candidateId": "618e7f4b48fe5f0ee26d5667",
"firstName": "Famous",
"middleName": "Prior",
"lastName": "Ehichioya",
"photo": "https://youverify-api-bucket.nyc3.digitaloceanspaces.com/reports/live_photos/2021-11-12/photo_618e7f54be210c9056.jpg",
"email": "famous@youverify.co",
"mobile": "08030000000"
},
"address": {
"latlong": {
"lat": null,
"lon": null
},
"flatNumber": "1st floor",
"buildingName": "Sum house",
"buildingNumber": "350",
"subStreet": "Hughes avenue",
"street": "Borno way",
"landmark": "Police Station",
"state": "Lagos",
"city": "Yaba",
"country": "Nigeria",
"lga": "Lagos Mainland"
},
"referenceId": "618e7f5cb9c42",
"status": "pending",
"taskStatus": "PENDING",
"businessType": "admin",
"businessId": "615c2deb203b96532838418b",
"userId": "615c2deb203b96532838418c",
"type": "individual",
"createdAt": "2021-11-12T14:51:19.525Z",
"lastModifiedAt": "2021-11-12T14:51:19.525Z",
"verificationId": "618e7f5cb9c42",
"id": "618e7f6748fe5f0ee26d5668",
"user": {
"firstName": "Famous",
"lastName": "Ehichioya",
"middleName": "Prior",
"email": "test@gmail.com",
"mobile": "+2348036000000",
"countryCode": "NG",
"id": "615c2deb203b96532838418c"
}
}
],
"pagination": {
"totalDocs": 11,
"perPage": 1,
"totalPages": 11,
"currentPage": 1,
"serialNo": 1,
"hasPrevPage": false,
"hasNextPage": true,
"prevPage": null,
"nextPage": 2
}
},
"links": []
}{
"success": false,
"statusCode": 401,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 429,
"message": "Too many requests",
"name": "RateLimitError",
"data": {}
}{
"success": false,
"statusCode": 500,
"message": "Internal Server Error",
"name": "Error",
"data": {}
}⌘I
Address History
curl --request GET \
--url https://api.youverify.co/v2/api/addresses/history \
--header 'token: <api-key>'import requests
url = "https://api.youverify.co/v2/api/addresses/history"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.youverify.co/v2/api/addresses/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.youverify.co/v2/api/addresses/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.youverify.co/v2/api/addresses/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.youverify.co/v2/api/addresses/history")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/addresses/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "Addresses retrieved successfully!",
"data": {
"docs": [
{
"candidate": {
"candidateId": "618e7f4b48fe5f0ee26d5667",
"firstName": "Famous",
"middleName": "Prior",
"lastName": "Ehichioya",
"photo": "https://youverify-api-bucket.nyc3.digitaloceanspaces.com/reports/live_photos/2021-11-12/photo_618e7f54be210c9056.jpg",
"email": "famous@youverify.co",
"mobile": "08030000000"
},
"address": {
"latlong": {
"lat": null,
"lon": null
},
"flatNumber": "1st floor",
"buildingName": "Sum house",
"buildingNumber": "350",
"subStreet": "Hughes avenue",
"street": "Borno way",
"landmark": "Police Station",
"state": "Lagos",
"city": "Yaba",
"country": "Nigeria",
"lga": "Lagos Mainland"
},
"referenceId": "618e7f5cb9c42",
"status": "pending",
"taskStatus": "PENDING",
"businessType": "admin",
"businessId": "615c2deb203b96532838418b",
"userId": "615c2deb203b96532838418c",
"type": "individual",
"createdAt": "2021-11-12T14:51:19.525Z",
"lastModifiedAt": "2021-11-12T14:51:19.525Z",
"verificationId": "618e7f5cb9c42",
"id": "618e7f6748fe5f0ee26d5668",
"user": {
"firstName": "Famous",
"lastName": "Ehichioya",
"middleName": "Prior",
"email": "test@gmail.com",
"mobile": "+2348036000000",
"countryCode": "NG",
"id": "615c2deb203b96532838418c"
}
}
],
"pagination": {
"totalDocs": 11,
"perPage": 1,
"totalPages": 11,
"currentPage": 1,
"serialNo": 1,
"hasPrevPage": false,
"hasNextPage": true,
"prevPage": null,
"nextPage": 2
}
},
"links": []
}{
"success": false,
"statusCode": 401,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 429,
"message": "Too many requests",
"name": "RateLimitError",
"data": {}
}{
"success": false,
"statusCode": 500,
"message": "Internal Server Error",
"name": "Error",
"data": {}
}