curl --request POST \
--url https://test-api.sandbox.co.in/kyc/aadhaar/okyc/otp/verify \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"@entity": "in.co.sandbox.kyc.aadhaar.okyc.request",
"reference_id": "1234567",
"otp": "121212"
}
'{
"code": 200,
"timestamp": 1000000000000,
"transaction_id": "90d6ea41-210f-43c2-b830-83d6a03aaa77",
"data": {
"@entity": "in.co.sandbox.kyc.aadhaar.okyc",
"reference_id": 1234567,
"status": "VALID",
"message": "Aadhaar Card Exists",
"care_of": "S/O: Johnny Doe",
"full_address": "Mangal Kanaka Niwas, Main Cross 3rd, Bengaluru, Bengaluru-Karnataka, India ",
"date_of_birth": "21-04-1985",
"email_hash": "044917e2c4c62a439d068.......d9f71bbde10b1d227a914e",
"gender": "M",
"name": "John Doe",
"address": {
"@entity": "in.co.sandbox.kyc.aadhaar.okyc.address",
"country": "India",
"district": "Bengaluru",
"house": "Mangal Kanaka Niwas",
"landmark": "",
"pincode": "581615",
"post_office": "Bengaluru",
"state": "Karnataka",
"street": "Main Cross 3rd",
"subdistrict": "",
"vtc": "Bengaluru"
},
"year_of_birth": "1985",
"mobile_hash": "044917e2c4c62a439d068.......d9f71bbde10b1d227a914e",
"photo": "data:image/jpeg;base64,/9j/4AAQSk.......mj/2Q==",
"share_code": "1234"
}
}Verify the Aadhaar number by passing the OTP received on the individual’s registered mobile number.
curl --request POST \
--url https://test-api.sandbox.co.in/kyc/aadhaar/okyc/otp/verify \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"@entity": "in.co.sandbox.kyc.aadhaar.okyc.request",
"reference_id": "1234567",
"otp": "121212"
}
'{
"code": 200,
"timestamp": 1000000000000,
"transaction_id": "90d6ea41-210f-43c2-b830-83d6a03aaa77",
"data": {
"@entity": "in.co.sandbox.kyc.aadhaar.okyc",
"reference_id": 1234567,
"status": "VALID",
"message": "Aadhaar Card Exists",
"care_of": "S/O: Johnny Doe",
"full_address": "Mangal Kanaka Niwas, Main Cross 3rd, Bengaluru, Bengaluru-Karnataka, India ",
"date_of_birth": "21-04-1985",
"email_hash": "044917e2c4c62a439d068.......d9f71bbde10b1d227a914e",
"gender": "M",
"name": "John Doe",
"address": {
"@entity": "in.co.sandbox.kyc.aadhaar.okyc.address",
"country": "India",
"district": "Bengaluru",
"house": "Mangal Kanaka Niwas",
"landmark": "",
"pincode": "581615",
"post_office": "Bengaluru",
"state": "Karnataka",
"street": "Main Cross 3rd",
"subdistrict": "",
"vtc": "Bengaluru"
},
"year_of_birth": "1985",
"mobile_hash": "044917e2c4c62a439d068.......d9f71bbde10b1d227a914e",
"photo": "data:image/jpeg;base64,/9j/4AAQSk.......mj/2Q==",
"share_code": "1234"
}
}Documentation Index
Fetch the complete documentation index at: https://developer.sandbox.co.in/llms.txt
Use this file to discover all available pages before exploring further.
JWT access token. For token-generation steps, refer to the Quickstart Guide.
API key used to identify and authenticate the client.
Specifies the API version for the request.
Media type of the request body.
application/json "in.co.sandbox.kyc.aadhaar.okyc.request"Unique reference identifier returned by the Generate OTP API for this Aadhaar verification flow. Used to correlate the OTP submission with the original request.
6-digit one-time password sent to the mobile number linked with the Aadhaar. Must be entered exactly as received and is valid only for the associated reference_id.
6^[0-9]{6}$Was this page helpful?