Google authenticator 2FA
documented2FA authentication for admin API access.
POST /rest/{store_code}/V1/tfa/provider/google/authenticateAuthenticationno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$magento_host}}/rest/{{$store_code}}/V1/tfa/provider/google/authenticate" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"username": "{{$username}}", "password": "{{$password}}", "otp": "{{$otp}}"}'
# Source: official Adobe Commerce / Magento REST API docs (POST /rest/{store_code}/V1/tfa/provider/google/authenticate)