Before you begin, make sure to enable support for MFA in the Admin Console of your Okta org.
You need to enable MFA from the Admin Console of your Okta org before you can use it with the Okta API. In this example, we are going to enable the Google Authenticator MFA factor type.
From the Admin Console, select Security and then Multifactor.
On the Factor Types tab, select Google Authenticator.
Click the drop-down list for Google Authenticator and select Activate.