
User16648134760526564552 (Customer) asked a question.
SMS enrollment API api/v1/users/{USERID}/factors with the below payload is not validating landline number. With all numbers it’s giving success message. Am I missing something over here to validate landline number for SMS factor enrollment?
{"factorType":"sms","provider":"OKTA","profile":{"phoneNumber":"+11111111111"}}
I have asked the same question on developer portal: https://devforum.okta.com/t/sms-factor-enrollment-api-is-not-validating-landline-numbers/27265

Hi Jaymin,
Thanks for contacting the OKTA community.
For this query please refer this url: https://developer.okta.com/docs/reference/api/factors/#enroll-okta-sms-factor
Hi @User16648134760526564552 (Customer) , Thank you for reaching out to the Okta Community!
There currently is no validation for "landlines". There are some restrictions as mentioned in this older post , but the rest is dependent on device/carrier.
More details about validation here:
https://support.okta.com/help/s/article/How-does-Okta-perform-validation-for-phone-numbers-used-under-SMSVoice-Call-factor?language=en_US
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--
Ask the Experts: Okta Device Access Product Team Now Thru 3/22