Skip to main content
Version: 4.2.0

📞 Register Number

Register your business phone number with the Cloud API. This is required before the number can send messages. The PIN is the 6-digit two-step verification PIN.

await whatsapp.register(
pin: 123456,
);

// Preserve leading zeros:
await whatsapp.registrationService.registerWithPin(
'001234',
dataLocalizationRegion: 'DE',
);
paramtyperequireddescription
pinint / Stringyes6-digit registration PIN
dataLocalizationRegionStringnoOptional data localization region
enableLocalStorageboolnoDeprecated; kept for compatibility
Not a recipient registration

This method registers the business number used by the client. Recipients become eligible to receive free-form messages by opting in or messaging your business first.

To unregister the number, use deRegister().