This guide is intended for people developing applications for themselves or their organization. If you are developing an application that will be used by other businesses, see Solution Providers.Documentation Index
Fetch the complete documentation index at: https://meta-preview.mintlify.io/llms.txt
Use this file to discover all available pages before exploring further.
Before You Start
You will need:- A Meta developer account — learn more about registering as a Meta developer.
- A business app — learn more about creating apps. If you don’t see an option to create a business app, select Other > Next > Business during app creation).
Step 1: Add The WhatsApp Product To Your App
At this point, if you created a new app, you’ll be prompted to Add products to your app. Scroll down, and under WhatsApp, select Set up. Otherwise, select your app from the My Apps screen, and you can follow the same instructions again to add the WhatsApp product to your app. If you have a Meta Business Account (MBA), you will be prompted to attach it when adding the WhatsApp product to your app. If you don’t have an MBA, you’ll be taken through some prompts that will help you create one. Once your MBA is attached to your application, you’ll be ready to start testing. Adding the WhatsApp product to your app does a few things for you:- Prompts you to create a Meta Business Account if you don’t have one.
- Creates a test WhatsApp Business Account for you, automatically. This account has limitations and is meant for testing and development purposes since you don’t pay for messages.
- Creates a test business phone number associated with your WhatsApp Business Account. With this number, you can send free messages to up to 5 recipient phone numbers.
- Creates a set of pre-approved message templates.
Step 2: Add a Recipient Number
Add a valid WhatsApp number where you can send test messages. In the left-hand menu of the App Dashboard, navigate to WhatsApp > API Setup. Under Send and receive messages, select the To field and choose Manage phone number list. You can add any valid WhatsApp number as a recipient. The recipient number will receive a confirmation code in WhatsApp that can be used to verify the number. Once you verify the recipient number, it should now be selected in the To field. Repeat this process if you’d like to add another recipient, up to 5 in total.Step 3: Send a Test Message
Send the pre-approvedhello_world template message to your chosen recipient number.
In the WhatsApp > API Setup panel:
- Ensure your test business phone number is selected in the From field.
- Ensure you have the recipient phone number you would like to message selected in the To field. If you have multiple numbers added, you can send multiple messages at once.
- In the Send messages with the API panel, click the Send message button.
”type”:”template”) and identifying a specific template to use (”name”:”hello_world”).