Fetch DigiLocker profile verification data
curl --request GET \
--url https://bgv.konnectnxt.com/api/client/fetch-profile-data \
--header 'Authorization: Bearer <token>'import requests
url = "https://bgv.konnectnxt.com/api/client/fetch-profile-data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://bgv.konnectnxt.com/api/client/fetch-profile-data', 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://bgv.konnectnxt.com/api/client/fetch-profile-data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://bgv.konnectnxt.com/api/client/fetch-profile-data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://bgv.konnectnxt.com/api/client/fetch-profile-data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://bgv.konnectnxt.com/api/client/fetch-profile-data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"code": 200,
"message": "Data fetched successfully",
"data": {
"name": "John Doe",
"email": "john.doe@example.com",
"phone_number": "9876543210",
"dob": "NA",
"gender": "NA",
"fetched_records": {
"pan_adv_check": {
"dob": "1990-05-15",
"name": "JOHN DOE",
"gender": "Male",
"pan_number": "ABCDE1234F",
"marital_status": "Single",
"address": {
"pin": "400001",
"house": "Flat 101",
"line1": "Building Name",
"line2": "Street Name",
"state": "Maharashtra",
"country": "India",
"district": "Mumbai",
"landmark": "Near Park",
"locality": "Andheri",
"addr_type": "Residential",
"village_town_city": "Mumbai"
}
},
"aadhaar_adv_check": {
"dob": "1990-05-15",
"name": "JOHN DOE",
"gender": "Male",
"aadhaar_number": "xxxxxxxx8300",
"profile_picture": "https://example.com/photo.jpg",
"address": {
"state": "Maharashtra",
"street": "Main Street",
"country": "India",
"pincode": "400001",
"district": "Mumbai",
"landmark": "Near Railway Station",
"location": "Andheri West",
"postoffice": "Andheri",
"village_town_city": "Mumbai"
}
}
}
}
}DigiLocker
Fetch DigiLocker Data
Fetches DigiLocker verification data including PAN and Aadhaar records based on the documents requested during profile creation
GET
/
client
/
fetch-profile-data
Fetch DigiLocker profile verification data
curl --request GET \
--url https://bgv.konnectnxt.com/api/client/fetch-profile-data \
--header 'Authorization: Bearer <token>'import requests
url = "https://bgv.konnectnxt.com/api/client/fetch-profile-data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://bgv.konnectnxt.com/api/client/fetch-profile-data', 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://bgv.konnectnxt.com/api/client/fetch-profile-data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://bgv.konnectnxt.com/api/client/fetch-profile-data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://bgv.konnectnxt.com/api/client/fetch-profile-data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://bgv.konnectnxt.com/api/client/fetch-profile-data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"code": 200,
"message": "Data fetched successfully",
"data": {
"name": "John Doe",
"email": "john.doe@example.com",
"phone_number": "9876543210",
"dob": "NA",
"gender": "NA",
"fetched_records": {
"pan_adv_check": {
"dob": "1990-05-15",
"name": "JOHN DOE",
"gender": "Male",
"pan_number": "ABCDE1234F",
"marital_status": "Single",
"address": {
"pin": "400001",
"house": "Flat 101",
"line1": "Building Name",
"line2": "Street Name",
"state": "Maharashtra",
"country": "India",
"district": "Mumbai",
"landmark": "Near Park",
"locality": "Andheri",
"addr_type": "Residential",
"village_town_city": "Mumbai"
}
},
"aadhaar_adv_check": {
"dob": "1990-05-15",
"name": "JOHN DOE",
"gender": "Male",
"aadhaar_number": "xxxxxxxx8300",
"profile_picture": "https://example.com/photo.jpg",
"address": {
"state": "Maharashtra",
"street": "Main Street",
"country": "India",
"pincode": "400001",
"district": "Mumbai",
"landmark": "Near Railway Station",
"location": "Andheri West",
"postoffice": "Andheri",
"village_town_city": "Mumbai"
}
}
}
}
}Response Structure
The API returns verification data based on the documents that were requested during the DigiLocker profile creation. Thefetched_records object will contain only the verification types that were initiated.
Conditional Response Fields
| Scenario | Response Contains | Description |
|---|---|---|
| Aadhaar Only | aadhaar_adv_check | Only Aadhaar verification data is returned if only Aadhaar was requested |
| PAN Only | pan_adv_check | Only PAN verification data is returned if only PAN was requested |
| Both Documents | pan_adv_check + aadhaar_adv_check | Both verification records are returned if both documents were requested |
PAN Verification Fields (pan_adv_check)
| Field | Type | Description |
|---|---|---|
dob | string | Date of birth from PAN records |
name | string | Full name as per PAN |
gender | string | Gender (Male/Female) |
pan_number | string | PAN number (format: ABCDE1234F) |
marital_status | string | Marital status of the PAN holder |
address | object | Complete address object with pin, house, line1, line2, state, country, district, landmark, locality, addr_type, village_town_city |
Aadhaar Verification Fields (aadhaar_adv_check)
| Field | Type | Description |
|---|---|---|
dob | string | Date of birth from Aadhaar |
name | string | Full name as per Aadhaar |
gender | string | Gender (Male/Female) |
aadhaar_number | string | Masked Aadhaar number (format: xxxxxxxx1234) |
profile_picture | string | URL to profile photo from Aadhaar |
address | object | Complete address object with state, street, country, pincode, district, landmark, location, postoffice, village_town_city |
Authorizations
API key issued by KonnectNXT. Pass as Authorization: Bearer <your_api_key>.
Query Parameters
UUID of the DigiLocker BGV case
Was this page helpful?
⌘I

