Generates and sends an OTP to the currently authenticated user's registered mobile number for a specific record field.
Request
Body Params application/jsonRequired
{
"params": {
"model": "loan.application",
"field": "client_schedule_esms_otp_signature_ids",
"id": 15,
"redirect_url": "/my/home"
}
}
Request Code Samples
curl --location 'https://staging-auth.fuyoh.my/api/esms_otp/send_esms_otp?model=loan.application&field=client_schedule_esms_otp_signature_ids&id=15&redirect_url=%2Fmy%2Fhome' \
--header 'Content-Type: application/json' \
--data '{
"params": {
"model": "loan.application",
"field": "client_schedule_esms_otp_signature_ids",
"id": 15,
"redirect_url": "/my/home"
}
}'
Responses
application/json
{
"result": {
"status": 200,
"message": "OTP generated successfully",
"esms_otp_generation_id": "gen_839210",
"esms_otp_response_status": "0",
"duration": 3,
"expiration_time": "2024-05-15 10:03:00",
"recipient_mobile": "60123456789"
}
}
Modified at 2026-05-15 02:40:38