Manage Phone Numbers and Certificates

This guide provides overview information relating to phone numbers for Solution Partners and customers. Additionally, this guide contains process information for Solution Partners in the case that they have to manage a customer's phone number and certificates.

Preliminary information about Phone Numbers

There are some details that businesses need to know surrounding phone numbers and Embedded Signup.

Businesses need a dedicated number to use WhatsApp through embedded signup. If a business has a number actively registered on WhatsApp Messenger or the WhatsApp Business App, they are not able to use the same phone number.

Businesses can have multiple phone numbers associated with their Meta Business Account, so all they have to do is add another phone number and use that for WhatsApp.

A business cannot sign up using the embedded signup flow with a phone number that has already been registered with the Business or consumer application versions of WhatsApp.

For more detailed information relating to phone numbers and WhatsApp for Business Platform, see Phone Numbers.

For information on how to migrate an existing registered WhatsApp phone number, see Migrate Phone Number.

Instructions for customers

This section is directed towards customers of Embedded Signup and provides guidance about actions they may perform relating to phone numbers.

Add Phone Numbers to a WhatsApp Business Account

There are two methods to add additional numbers to a WhatsApp Business Account (WABA):

  1. [Recommended] Go through the embedded signup flow again, select the existing Business Manager & WABA, add the number, and verify it.
  2. In the Business Manager, go to the Phone Numbers tab of WhatsApp Manager, and select Add Phone Number. When using this option, the Solution Partner has to manually verify the phone number as phone verification is not available in the Business Manager. For this reason, it is recommended that businesses follow the embedded signup flow to add additional numbers.

Instructions for Solution Partners

This section is directed towards Solution Partners and provides instructions for managing customer phone numbers and certificates.

Register Phone Numbers for Cloud API

After a successful phone verification from the embedded signup flow, registration should succeed with an API call to the register endpoint. For this, provide any code_method (sms | voice). Since the phone number is already verified, you do not need to worry about the registration code. The verify API call is not required.

Alternatively, you can pre-verify phone numbers and offer them to your customers in the new Embedded Signup flow. This prevents customers from having to contact you for a one-time password during the onboarding process. See Pre-Verified Phone Numbers.

Register Phone Numbers for On-Premises

After a successful phone verification from the embedded signup flow, registration should succeed with an API call to the account endpoint. For this, provide any code_method (sms | voice). Since the phone number is already verified, you do not need to worry about the registration code. The verify API call is not required.

Alternatively, you can pre-verify phone numbers and offer them to your customers in the new Embedded Signup flow. This prevents customers from having to contact you for a one-time password during the onboarding process. See Pre-Verified Phone Numbers.

A phone number must be registered up to 14 days after going through the Embedded Signup flow. If a number is not registered during that window, the phone must go through to the Embedded Signup flow again prior to registration.

Get Phone's Status and Certificate

The phone_numbers endpoint allows you to see the status of a phone number's display name and to retrieve the certificate after a name change. See the Read Phone Numbers for more information.

Example Request

In the following example, use the ID for the assigned WABA.

curl -i -X GET "https://graph.facebook.com/v19.0/{waba-id}/phone_numbers
  ?fields=
    display_phone_number,
    certificate,
    name_status,
    new_certificate,
    new_name_status
  &access_token={system-user-access-token}"
To find the ID of a WhatsApp Business Account, go to Business Manager > Business Settings > Accounts > WhatsApp Business Accounts. Find the account you want to use and click on it. A panel opens, with information about the account, including the ID.

Example Response

{
  "data": [
    {
      "id": "1972385232742141",    
      "display_phone_number": "+1 631-555-1111",
      "last_onboarded_time": "2023-08-22T19:05:53+0000",
      "certificate": "AbCdEfGhIjKlMnOpQrStUvWxYz",
      "new_certificate": "123AbCdEfGhIjKlMnOpQrStUvWxYz",
      "name_status": "APPROVED",
      "new_name_status": "APPROVED",
    }
  ]
}

Response Parameters

NameDescription

name_status

The review status of the current display name request.

Click the arrow in the left column for available options.

Available Options

  • APPROVED: The name has been approved. You can download your certificate now.
  • DECLINED: The name has not been approved. You cannot download your certificate.
  • EXPIRED: Your certificate has expire and can no longer be downloaded.
  • PENDING_REVIEW: Your name request is under review. You cannot download your certificate.
  • NONE: No certificate is available.

new_name_status

The review status of a display name change request. This field returns data only if a display name change was requested.

certificate

Returns the current certificate for that phone number.

new_certificate

The certificate of a new display name, after a display name change has been approved. This field returns data only if a display name change request was approved and is available until the phone number has been registered with the new certificate.

Get Phone's OTP Status

To see if a phone number has been verified via OTP (one-time password), check that number’s code_verification_status field. First, make a GET call to the /{whatsapp-business-account-id}/phone_numbers endpoint:

curl -i -X GET \ 
"https://graph.facebook.com/v19.0/{waba-id}/phone_numbers
  ?access_token={your-access-token}"

The response includes the code_verification_status with one of the following options: VERIFIED or NOT_VERIFIED. A sample response looks like this:

[
  {
    "code_verification_status": "NOT_VERIFIED",
    "id": "1754951608042154"
  }
]

Alternatively, you can get the status by calling a phone number's ID:

curl -i -X GET \ 
"https://graph.facebook.com/v19.0/{phone-number-id}
  ?access_token={your-access-token}"

Use the WhatsApp Business Account > Phone Numbers endpoint to get a phone number's ID. See Retrieve Phone Numbers for usage details.

Filter Phone Numbers by Account Mode

You can query phone numbers and filter them based on their account_mode. For the request, you can use the parameters listed below.

Request Parameters

NameDescription

field

Contains the field being used for filtering. In this example, you should use account_mode.

operator

Contains how you want to filter the accounts. In this example, you should use EQUAL.

value

Contain what account mode you are looking for.

Click the arrow in the left column for supported values.

Supported Values

  • SANDBOX: The account is unverified.

  • LIVE: The account is not eligible for the unverified trial experience or it has upgraded to a verified account.

Example Request

In the following example, use the ID for the assigned WABA.

curl -i -X GET "https://graph.facebook.com/v19.0/{waba-id}/phone_numbers
  ?filtering=[{
    "field":"account_mode",
    "operator":"EQUAL",
    "value":"SANDBOX"}]
  &access_token={system-user-access-token}"

Example Response

{
  "data": [
    {
      "id": "1972385232742141",    
      "display_phone_number": "+1 631-555-1111",
      "verified_name": "John’s Cake Shop",
      "quality_rating": "UNKNOWN",
    }
  ],
  "paging": {
	"cursors": {
		"before": "abcdefghij"
		"after": "klmnopqr"
	}
   }
}