This generates an OTP; responds with the OTP if in the development environment; but mails the OTP in the production environment.
Request
Body Params application/x-www-form-urlencoded
Request Code Samples
curl --location '/otp' \
--data-urlencode 'email='
Responses
application/json
{
"success": true,
"statusCode": 200,
"data": {
"otp": "only-in-dev-environment"
}
}
Modified at 2026-11-19 11:54:52