# WhatsApp Cloud API Integration

## Introduction

The WhatsApp Cloud API, an extension of the WhatsApp Business API in the cloud, enables businesses and developers to customize interactions and swiftly respond to customer inquiries on WhatsApp. This efficiency is further enhanced as businesses can secure direct approval for the WhatsApp Cloud API from Facebook.

{% hint style="info" %}
If you have any queries, reach out to us at **<support@growlytics.in>**
{% endhint %}

## Integration Pre-reqisites

Here are the basic requirements to set up your WhatsApp number of WhatsApp Cloud API

1. Create a new app on Meta&#x20;
2. Set a system user
3. Procure and share the following details with our customer support team&#x20;
   1. Token (refer to Step 21)
   2. Phone Number\_ID (refer to Step 9)
   3. WhatsApp Business Account\_ID (refer to Step 9)

## Steps to Follow

Follow these simple steps to set up your WhatsApp number on WhatsApp Cloud API&#x20;

1. Log in to [https://developers.facebook.com](https://developers.facebook.com/)
2. Click on 'My Apps'
3. Select 'Other' and Click on 'Next'
4. Select an App Type - Business and click on 'Next'
5. Add an App Name | App Contact Email | Business Account
6. Redirect to App Dashboard page
7. Scroll down, Click 'Set Up' on the WhatsApp Block
8. Click on 'API Set UP'
9. Enter the phone number under Step 5 on your screen and copy the phone number ID and WA business account ID
10. Verify the number using the verification code sent on the concerned number
11. Send a test message to check if the messaging service is available and active
12. Configure Webhook
    1. Callback URL - <https://its.growlytics.in/cht/>\<API KEY>/whatsapp-cloud-api
    2. Verify token - \<API KEY>
13. Add Webhook fields - select fields
14. Log in to <https://business.facebook.com/settings>&#x20;
15. Click on 'System Users' in the left hand side panel
16. Add a System User, Assign a System User Name and Role
17. Click on 'Add Asset'
18. Click on 'App' under 'Select Asset Type'
19. Choose the app and assign full access to the System User you have just created
20. Click on 'Save Changes'
21. Click on 'Generate New Token', select the 'Never Expires' option, and share the token along with the phone number ID and WA Business Account ID

Next, you will have to set the callback URL, the procedure for which is as follows&#x20;

Callback URL - <https://its.growlytics.in/cht/>\<API KEY>/whatsapp-cloud-apiVerify token - \<API KEY>​

Select the following Webhook Fields

* account\_review\_update
* business\_capability\_update
* campaign\_status\_update
* message\_template\_quality\_update
* message\_template\_status\_update
* messages
* phone\_number\_name\_update
* phone\_number\_quality\_update
* template\_category\_update

&#x20;
