Verify User with Photo ID and Selfie Image
curl --request POST \
--url https://api.dojah.io/api/v1/kyc/photoid/verify \
--header 'AppId: <appid>' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"photoid_image": "<string>",
"selfie_image": "<string>",
"last_name": "<string>",
"first_name": "<string>"
}
'import requests
url = "https://api.dojah.io/api/v1/kyc/photoid/verify"
payload = {
"photoid_image": "<string>",
"selfie_image": "<string>",
"last_name": "<string>",
"first_name": "<string>"
}
headers = {
"AppId": "<appid>",
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
AppId: '<appid>',
Authorization: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
photoid_image: '<string>',
selfie_image: '<string>',
last_name: '<string>',
first_name: '<string>'
})
};
fetch('https://api.dojah.io/api/v1/kyc/photoid/verify', 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.dojah.io/api/v1/kyc/photoid/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'photoid_image' => '<string>',
'selfie_image' => '<string>',
'last_name' => '<string>',
'first_name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"AppId: <appid>",
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dojah.io/api/v1/kyc/photoid/verify"
payload := strings.NewReader("{\n \"photoid_image\": \"<string>\",\n \"selfie_image\": \"<string>\",\n \"last_name\": \"<string>\",\n \"first_name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("AppId", "<appid>")
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dojah.io/api/v1/kyc/photoid/verify")
.header("AppId", "<appid>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"photoid_image\": \"<string>\",\n \"selfie_image\": \"<string>\",\n \"last_name\": \"<string>\",\n \"first_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dojah.io/api/v1/kyc/photoid/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["AppId"] = '<appid>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"photoid_image\": \"<string>\",\n \"selfie_image\": \"<string>\",\n \"last_name\": \"<string>\",\n \"first_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"entity": {
"selfie": {
"confidence_value": 0,
"match": false,
"photoId_image_blurry": false,
"selfie_image_blurry": false,
"selfie_glare": true,
"photoId_glare": true,
"age_range": "26-40 Years",
"sunglasses": false,
"card_type": "VOTER'S CARD",
"last_name": {
"match": true,
"last_name": "",
"confidence_value": 100
},
"first_name": {
"match": true,
"first_name": "",
"confidence_value": 100
}
}
}
}
{
"error": "Invalid request parameters"
}
{
"error": "App Couldn't be Validated"
}
Verify User with Photo ID and Selfie Image
An endpoint that allows you to verify an individual using their selfie image and NIN
POST
/
api
/
v1
/
kyc
/
photoid
/
verify
Verify User with Photo ID and Selfie Image
curl --request POST \
--url https://api.dojah.io/api/v1/kyc/photoid/verify \
--header 'AppId: <appid>' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"photoid_image": "<string>",
"selfie_image": "<string>",
"last_name": "<string>",
"first_name": "<string>"
}
'import requests
url = "https://api.dojah.io/api/v1/kyc/photoid/verify"
payload = {
"photoid_image": "<string>",
"selfie_image": "<string>",
"last_name": "<string>",
"first_name": "<string>"
}
headers = {
"AppId": "<appid>",
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
AppId: '<appid>',
Authorization: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
photoid_image: '<string>',
selfie_image: '<string>',
last_name: '<string>',
first_name: '<string>'
})
};
fetch('https://api.dojah.io/api/v1/kyc/photoid/verify', 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.dojah.io/api/v1/kyc/photoid/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'photoid_image' => '<string>',
'selfie_image' => '<string>',
'last_name' => '<string>',
'first_name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"AppId: <appid>",
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dojah.io/api/v1/kyc/photoid/verify"
payload := strings.NewReader("{\n \"photoid_image\": \"<string>\",\n \"selfie_image\": \"<string>\",\n \"last_name\": \"<string>\",\n \"first_name\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("AppId", "<appid>")
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dojah.io/api/v1/kyc/photoid/verify")
.header("AppId", "<appid>")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"photoid_image\": \"<string>\",\n \"selfie_image\": \"<string>\",\n \"last_name\": \"<string>\",\n \"first_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dojah.io/api/v1/kyc/photoid/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["AppId"] = '<appid>'
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"photoid_image\": \"<string>\",\n \"selfie_image\": \"<string>\",\n \"last_name\": \"<string>\",\n \"first_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"entity": {
"selfie": {
"confidence_value": 0,
"match": false,
"photoId_image_blurry": false,
"selfie_image_blurry": false,
"selfie_glare": true,
"photoId_glare": true,
"age_range": "26-40 Years",
"sunglasses": false,
"card_type": "VOTER'S CARD",
"last_name": {
"match": true,
"last_name": "",
"confidence_value": 100
},
"first_name": {
"match": true,
"first_name": "",
"confidence_value": 100
}
}
}
}
{
"error": "Invalid request parameters"
}
{
"error": "App Couldn't be Validated"
}
Application ID from dashboard
BODY PARAMS
Photo image in Base 64 (Passport, NIN, Voter’s Card, Driver’s License)
Base64 value of the selfie image (NB: Kindly truncate data:image/jpeg;base64, from the selfie_image object).
RESPONSES
json
{
"entity": {
"selfie": {
"confidence_value": 0,
"match": false,
"photoId_image_blurry": false,
"selfie_image_blurry": false,
"selfie_glare": true,
"photoId_glare": true,
"age_range": "26-40 Years",
"sunglasses": false,
"card_type": "VOTER'S CARD",
"last_name": {
"match": true,
"last_name": "",
"confidence_value": 100
},
"first_name": {
"match": true,
"first_name": "",
"confidence_value": 100
}
}
}
}
{
"error": "Invalid request parameters"
}
{
"error": "App Couldn't be Validated"
}
Was this page helpful?
⌘I