# QR Code Generation

**Initiate Process**:&#x20;

To begin, the following API endpoint can be called:

#### Request Parameters <a href="#header-parameters" id="header-parameters"></a>

<table><thead><tr><th width="163">ATTRIBUTE</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td>client_id</td><td>Unique identifier for the client.</td></tr><tr><td>app_name</td><td>The name of the application for which TOTP is being set up</td></tr></tbody></table>

#### **Request**

This API response includes both a **QR code** and a **secret key**.

**Setting Up with an Authenticator App:**

install an authenticator app (e.g., Google Authenticator, Microsoft Authenticator).&#x20;

\
**Option 1: Scan the QR Code**

* The base64-encoded QR code can be converted into an image for display.
* Scanning the displayed QR code using an authenticator app (such as Google Authenticator or Microsoft Authenticator) initiates the TOTP setup. Once scanned, the TOTP generator will automatically start, and one-time passcodes (OTP) will be received right away

**Option 2:** **Use the Secret Key**

* Alternatively, the secret key provided by the API can be manually entered into the authenticator app. This key will facilitate the manual setup of the TOTP generator.
* After entering the secret key, the app will generate OTP codes, similar to the process following a QR code scan.

**Response**

After completing the setup through either method, the authenticator app will continuously generate time-based OTPs. When a session token is generated, these codes will be used for secure access.\
\
Both methods provide a secure outcome, allowing flexibility in the setup process.
