v1
latestOpenAPI 3.0.22026-07-14225376.6 KBAuthorization API
Get Device Code
The client device calls the DigiLocker API to get the device code by providing the client_id issued to the device OEM and either the username or the mobile number of the user. DigiLocker responds with a device code and then sends an OTP on the mobile number and email address associated with the user’s account. The masked mobile number and email address is also sent in response. The device should use these values to notify the users about the mobile and email address on which the OTP has been sent.
post/oauth2/1/code
Request body
Example request
{
"response_type": "device_code"
}Response
successful operation
Example response
{
"device_code": "74tq5miHKB",
"dl_masked_email": "xxxxxx@gmail.com",
"expires_in": 600
}