cURL
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": "<string>", "flow": "signin", "doc_types": [ "aadhaar" ] } '
{ "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
API key for identification
"in.co.sandbox.kyc.digilocker.sdk.session.request"
Indicates whether the user is signing in or signing up on DigiLocker
signin
signup
Documents you need consent for.
aadhaar
driving_license
pan
200 - OK
Show child attributes
"in.co.sandbox.kyc.digilocker.sdk.session"
Session ID
Status of the Session
created
Was this page helpful?