Before connecting your account, it is important to understand three common terms.
They are related, but they have different purposes.
1. What Is QR Code Authentication?
QR code authentication is a visual method of connecting a device to WhatsApp.
The bot application or its authentication service generates a QR code.
You scan that code through WhatsApp Linked Devices to authorize the connection.
Simple example:
Imagine you want to connect WhatsApp Web to your phone.
You open WhatsApp Web, see a QR code, and scan it using your WhatsApp application.
The basic idea behind QR based bot authentication is similar.
2. What Is Pairing Code Authentication?
Pairing code authentication provides another way to link a WhatsApp account.
Instead of scanning a QR code, the authentication service generates a code that you enter through WhatsApp.
The general process is:
Open the bot's official pairing website or authentication interface.
Enter your WhatsApp number if requested.
Generate a pairing code.
Open WhatsApp Linked Devices.
Select Link with phone number instead.
Enter the generated code.
Wait for the linking process to finish.
Pairing codes are useful when scanning a QR code is inconvenient.
However, not every MD bot project supports pairing code authentication.
3. What Is a Session ID?
A Session ID is authentication information used by a bot application to establish or restore its WhatsApp connection.
After successfully linking your WhatsApp account, some projects generate a Session ID that you must copy into the bot configuration or hosting environment.
For example, a project may use an environment variable such as:
SESSION_ID=your_session_credentials
This is only an example. The actual variable name and format depend on the project.
Important difference:
QR code:Visual method of linking an account
Pairing code:Numeric or alphanumeric method of linking an account
Session ID:Authentication information used by the bot
A QR code or pairing code helps complete authentication. A Session ID helps the application maintain or restore the authenticated connection.