curl --request GET \
--url https://test-api.sandbox.co.in/kyc/digilocker/sessions/{session_id}/documents/{doc_type} \
--header 'Authorization: <authorization>' \
--header 'x-api-key: <x-api-key>'{
"code": 200,
"timestamp": 1751975529441,
"data": {
"files": [
{
"@entity": "org.quicko.drive.file",
"url": "https://in-co-sandbox-kyc-digilocker-dev.s3.ap-south-1.amazonaws.com/non-persistent/e385432b-575c-4b6f-8928-79136dbc0d4f/4b4bf7aa-f4da-47a8-9b32-895edfc03630/in.gov.uidai-ADHAR-0d5fe4d692c73e23c59a694eaaabc75a.xml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=%2F20250708%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20250708T115214Z&X-Amz-Expires=3600&X-Amz-Signature=8cc4b0e8eb3794601c7fdb7e85f3a6bb3a8e1842403c8aeae5c05b7af03bdadb&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject",
"size": 16598,
"metadata": {
"ContentType": "application/xml",
"issuer_id": "in.gov.uidai",
"issuer": "Unique Identification Authority of India (UIDAI)",
"LastModified": "09/05/2025",
"description": "Aadhaar Card"
}
}
]
},
"transaction_id": "a4d43b74-0f9c-480c-9300-f011100b674b"
}Pass the session id and the document type to fetch the document.
curl --request GET \
--url https://test-api.sandbox.co.in/kyc/digilocker/sessions/{session_id}/documents/{doc_type} \
--header 'Authorization: <authorization>' \
--header 'x-api-key: <x-api-key>'{
"code": 200,
"timestamp": 1751975529441,
"data": {
"files": [
{
"@entity": "org.quicko.drive.file",
"url": "https://in-co-sandbox-kyc-digilocker-dev.s3.ap-south-1.amazonaws.com/non-persistent/e385432b-575c-4b6f-8928-79136dbc0d4f/4b4bf7aa-f4da-47a8-9b32-895edfc03630/in.gov.uidai-ADHAR-0d5fe4d692c73e23c59a694eaaabc75a.xml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=%2F20250708%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20250708T115214Z&X-Amz-Expires=3600&X-Amz-Signature=8cc4b0e8eb3794601c7fdb7e85f3a6bb3a8e1842403c8aeae5c05b7af03bdadb&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject",
"size": 16598,
"metadata": {
"ContentType": "application/xml",
"issuer_id": "in.gov.uidai",
"issuer": "Unique Identification Authority of India (UIDAI)",
"LastModified": "09/05/2025",
"description": "Aadhaar Card"
}
}
]
},
"transaction_id": "a4d43b74-0f9c-480c-9300-f011100b674b"
}Documentation Index
Fetch the complete documentation index at: https://developer.sandbox.co.in/llms.txt
Use this file to discover all available pages before exploring further.
JWT access token. For token-generation steps, refer to the Quickstart Guide.
API key used to identify and authenticate the client.
Specifies the API version for the request.
Session identifier generated during DigiLocker Initiate Session API .
Document type identifying which DigiLocker document to retrieve. Must match one of the consented doc_types values.
aadhaar, pan, driving_license The response is of type object.
Was this page helpful?