DigiLocker Issued Files — List User Documents
Retrieve the full list of government-issued documents available in a user's DigiLocker. Includes document type, issuer, and URI.
curl -X POST "https://production.deepvue.tech/v1/kyc/digilocker/issued-files" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-H "client-id: YOUR_API_KEY" \
-d '{
"consent": "example_string",
"purpose": "example_string",
"initial_deepvue_transaction_id": "example_string"
}'
import requests
import json
url = "https://production.deepvue.tech/v1/kyc/digilocker/issued-files"
headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY",
"client-id": "YOUR_API_KEY"
}
data = {
"consent": "example_string",
"purpose": "example_string",
"initial_deepvue_transaction_id": "example_string"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://production.deepvue.tech/v1/kyc/digilocker/issued-files", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY",
"client-id": "YOUR_API_KEY"
},
body: JSON.stringify({
"consent": "example_string",
"purpose": "example_string",
"initial_deepvue_transaction_id": "example_string"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"consent": "example_string",
"purpose": "example_string",
"initial_deepvue_transaction_id": "example_string"
}`)
req, err := http.NewRequest("POST", "https://production.deepvue.tech/v1/kyc/digilocker/issued-files", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("x-api-key", "YOUR_API_KEY")
req.Header.Set("client-id", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://production.deepvue.tech/v1/kyc/digilocker/issued-files')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['x-api-key'] = 'YOUR_API_KEY'
request['client-id'] = 'YOUR_API_KEY'
request.body = '{
"consent": "example_string",
"purpose": "example_string",
"initial_deepvue_transaction_id": "example_string"
}'
response = http.request(request)
puts response.body
{
"code": 200,
"timestamp": null,
"transaction_id": "string",
"sub_code": "SUCCESS",
"message": "Issued files fetched successfully.",
"data": [
{
"name": "string",
"type": "string",
"size": "string",
"date": "string",
"parent": "string",
"mime": [
"string"
],
"uri": "string",
"doctype": "string",
"description": "string",
"issuerid": "string",
"issuer": "string"
}
]
}
{
"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"
}
/v1/kyc/digilocker/issued-files
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.
The media type of the request body
Indicates the user's consent for the operation related to the issued files.
Specifies the purpose for the request related to the issued files.
Represents the unique identifier for the initial DeepVue transaction.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.
API Key for authentication. The CLIENT_ID provided to you. This header parameter is required for authentication purposes.
Body
Indicates the user's consent for the operation related to the issued files.
Specifies the purpose for the request related to the issued files.
Represents the unique identifier for the initial DeepVue transaction.
Responses
This API retrieves the list of issued documents stored within a user's DigiLocker account. It operates as part of Deepvue's broader DigiLocker integration suite.
Users must provide explicit consent before operations proceed. You must store consent at your end to maintain compliance standards.
Last updated 4 weeks ago
Built with Documentation.AI