curl --request POST \
--url https://api.sandbox.co.in/kyc/aadhaar/okyc/otp \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"@entity": "<string>",
"aadhaar_number": "<string>",
"consent": "Y",
"reason": "<string>"
}
'{
"code": 200,
"timestamp": 1765889766000,
"transaction_id": "fad04935-d568-4830-a650-7abd4ecec507",
"data": {
"@entity": "in.co.sandbox.kyc.aadhaar.okyc.otp.response",
"reference_id": 1234567,
"message": "OTP sent successfully"
}
}Generate OTP on the individual’s registered mobile number to verify their Aadhaar number.
curl --request POST \
--url https://api.sandbox.co.in/kyc/aadhaar/okyc/otp \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"@entity": "<string>",
"aadhaar_number": "<string>",
"consent": "Y",
"reason": "<string>"
}
'{
"code": 200,
"timestamp": 1765889766000,
"transaction_id": "fad04935-d568-4830-a650-7abd4ecec507",
"data": {
"@entity": "in.co.sandbox.kyc.aadhaar.okyc.otp.response",
"reference_id": 1234567,
"message": "OTP sent successfully"
}
}JWT access token
API key for identification
"in.co.sandbox.kyc.aadhaar.okyc.otp.request"12-digit number issued by the UIDAI
12Consent of the end-user to get their information for verification purposes.
Y, y Indicate the purpose for verification.
Was this page helpful?