Form Encryption
WhatsApp requires all data exchange in Dynamic WhatsApp Flow to be encrypted using an RSA-2048 asymmetric key pair. The Form encryption provides centralized key management so that all phone numbers in your account can process Flows securely and reliably.
You can access this configuration through the Settings → Form encryption (/settings/wa-flow-encryption).

Encryption Model: One Key per Tenant Account
Section titled “Encryption Model: One Key per Tenant Account”Mahadata applies a one RSA key pair per tenant account (client_account_id).
This means:
- Public and private keys are generated automatically at the tenant account level.
- These keys apply to all WhatsApp Flow and all phone numbers connected within your account.
- You no need to manually upload a PEM certificate or copy-paste private keys in the standard operational workflow.
Why Not per-Flow Keys?
In the Meta WhatsApp Cloud API architecture, public key verification is performed on the phone number sending the message when the Flow is opened by the user, not per form template.
If the key is rotated for just one flow or a different key is applied per number, encryption requests between Meta and the endpoint often experience key mismatches that trigger the error Meta 421 (Misdirected Request). With a single RSA key pair at the tenant level, key consistency across all numbers and Flows is always guaranteed.
Uploading Keys to a Phone Number
Section titled “Uploading Keys to a Phone Number”The list of phone numbers is displayed and grouped by WABA (WhatsApp Business Account) registered. Before a number can send a Dynamic Flow, the tenant public key must be registered to that number in Meta:
- Open Settings → Form encryption (
/settings/wa-flow-encryption). - Check the phone number status:
- Configured / Active: The phone number already has an active public key in Meta.
- Not Configured: The number does not have an encryption key registered yet.
- Click the Set up on the relevant phone number row, or click Set up all to register all numbers under the WABA at once.
- The system will upload the existing tenant public key to the Meta endpoint for those numbers. This process runs quickly in the background without changing your account’s private key.
Key Rotation
Section titled “Key Rotation”If your company’s security policy requires periodic key updates:
- Click the Rotate Key button on the Form encryption page.
- Confirm the rotation action.
- The system will generate a new RSA key pair for your account, then automatically update the public key on all active phone numbers.