Magento Rest API to fetch admin token credentials to use tokens for other REST APIs as Authorization Bearer.
From Magento 2.4+, the Two Factor Authentication Module is available for security reasons.
generate Admin Token by REST API and you will face an error in a response like below, You have authenticated Google 2FA for security reasons.
{ "message": "Please use the 2fa provider-specific endpoints to obtain a token.", "parameters": { "active_providers": [ "google" ] } }