Skip to main content
POST
/
v1
/
kyc
/
digilocker
/
access-token
Access Token
curl --request POST \
  --url https://production.deepvue.tech/v1/kyc/digilocker/access-token \
  --header 'Content-Type: application/json' \
  --header 'client-id: <api-key>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "consent": "<string>",
  "purpose": "<string>",
  "initial_deepvue_transaction_id": "<string>",
  "digilocker_code": "<string>"
}
'
{
  "code": 200,
  "timestamp": 1766069383550,
  "transaction_id": "b07f6adc78b2467d9813980ce7baafea",
  "sub_code": "SUCCESS",
  "message": "Access Token generated successfully from Digilocker.",
  "data": {
    "expires_in": 3600,
    "consent_valid_till": "1768674599",
    "digilockerid": "2d6275fa-3b64",
    "name": "John Doe",
    "dob": "19011994",
    "gender": "M",
    "eaadhaar": "Y",
    "mobile": "9191993245"
  }
}

Authorizations

x-api-key
string
header
required

The CLIENT_SECRET provided to you. This header parameter is required for authentication purposes.

client-id
string
header
required

The CLIENT_ID provided to you. This header parameter is required for authentication purposes.

Body

application/json

Confirms the user's consent for accessing Digilocker services.

purpose
string
required

Indicates the purpose of the request for accessing the Digilocker API.

initial_deepvue_transaction_id
string
required

Represents the unique identifier associated with the initial DeepVue transaction.

digilocker_code
string
required

Specifies the code required for accessing Digilocker services.

Response

Successful Response

timestamp
integer
required
transaction_id
string
required
sub_code
string
required
message
string
required
data
DigilockerAccessTokenData · object
required
code
integer
default:200