curl --request POST \
--url https://test-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": 1000000000000,
"transaction_id": "7d75d9db-0870-4719-8884-a3eee7bd68d5",
"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://test-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": 1000000000000,
"transaction_id": "7d75d9db-0870-4719-8884-a3eee7bd68d5",
"data": {
"@entity": "in.co.sandbox.kyc.aadhaar.okyc.otp.response",
"reference_id": 1234567,
"message": "OTP sent successfully"
}
}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.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?