Skip to content

How to generate admin token after enabling 2FA?

Since I enabled 2FactorAuthentication my admin token API isn’t working anymore.

My request is:

POST: {{magento_url}}V1/integration/admin/token

Body:

{
    "username":"{{admin_user}}",
    "password":"{{admin_password}}"   
}

How could I still using the REST API to generate my admin token by using 2FA?