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": "in.co.sandbox.kyc.aadhaar.okyc.otp.request",
"aadhaar_number": "123456789012",
"consent": "y",
"reason": "For KYC"
}
'{
"code": 200,
"timestamp": 1774527050727,
"transaction_id": "756c78eb-091c-4528-b3f1-185ed7df2a51",
"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": "in.co.sandbox.kyc.aadhaar.okyc.otp.request",
"aadhaar_number": "123456789012",
"consent": "y",
"reason": "For KYC"
}
'{
"code": 200,
"timestamp": 1774527050727,
"transaction_id": "756c78eb-091c-4528-b3f1-185ed7df2a51",
"data": {
"@entity": "in.co.sandbox.kyc.aadhaar.okyc.otp.response",
"reference_id": 1234567,
"message": "OTP sent successfully"
}
}API key for identification
JWT access token
in.co.sandbox.kyc.aadhaar.okyc.otp.request 12-digit Aadhaar number of the individual for whom the OTP will be generated. Must contain exactly 12 numeric digits with no spaces or separators.
12^[0-9]{12}$Explicit consent from the end user to use their Aadhaar details for OTP-based verification. Must be passed as "Y" or "y" to proceed.
Y, y Purpose for initiating Aadhaar OTP verification, such as identity verification or KYC compliance. Used for audit, compliance, and request traceability.
Was this page helpful?