Skip to main content
Version: 4.2.0

🔐 Two-Step Verification

Enable two-step verification for the business phone number. WhatsApp requires a 6-digit PIN.

await whatsapp.twoStepVerification(
pin: 123456,
);

Use the string variant when the PIN may start with zeros:

await whatsapp.registrationService.twoStepVerificationWithPin('001234');
paramtyperequireddescription
pinint / Stringyes6-digit two-step verification PIN
Keep the PIN safe

Meta requires the PIN for future registration and migration operations. Store it in your secret manager, not in source control.