KYC - General
Identity History
Allows users to retrieve their verified identity verification history, with pagination.
GET
/
v2
/
api
/
identity
/
history
Identity History
curl --request GET \
--url https://api.youverify.co/v2/api/identity/history \
--header 'token: <api-key>'import requests
url = "https://api.youverify.co/v2/api/identity/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/identity/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/identity/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/identity/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/identity/history")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/identity/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": "All identities retrieved successfully!",
"data": {
"docs": [
{
"address": {
"town": null,
"lga": null,
"state": null,
"addressLine": null
},
"parentId": null,
"status": "found",
"dataValidation": false,
"selfieValidation": false,
"firstName": null,
"middleName": null,
"lastName": null,
"expiredDate": null,
"image": null,
"signature": null,
"enrollmentBranch": null,
"enrollmentInstitution": null,
"mobile": null,
"email": null,
"birthState": null,
"nokState": null,
"religion": null,
"birthLGA": null,
"birthCountry": null,
"gender": "",
"stateOfIssuance": null,
"issuedAt": null,
"issuedDate": null,
"dateOfBirth": null,
"reason": null,
"notifyWhenIdExpire": false,
"phoneDetails": [
{
"fullName": "JOHN DOE",
"dateOfBirth": "1960-05-24"
},
{
"fullName": "JOHN MICHAEL DOE",
"dateOfBirth": "1980-06-03"
}
],
"isConsent": true,
"idNumber": "08000000000",
"businessId": "60c895fe05f49025c02cf203",
"type": "phone",
"requestedAt": "2021-08-02T15:03:03.398Z",
"requestedById": "60bffbb0e61d95bd9c3e1a9a",
"country": "NG",
"createdAt": "2021-08-02T15:03:03.558Z",
"lastModifiedAt": "2021-08-02T15:03:03.558Z",
"id": "61080927168c5f9075980268",
"requestedBy": {
"firstName": "John",
"lastName": "Doe",
"middleName": "Michael",
"email": "john.doe@gmail.com",
"mobile": "+2348000000000",
"countryCode": "NG",
"id": "60bffbb0e61d95bd9c3e1a9a"
}
}
],
"pagination": {
"totalDocs": 67,
"perPage": 1,
"totalPages": 67,
"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
Identity History
curl --request GET \
--url https://api.youverify.co/v2/api/identity/history \
--header 'token: <api-key>'import requests
url = "https://api.youverify.co/v2/api/identity/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/identity/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/identity/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/identity/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/identity/history")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/identity/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": "All identities retrieved successfully!",
"data": {
"docs": [
{
"address": {
"town": null,
"lga": null,
"state": null,
"addressLine": null
},
"parentId": null,
"status": "found",
"dataValidation": false,
"selfieValidation": false,
"firstName": null,
"middleName": null,
"lastName": null,
"expiredDate": null,
"image": null,
"signature": null,
"enrollmentBranch": null,
"enrollmentInstitution": null,
"mobile": null,
"email": null,
"birthState": null,
"nokState": null,
"religion": null,
"birthLGA": null,
"birthCountry": null,
"gender": "",
"stateOfIssuance": null,
"issuedAt": null,
"issuedDate": null,
"dateOfBirth": null,
"reason": null,
"notifyWhenIdExpire": false,
"phoneDetails": [
{
"fullName": "JOHN DOE",
"dateOfBirth": "1960-05-24"
},
{
"fullName": "JOHN MICHAEL DOE",
"dateOfBirth": "1980-06-03"
}
],
"isConsent": true,
"idNumber": "08000000000",
"businessId": "60c895fe05f49025c02cf203",
"type": "phone",
"requestedAt": "2021-08-02T15:03:03.398Z",
"requestedById": "60bffbb0e61d95bd9c3e1a9a",
"country": "NG",
"createdAt": "2021-08-02T15:03:03.558Z",
"lastModifiedAt": "2021-08-02T15:03:03.558Z",
"id": "61080927168c5f9075980268",
"requestedBy": {
"firstName": "John",
"lastName": "Doe",
"middleName": "Michael",
"email": "john.doe@gmail.com",
"mobile": "+2348000000000",
"countryCode": "NG",
"id": "60bffbb0e61d95bd9c3e1a9a"
}
}
],
"pagination": {
"totalDocs": 67,
"perPage": 1,
"totalPages": 67,
"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": {}
}