WA Cloud - Phone Number Registration
Last updated
Last updated
To use your business phone number with Cloud API you must register it. Register your business phone number in the following scenarios:
Account Creation: When you implement this API, you need to register the business phone number you want to use to send messages. We enforce setting two-step verification during account creation to add an extra layer of security to your accounts.
Name Change: In this case, your phone is already registered and you want to change your display name. To do that, you must first file for a name change on WhatsApp Manager. Once the name is approved, you need to register your phone again under the new name.
Migrating your number from On-Premises API to Cloud API. See Migration Exception.
Before you can register your business phone number you must first verify its ownership.
If you are migrating a phone number from the On-Premises API to the Cloud API, there are extra steps you need to perform before registering a phone number with the Cloud API. See Migrate From On-Premises API to Cloud API for the full process.
To register your verified business phone number, make a POST
call to PHONE_NUMBER_ID/register
. Include the parameters listed below.
Endpoint | Authentication |
---|---|
Requests to the registration endpoint are limited to 10 registration and 10 deregistration requests, per business number, per week. If you exceed this limit, the API will return error code 133016
.
Name | Description |
---|---|
All API calls require authentication with access tokens.
Developers can authenticate their API calls with the access token generated in the App Dashboard > WhatsApp > API Setup.
Solution Partners must authenticate themselves with an access token with the whatsapp_business_messaging
and whatsapp_business_management
permissions. See System User Access Tokens for information.
Deregistering a business phone number makes it no longer usable with Cloud API and disables local storage on the number, if it had been enabled.
Deregistration does not delete a number or its message history. To delete a number and its history, see Delete Phone Number from a WABA.
To deregister a business phone number , make a POST
call to PHONE_NUMBER_ID/deregister
:
Requests to the registration service are limited to 10 registration and 10 deregistration calls, per business number, per week.
Sample Request:
A successful response looks like:
Endpoint | Authentication |
---|---|
PHONE_NUMBER_ID/register
(See Get Phone Number ID)
Solution Partners must authenticate themselves with an access token with the whatsapp_business_management
permission.
messaging_product
Required.
Messaging service used. Set this to "whatsapp"
.
pin
Required.
If your verified business phone number already has two-step verification enabled, set this value to your number's 6-digit two-step verification PIN. If you cannot recall your PIN, you can update it.
If your verified business phone number does not have two-step verification enabled, set this value to a 6-digit number. This will be the newly verified business phone number's two-step verification PIN.
data_localization_region
Optional.
If included, enables local storage on the business phone number. Value must be a 2-letter ISO 3166 country code (e.g. IN
) indicating the country where you want data-at-rest to be stored.
Supported values:
APAC
Australia: AU
Indonesia: ID
India: IN
Japan: JP
Singapore: SG
South Korea: KR
Europe
EU (Germany): DE
Switzerland: CH
United Kingdom: GB
LATAM
Brazil: BR
MEA
Bahrain: BH
South Africa: ZA
NORAM
Canada: CA
Once enabled, cannot be disabled or changed directly. Instead, you must deregister the number and register it again without this parameter (to disable), or include the parameter with the new country code (to change).
To enable local storage on a number that has already been registered, you must deregister the number, then register it again and include this parameter.
PHONE_NUMBER_ID/deregister
(See Get Phone Number ID)
Solution Partners must authenticate themselves with an access token with the whatsapp_business_management
permission.