twilio-python icon indicating copy to clipboard operation
twilio-python copied to clipboard

Is there a way to validate a phone number by sms?

Open AungThiha opened this issue 10 years ago • 3 comments

AungThiha avatar Jul 04 '16 07:07 AungThiha

Hi @AungThiha,

How do you mean validate exactly?

Do you mean verify a number with your account? Or verify a number belongs to a user?

Thanks.

philnash avatar Jul 28 '16 21:07 philnash

I want to add phone numbers to my verified caller ids list.

  1. I cannot find a way to send OTP(one time password/pin) to a user via sms.
  2. When the user send back OTP to my server, I do not know how to verify it to my twilio account.

AungThiha avatar Jul 29 '16 05:07 AungThiha

I'm afraid this is not possible by SMS. When verifying numbers for use with your account the API only makes the call method available.

philnash avatar Jul 29 '16 10:07 philnash