curl --request POST \
--url https://api.sandbox.co.in/kyc/digilocker-sdk/sessions/create \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"@entity": "in.co.sandbox.kyc.digilocker.sdk.session.request",
"flow": "signin",
"doc_types": [
"aadhaar",
"pan"
]
}
'{
"timestamp": 1750331120324,
"transaction_id": "5ccad959-0bf4-4472-a3dd-d57e2b61b5a9",
"data": {
"@entity": "in.co.sandbox.kyc.digilocker.sdk.session",
"id": "0454f149-26d0-41ef-9f14-c54f4b5f7b70",
"status": "created",
"created_at": 1750331120324
},
"code": 200
}curl --request POST \
--url https://api.sandbox.co.in/kyc/digilocker-sdk/sessions/create \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"@entity": "in.co.sandbox.kyc.digilocker.sdk.session.request",
"flow": "signin",
"doc_types": [
"aadhaar",
"pan"
]
}
'{
"timestamp": 1750331120324,
"transaction_id": "5ccad959-0bf4-4472-a3dd-d57e2b61b5a9",
"data": {
"@entity": "in.co.sandbox.kyc.digilocker.sdk.session",
"id": "0454f149-26d0-41ef-9f14-c54f4b5f7b70",
"status": "created",
"created_at": 1750331120324
},
"code": 200
}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.
in.co.sandbox.kyc.digilocker.sdk.session.request DigiLocker authentication flow to initiate for the user. Use signin for existing DigiLocker users or signup to create a new account.
signin, signup List of DigiLocker document types for which user consent is being requested.
1aadhaar, driving_license, pan Was this page helpful?