Due to the high demand, Twilio provides access to the Twilio API for WhatsApp as availability opens up. If you have an urgent need for access, please reach out to your account manager.
In this guide, we walk you through connecting a WhatsApp Business profile to your Twilio phone number.
Associating your Twilio number with your Facebook Business Manager account gives you the ability to receive and send messages from your Twilio number using a WhatsApp Business profile. This means you can engage in conversational (two-way) messaging and send higher engagement notifications to your customers from your Twilio number.
At a high level, to enable your Twilio number for WhatsApp, you must complete the following steps:
- Request access to enable your Twilio numbers for WhatsApp
- Submit a WhatsApp Business profile request and your Message Templates in the Twilio console
- Approve Twilio to message on your behalf in the Facebook Business Manager console
This guide includes instructions for both individual businesses and third-party vendors. Under each step, look for the Note for third-party vendors subheading to find specific instructions.
Developers must verify their business through Facebook Business Manager before beginning the process of connecting their WhatsApp Business Profile and their Twilio phone number.
To connect your Twilio number with a WhatsApp Business account, have the following information handy:
- Facebook Business Manager account: If you do not already have one, please read Facebook's instructions on setting up a business manager account. WhatsApp uses the Business Manager account to identify your business and associate your phone number(s) with it.
- Facebook Business Verification: Businesses need to verify their Facebook Business Manager account. This must be done ahead of time.
- Twilio account: You will need your Twilio Account SID, which you can find in the Twilio console. At this time, trial accounts are not eligible to create a WhatsApp Business Profile with Twilio.
If you are working with a third-party vendor, independent software vendor (ISV) or system integrator (SI), you will also need:
- Twilio Subaccount for your client: This is where your client’s account will be provisioned. It is the subaccount on your (the ISV's) account.
- Your client’s Twilio Account SID: Your client needs to accept the WhatsApp terms of service in their own Twilio account by navigating to console under Programmable SMS > WhatsApp and clicking "I Accept." You can then submit their Account SID in the "Request Access" form, as described below.
In order to enable your Twilio numbers for WhatsApp, you will need to fill out Twilio's "Request Access" form with accurate and up-to-date information, including your Facebook Business Manager ID. (Please note: This is not the same as your Facebook page). Providing incorrect information here can lead to delays in the onboarding process.
If you are a third party vendor, ISV, or SI completing the form on behalf of your customer, you must submit one form per customer or brand that you support.
When completing the "Request Access" form, please take note of the information below (labeled Note for ISVs) to ensure that you correctly represent your customer.
Below is additional information on some of the fields on the "Request Access" form based on frequently asked questions:
- Email Address: The address where Twilio will reach out with the next steps once your account is approved for use of the Twilio API for WhatsApp in production.
- Note for ISVs: The submitted email should go to whoever is managing the Sender Profile. For ISVs, it should be your email address, not your customer's email.
- Company Name, Website, HQ Country: Your company’s information.
- Note for ISVs: Complete these fields with the client company’s information.
- Twilio Account SID: Your primary Twilio Account SID. To find your Account SID, log into the console click the “Home” button, and locate your Account SID on the top right on the page
- Note for ISVs: This is your customer’s primary Account SID, not your Account SID.
- Facebook Business Manager ID: You can find this ID by logging into business.facebook.com > clicking “Business Settings” > "Business Info" > Look for the Business Manager ID. (More information about submitting your Facebook Business Manager ID)
- "I've completed Facebook Business Verification": Learn more about Facebook's verification process documentation.
- "I wish to provision this account with a third party vendor": Check this box if a third-party vendor (ISV or SI) is provisioning the account. If the WhatsApp Business Profile is for your own brand, you do not need to check this box.
- Third-Party Subaccount SID (Optional):
- Note for ISVs: If you are an ISV, fill this out with the subaccount that you will use to provision your client’s account. There should be one subaccount per client. Read more about subaccounts here.
- "I understand Twilio can modify my SMS/Voice URL and that approval is only for the brand submitted": Twilio may momentarily use your Twilio number’s SMS or Voice URL to register your number with WhatsApp.
After you submit the "Request Access" form, you will receive an email confirming the form submission. Twilio will send this confirmation to the email address provided once access becomes available and you have been approved.
Twilio will notify you when your request for access to the Twilio API for WhatsApp has been approved. This message will contain the next steps for you to follow for submitting your sender Profile and WhatsApp Message Templates.
As part of this process, businesses must verify their Facebook Business Manager account. However, please note that Facebook Business Verification cannot be done ahead of time for all companies.
Only some companies which have access to certain Facebook features, such as games and apps, will be able to complete this verification step in advance.
If you are able to complete the steps outlined in Facebook's Verify Your Business documentation at this time, this guide will cover the process in a later step.
The confirmation of approval email will contain "next steps" that instruct you to submit a sender profile and Message Message Templates.
Log into the Twilio Console and go to the Programmable SMS > WhatsApp > Senders section. Click the "+" button to create a new profile.
When you submit a business profile, it is important to pick a name that follows WhatsApp’s Display Name rules. WhatsApp reviews each display name before allowing the profile to be registered.
On this same screen, you can submit Message Templates along with your business profile. Learn more about Whats App Message Templates here.
Using the information from your completed "Submit Profile Information" form, Twilio will submit your Twilio number and Business Profile display name to WhatsApp. You will receive automated confirmation through Zendesk that your Profile Information form has been received.
You may have a brand name that you wish to use for your WhatsApp Business Profile that differs from the name of your company. If so, there must be a clear association between your company and the brand. This association can be displayed on the display name itself and/or on your website or marketing materials.
For example, if your company is Johnny Mobile and your brand is "PizzaApp," then we would recommend using the name "PizzaApp by Johnny Mobile." If you would like to keep the name "PizzaApp," the WhatsApp team will verify that there's a clear association between PizzaApp and Johnny Mobile on your website. This means that somewhere on the website, there must be a visible relationship between the two names.
WhatsApp also confirms this relationship by comparing the display name with the name on the Facebook Business Manager used to onboard.
When you receive notice that Twilio has submitted your WhatsApp Business display name and Twilio number to WhatsApp, you need to approve Twilio to send messages on behalf of that Business Profile. You will receive an email to "approve Twilio to message on behalf of" in Facebook Business Messenger. This email usually has the subject "WhatsApp Profile Request."
Go to the Facebook Business Manager console (the one that you submitted in Step 1) and approve Twilio to "message on behalf of." This is located in the business.facebook.com > Business Settings > Requests section. Once there, click the Approve button.
Please note: If you have already verified your Facebook Business Manager account previously, you will not need to complete this step again. Consult Facebook's documentation about verifying your business for more information.
As soon as you receive the ability to "Approve" Twilio to send messages on your behalf, you will be able to verify your Facebook Business Manager account if you have not already done so. In the Facebook Business Manager>> Settings console, click the Continue button under in the Verification section.
(The verification button may be greyed out prior to starting the onboarding process.)
After you approve Twilio to message on your behalf, Twilio will complete the registration process to connect your Twilio number and your WhatsApp Business Profile. You will receive an email confirmation that Twilio has finalized the registration of your profile.
At this point, your Business Profile is ready to receive messages from customers in production. You can test this by sending a WhatsApp message to your Twilio number and checking the Message Logs section in the Twilio Console. Once you receive a message, you can reply within 24 hours with free-form messages. You can read more about Conversational messaging with WhatsApp here.
Once you connect your Twilio number and WhatsApp Business profile, you have many options.
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。