Download File
curl --request POST \
--url https://production.deepvue.tech/v1/kyc/digilocker/file \
--header 'Content-Type: application/json' \
--header 'client-id: <api-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"consent": "<string>",
"purpose": "<string>",
"initial_deepvue_transaction_id": "<string>",
"uri": "<string>"
}
'import requests
url = "https://production.deepvue.tech/v1/kyc/digilocker/file"
payload = {
"consent": "<string>",
"purpose": "<string>",
"initial_deepvue_transaction_id": "<string>",
"uri": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"client-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'client-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
consent: '<string>',
purpose: '<string>',
initial_deepvue_transaction_id: '<string>',
uri: '<string>'
})
};
fetch('https://production.deepvue.tech/v1/kyc/digilocker/file', 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://production.deepvue.tech/v1/kyc/digilocker/file",
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([
'consent' => '<string>',
'purpose' => '<string>',
'initial_deepvue_transaction_id' => '<string>',
'uri' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"client-id: <api-key>",
"x-api-key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://production.deepvue.tech/v1/kyc/digilocker/file"
payload := strings.NewReader("{\n \"consent\": \"<string>\",\n \"purpose\": \"<string>\",\n \"initial_deepvue_transaction_id\": \"<string>\",\n \"uri\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("client-id", "<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://production.deepvue.tech/v1/kyc/digilocker/file")
.header("x-api-key", "<api-key>")
.header("client-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"consent\": \"<string>\",\n \"purpose\": \"<string>\",\n \"initial_deepvue_transaction_id\": \"<string>\",\n \"uri\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.deepvue.tech/v1/kyc/digilocker/file")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["client-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"consent\": \"<string>\",\n \"purpose\": \"<string>\",\n \"initial_deepvue_transaction_id\": \"<string>\",\n \"uri\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"timestamp": null,
"transaction_id": "string",
"sub_code": "SUCCESS",
"message": "Issued files fetched successfully.",
"data": "string"
}{
"code": 301,
"timestamp": null,
"transaction_id": "string",
"sub_code": "INVALID_URI",
"message": "unsupported service"
}{
"code": 400,
"timestamp": null,
"transaction_id": "string",
"sub_code": "DUPLICATE_REQUEST",
"message": "Invalid Initial Deepvue Transaction id."
}{
"code": 401,
"timestamp": null,
"transaction_id": "string",
"sub_code": "SESSION_EXPIRED",
"message": "Digilocker session expired."
}{
"detail": "Not a valid token"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}{
"code": null,
"timestamp": null,
"transaction_id": "string",
"message": "Failed at bank"
}Digilocker
Download File
This API will download a file from Digilocker from issued documents based on the URN passed in the parameter.
POST
/
v1
/
kyc
/
digilocker
/
file
Download File
curl --request POST \
--url https://production.deepvue.tech/v1/kyc/digilocker/file \
--header 'Content-Type: application/json' \
--header 'client-id: <api-key>' \
--header 'x-api-key: <api-key>' \
--data '
{
"consent": "<string>",
"purpose": "<string>",
"initial_deepvue_transaction_id": "<string>",
"uri": "<string>"
}
'import requests
url = "https://production.deepvue.tech/v1/kyc/digilocker/file"
payload = {
"consent": "<string>",
"purpose": "<string>",
"initial_deepvue_transaction_id": "<string>",
"uri": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"client-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'client-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
consent: '<string>',
purpose: '<string>',
initial_deepvue_transaction_id: '<string>',
uri: '<string>'
})
};
fetch('https://production.deepvue.tech/v1/kyc/digilocker/file', 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://production.deepvue.tech/v1/kyc/digilocker/file",
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([
'consent' => '<string>',
'purpose' => '<string>',
'initial_deepvue_transaction_id' => '<string>',
'uri' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"client-id: <api-key>",
"x-api-key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://production.deepvue.tech/v1/kyc/digilocker/file"
payload := strings.NewReader("{\n \"consent\": \"<string>\",\n \"purpose\": \"<string>\",\n \"initial_deepvue_transaction_id\": \"<string>\",\n \"uri\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("client-id", "<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://production.deepvue.tech/v1/kyc/digilocker/file")
.header("x-api-key", "<api-key>")
.header("client-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"consent\": \"<string>\",\n \"purpose\": \"<string>\",\n \"initial_deepvue_transaction_id\": \"<string>\",\n \"uri\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.deepvue.tech/v1/kyc/digilocker/file")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["client-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"consent\": \"<string>\",\n \"purpose\": \"<string>\",\n \"initial_deepvue_transaction_id\": \"<string>\",\n \"uri\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"timestamp": null,
"transaction_id": "string",
"sub_code": "SUCCESS",
"message": "Issued files fetched successfully.",
"data": "string"
}{
"code": 301,
"timestamp": null,
"transaction_id": "string",
"sub_code": "INVALID_URI",
"message": "unsupported service"
}{
"code": 400,
"timestamp": null,
"transaction_id": "string",
"sub_code": "DUPLICATE_REQUEST",
"message": "Invalid Initial Deepvue Transaction id."
}{
"code": 401,
"timestamp": null,
"transaction_id": "string",
"sub_code": "SESSION_EXPIRED",
"message": "Digilocker session expired."
}{
"detail": "Not a valid token"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}{
"code": null,
"timestamp": null,
"transaction_id": "string",
"message": "Failed at bank"
}Authorizations
The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.
The CLIENT_ID provided to you. This header parameter is required for authentication purposes.
Body
application/json