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_jwt_token> |
Content-Type | Yes | Set to application/json |
Parameter | Type | Required | Description |
---|---|---|---|
client_id | String | Yes | The unique identifier for the DigiLocker client whose status you want to check |
Parameter | Type | Description |
---|---|---|
data | Object | Container for the status information |
data.error_description | String/null | Description of any error that occurred during the DigiLocker flow, null if no error |
data.status | String | Current status of the DigiLocker flow (e.g., "completed", "pending", "failed") |
data.completed | Boolean | Indicates whether the DigiLocker flow has been completed |
data.failed | Boolean | Indicates whether the DigiLocker flow has failed |
data.aadhaar_linked | Boolean | Indicates whether the user's Aadhaar card is linked to their DigiLocker account |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates whether the API request was successful |
message | String | Human-readable message describing the result |
message_code | String | Machine-readable code representing the message |
{
"data": {
"error_description": null,
"status": "completed",
"completed": true,
"failed": false,
"aadhaar_linked": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"data": null,
"status_code": 404,
"success": false,
"message": "DigiLocker client not found",
"message_code": "client_not_found"
}
curl --location --request GET 'https://kyc-api.surepass.app/api/v1/digilocker/status/'
{
"data": {
"error_description": null,
"status": "completed",
"completed": true,
"failed": false,
"aadhaar_linked": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}