/v1/account
We are sunsetting On-Premises API. This endpoint can no longer be used to register business phone numbers and now returns the following error:
{ "code": 1005, "title": "Access denied", "details": "Unknown error: biz_link_on_prem_reg_blocked" }
The account
node is for registering your WhatsApp Business API client.
Please be aware that Coreapp will restart if a new number is registered on a cluster that has another number registered already.
The following edges are connected to this node:
Edge | Description |
---|---|
Once you have received the registration code via your specified method, use this edge to complete your account registration. |
You will need:
A base64-encoded certificate string is generated for you and is used for validation during WhatsApp Business API client registration.
cert
parameter when registering with the account
endpoint.See the Display Name documentation for more information.
admin
account to register the application.Make a POST
call to this endpoint to request a registration code. In your call, add your phone number and base64-encoded certificate string. You can receive your code via either SMS or voice call.
POST /v1/account { "cc": "COUNTRY_CODE", "phone_number": "PHONE_NUMBER_WITHOUT_COUNTRY_CODE", "method": "sms" or "voice", "cert": "VERIFIED_NAME_CERT_IN_BASE64", "pin": "EXISTING_6_DIGIT_PIN" # required if two-step verification is enabled }
Depending on the response received, the registration procedure can be considered complete or require another step to complete. If successful, you receive one of the following HTTP status codes. Follow the instructions that match the response you received:
201 Created
— The account already exists. You are already registered, so you do not need to do anything else.202 Accepted
— The account does not exist. Depending on the method selected in the request, check your SMS or voice number for the registration code. This response will include a returned payload that contains the vname
decoded from the cert
parameter for you to confirm the right display name is being set. If correct, proceed to Completing Your Account Registration to complete registration.{ "account": [{ "vname": "decoded-vname-from-cert" }] }
If any errors are returned, refer to Error and Status Messages for more information.
Name | Description |
---|---|
| Required. Numerical country code for the phone number you are registering |
| Required. Phone number you are registering, without the country code or plus symbol ( |
| Required. Method of receiving your registration code |
| Required. Base64-encoded certificate. |
| Optional. Existing 6-digit PIN — This is only required when two-step verification is enabled on this account. |
To change your business phone number's two-step verification PIN:
You must supply your current PIN in order to change it. Note that you can also set a new PIN using our APIs:
To disable two-step verification, follow the steps for changing your PIN, but click the Turn off two-step verification button as the final step instead. An email with a link will be sent to the email address associated with your business portfolio. Use the link to disable two-step verification. Once disabled, you can re-enable it by setting a new PIN.
Yes, we can set up a new phone number or change the verified name when you are ready to go live.
Toll-free numbers are allowed as long as your country code is included. The reason is that toll-free numbers without country codes cannot be uniquely identified — the same number can apply for two different countries.
Also note that there are added complexities around toll-free numbers. Typically, if you call a toll-free number with the country code when you're inside the country, it will fail. This means that there is a chance your customers from your country will try to dial what shows in the business contact (country code included) and they won't be able to reach you. If this is a concern, you will need to let them know explicitly.
Read more about toll-free numbers here.
If you back up your current setup and restore it on the new machine, the registration information should move over with the rest of your implementation. See the Backup and Restore Settings documentation for more information.
You can register new phones numbers and delete old one in your WhatsApp Account in the Facebook Business Manager.
If registration is failing with "sms" because of too many attempts and you see an "access denied" message, then please try registering with "voice"
Unfortunately, you will need to pick a different phone number that is capable of receiving SMS or voice in order for us to send the registration code. In the past, we had allowed manual registration codes, but this is no longer supported. Phone numbers that used manual registration codes before will continue to be supported as required. For any new phone numbers, we will only deliver registration codes via SMS or voice call.
If you want to use your 1800 or toll free number, please read this guide.