# SMS MFA okta notification

**URL:** <https://devforum.okta.com/t/sms-mfa-okta-notification/19777>\
**Category:** Questions\
**Created:** [March 11, 2022, 2:02pm UTC](https://devforum.okta.com/t/sms-mfa-okta-notification/19777 "2022-03-11T14:02:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shailendra](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Shailendra](https://devforum.okta.com/u/Shailendra)\
**Post date:** [March 11, 2022, 2:02pm UTC](https://devforum.okta.com/t/sms-mfa-okta-notification/19777/1 "2022-03-11T14:02:26Z")

</div>

Hi support team,

I have created a trial account in OKTA to test MFA (Multi factor authentication) as SMS as a second layer for authentication… I am using postman(I have already set Environment variables like username, password, url, stateToken and factorId) to test the same and below are the two API endpoints which i am calling from postman in order:

1. {{url}}/api/v1/authn  
This API gives response with below status:

“status”: “MFA\_REQUIRED”,

1. Now I am trying to test the SMS notification using below endpoint:

{{url}}/api/v1/authn/factors(Enroll SMS Facore) and getting below response:

{  
“errorCode”: “E0000079”,  
“errorSummary”: “This operation is not allowed in the current authentication state.”,  
“errorLink”: “E0000079”,  
“errorId”: “oaeNIILJT2qR0OIvCeTwNcCfg”,  
“errorCauses”: [  
{  
“errorSummary”: “This operation is not allowed in the current authentication state.”  
}  
]  
}

Why I am getting above response please let me know as I am not able to understand what I am doing wrong.

Thanks,  
Shailendra J

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [March 11, 2022, 10:09pm UTC](https://devforum.okta.com/t/sms-mfa-okta-notification/19777/2 "2022-03-11T22:09:20Z")

</div>

The /[authn/factors endpoint](https://developer.okta.com/docs/reference/api/authn/#enroll-factor) will only work if user is currently in status MFA\_ENROLL.

You will need to use the [/users/${userId}/factors endpoint](https://developer.okta.com/docs/reference/api/authn/#enroll-factor) to enroll the user in additional factors, outside of the authentication transaction, if they are in a different status (in this case, MFA\_REQUIRED).

---

<div class="post-metadata">

**Author:** ![Shailendra](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Shailendra](https://devforum.okta.com/u/Shailendra)\
**Post date:** [March 14, 2022, 7:22am UTC](https://devforum.okta.com/t/sms-mfa-okta-notification/19777/3 "2022-03-14T07:22:35Z")

</div>

Hi Andrea,

Thanks for your response.I will check with the endPoint you suggested.

Thanks once again.

Shailendra J

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 8, 2024, 9:49pm UTC](https://devforum.okta.com/t/sms-mfa-okta-notification/19777/4 "2024-02-08T21:49:05Z")

</div>

Closed on February 8, 2024, 9:49pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
