đ 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',
);
| param | type | required | description |
|---|---|---|---|
pin | int / String | yes | 6-digit registration PIN |
dataLocalizationRegion | String | no | Optional data localization region |
enableLocalStorage | bool | no | Deprecated; 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().