Generate OTP to Verify Aadhaar

Use this API to generate OTP for a given aadhar number. The mobile number linked with the aadhaar information will receive the generated OTP. Use the generated OTP for offline aadhaar verification. View the test data and use the information to trigger the validations. The test data are usable only in the test environments such as gamma and sandbox.

Response Codes

Sub CodeStatusMessageNext Action
200SUCCESSOTP sent successfullyEnter the OTP in the Submit OTP to Verify Aadhaar API.
200SUCCESSAadhaar not linked to mobile numberEnter a valid aadhaar number linked to a mobile number to generate the OTP.
200SUCCESSInvalid Aadhaar CardEnter a valid aadhaar number.
400ERRORaadhaar Number should contain 12 characters.Enter a valid aadhaar number that has only 12 numeric digits.
400ERRORPlease enter aadhaar number in numeric formatEnter a valid aadhaar number that has only 12 numeric digits.
400ERRORPlease enter aadhaar number in the requestEnter a valid aadhaar number.
400ERRORClient secret belongs to test environmentEnter the correct environment credentials in the request.
400ERRORx-client-id is missing in the requestEnter all the header information in the API request.
401ERRORInvalid clientId and clientSecret combinationEnter valid client ID and secret key in the request.
403ERRORIP not whitelisted your current ip is 106.51.91.104.For IP whitelisting assistance, visit our guide at https://docs.cashfree.com/docs/ip-whitelisting-verificationWhitelist the IP address.
409ERROROtp generated for this aadhaar, please try after some timeTry again after some time.
422ERRORInsufficient balance to process this request.Ensure you have sufficient balance and then process the request.
500ERRORsomething went wrongTry again after some time.
Language
Authorization
URL
Click Try It! to start a request and see the response here!