Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | JWT Bearer token for authentication. Format: Bearer <your_token> |
Content-Type | Yes | Set to application/json |
Parameter | Type | Required | Description |
---|---|---|---|
client_id | String | Yes | The unique identifier for the DigiLocker client session |
Parameter | Type | Description |
---|---|---|
data | Object | Container for the response data |
data.documents | Array | List of document objects retrieved from DigiLocker |
data.documents[].file_id | String | Unique identifier for the document file |
data.documents[].name | String | Name of the document |
data.documents[].doc_type | String | Type code of the document (e.g., "PANCR", "ADHAR") |
data.documents[].downloaded | Boolean | Indicates whether the document has been downloaded |
data.documents[].issuer | String | Organization that issued the document |
data.documents[].description | String | Brief description of the document |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates whether the API call was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
{
"data": {
"documents": [
{
"file_id": "digilocker_file_PjorZrpBQQSSbquyTPav",
"name": "PAN Verification Record",
"doc_type": "PANCR",
"downloaded": true,
"issuer": "Income Tax Department",
"description": "PAN Verification Record"
},
{
"file_id": "digilocker_file_gjMycCOuvUTyifttXXDk",
"name": "Aadhaar Card",
"doc_type": "ADHAR",
"downloaded": true,
"issuer": "Unique Identification Authority of India (UIDAI)",
"description": "Aadhaar Card"
}
]
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 401,
"success": false,
"message": "Invalid or expired token",
"message_code": "unauthorized"
}
curl --location --request GET 'https://kyc-api.surepass.app/api/v1/digilocker/list-documents/'
{
"data": {
"documents": [
{
"file_id": "digilocker_file_PjorZrpBQQSSbquyTPav",
"name": "PAN Verification Record",
"doc_type": "PANCR",
"downloaded": true,
"issuer": "Income Tax Department",
"description": "PAN Verification Record"
},
{
"file_id": "digilocker_file_gjMycCOuvUTyifttXXDk",
"name": "Aadhaar Card",
"doc_type": "ADHAR",
"downloaded": true,
"issuer": "Unique Identification Authority of India (UIDAI)",
"description": "Aadhaar Card"
}
]
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}