multi_factor_authenticate
Type: mutation
Performs multi-factor authentication to access a Monarch Money account.
Signature
async def multi_factor_authenticate(
email: str,
password: str,
code: str
) -> Dict[str, Any]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | str | Yes | - |
password | str | Yes | - |
code | str | Yes | - |
Example
from monarchmoney import MonarchMoney
mm = MonarchMoney()
await mm.login(email, password)
result = await mm.multi_factor_authenticate("example_email", "example_password", "example_code")
print(result)
Try It Out
To test this API method locally:
- Install the package:
pip install monarchmoney - Create a Python script with the example code above
- Replace
emailandpasswordwith your Monarch Money credentials - Run the script
See the Authentication Guide for details on logging in.