# Multi-Factor Authentication

#### What Type of MFA Is Supported?

Agent Cake currently supports **TOTP-based MFA**, such as codes generated by apps like Google Authenticator or Microsoft Authenticator.

#### How to Set It Up

To enable MFA for a given app:

1. During the Agent Cake configuration step for that app, you’ll be prompted to enter the **MFA setup code** (the TOTP secret).
2. This code is usually displayed as a QR code or alphanumeric string during the MFA setup process in the third-party app.
3. Copy the setup code and paste it into the designated field in Cakewalk.

Once saved, Agent Cake will use that secret to generate valid MFA tokens automatically.

{% hint style="info" %}
**Note:** Some apps require additional steps—such as enabling MFA for the service account or navigating specific security settings. Please refer to the [integration guide](broken://pages/oBeKJIOhT0d43FHAQ1sH) for your app to see detailed instructions on how to set up MFA with Agent Cake.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getcakewalk.io/how-to-guides/auto-provisioning/how-it-works/multi-factor-authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
