Sending custom response in netlify-forms submission

i have made a form containing phone details, i want to check whether the phone is verified or not through otp, so is the integration of twillio comes in,

on submit , i am triggering the form-function provided by netlify, that business logic generates and send otp to given number

I don’t want to store this otp in any datastore as you suggested above

i want to send data (json) in response as shown above

So i am trying to redirect to custom page with params as mentioned above

I hope you get what i am trying to do here