WA Cloud - Phone Number Registration
Registration
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.
Migration Exception
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.
Register a Business Phone Number
To register your verified business phone number, make a POST
call to PHONE_NUMBER_ID/register
. Include the parameters listed below.
PHONE_NUMBER_ID/register
Solution Partners must authenticate themselves with an access token with the whatsapp_business_management
permission.
Limitations
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
.
Parameters
messaging_product
Required.
Messaging service used. Set this to "whatsapp"
.
pin
Required.
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.
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
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.
Example Request without Local Storage
Example Request with Local Storage
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.
Deregister a Business Phone Number
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
:
PHONE_NUMBER_ID/deregister
Solution Partners must authenticate themselves with an access token with the whatsapp_business_management
permission.
Limitations
Requests to the registration service are limited to 10 registration and 10 deregistration calls, per business number, per week.
Example
Sample Request:
A successful response looks like:
Last updated