viaSocket Help
DocStarBuilt with DocStar

Getting Started-WhatsApp Cloud API

In this guide, users can set up and authenticate the WhatsApp Business Cloud API.

Prerequisite for the connection

  • Developer Application

  • Meta Business Manager with the WhatsApp manager access.

💡

If you already have the WhatsApp Manager in the business manager, you can skip step 02 below.


STEP-01: Creation of the Meta Application

  1. Create an app in the https://developers.facebook.com/apps/

  2. Fill in the details on the App Details

  • App name

  • App contact email

  1. Under Use cases, Filter by Business messaging, select Connect with customers with WhatsApp

  2. Choose a business and in the overview, click on Go to dashboard


STEP-02: API Setup-Adding Phone Number and Payment Setup

STEP-01: Go to app https://developers.facebook.com/apps/ and click on Use cases, and click on Customize.

STEP-02: Under API Setup, user can Add phone number and Add payment method

📌

You can use the default number provided by WhatsApp. Adding a payment method is mandatory.


STEP-03: Create a System User and Generate a Permanent Access Token

Below steps to create a permanent token for use across the WhatsApp Business Platform.

  1. Navigate to Business Settings and click System users in the sidebar.

  2. Click the Add+ button in the upper-right corner and follow the prompts to create a new system user.

  3. Select the new system user you created, and click Assign Assets.

    • Select your app and toggle Manage app under Full control.

    • Select your WhatsApp account and toggle Manage WhatsApp Business Accounts under Full control.

    • Click the Assign assets button.

  4. Click Generate token.

    • Follow the prompts to generate your token.

    • Add the following permissions to the token:

      • business_management

      • whatsapp_business_messaging

      • whatsapp_business_management

    • Copy the token and store it in a secure place to be used in the later steps.


STEP-04: App ID, App secret, and Business portfolio ID Retrieval for Connection

STEP-05: Adding a connection in the viaSocket