Skip to main content

WhatsApp

WhatsApp Business Messaging

How to Use WhatsApp with Vodia PBX

Vodia PBX integrates with the WhatsApp Business Platform to support incoming and outgoing messaging. Text and image messages are supported. This feature requires PBX version 70.1 or higher.

The setup involves four steps: gathering credentials from Meta, configuring the SMS provider in Vodia, assigning a phone number, and verifying the webhook.


Prerequisites

  • Vodia PBX Version 70.1+
  • A valid SSL/TLS certificate for your Tenant (subject name must match your Tenant FQDN). If you have Let's Encrypt enabled on your PBX, this is handled automatically.
  • A Meta Business Account with:
    • Business Verification completed
    • A verified WhatsApp Business phone number
    • WhatsApp Business Calling API access enabled

Part 1 — Meta Configuration

Step 1 — Create a Meta Developer App

  1. Go to developers.facebook.com
  2. Click My AppsCreate App
  3. During the app creation process, make sure you select the use case Connect with customers through WhatsApp
  4. Select Business as the app type
  5. Link the app to your Meta Business Account

wa-1

wa-2

wa-3

Step 2 — Business Verification

Business Verification is required before calling can be enabled.

  1. Go to business.facebook.comSettingsSecurity CenterBusiness Verification
  2. Under Business Verification, submit your business documents
  3. Verification typically takes 1–3 business days
  4. Once verified, your account status will show Verified

wa-4

Step 3 — Add and Verify Your Phone Number

  1. Go to the WhatsApp Manager and select Phone Numbers under Account Tools
  2. Click Add phone number
  3. Enter your business phone number — this must not be an active WhatsApp personal or business app number
  4. Request a verification code via SMS or voice call
  5. Enter the code to verify the number
  6. Note your Phone Number ID — you will need this for all API calls

wa-5


Part 2 — Gather Messaging Credentials from Meta

You will need four pieces of information from the Meta Business platform before configuring Vodia.

Step 4 — Phone Number ID

Go to WhatsApp Manager → Phone Numbers and locate your Phone Number ID. This is a numeric identifier assigned to your WhatsApp business phone number — it is not the phone number itself.

WhatsApp Phone Number ID

Step 5 — Verify Token

Choose a random alphanumeric string to use as your Verify Token (e.g., HNeoioRB3xk2mQ). This token is not provided by Meta — you define it yourself. You will enter the same token in both the Vodia PBX configuration and the Meta webhook settings later.

Step 6 — Permanent Access Token

A permanent access token is required for sending and receiving messages. To generate one:

  1. Go to Meta Business Settings and navigate to UsersSystem Users.
  2. Click Add to create a new system user. Set the role to Admin.
  3. Click on the newly created user, then click Generate New Token.
  4. In the token generation dialog:
    • Select your WhatsApp app.
    • Set the expiration to Never.
    • Enable all required permissions as shown in the images below.
  5. Click Generate Token. Copy and save the token immediately — it will not be shown again.

System User Setup

Generate Token

Token Permissions

Token Generated

System User

Step 7 — App Secret

Go to Meta App Dashboard, select your app, then navigate to App SettingsBasic. Copy the App Secret value.

App Secret


Part 3 — Vodia PBX Configuration

Step 8 — Configure the SMS Provider

Log in to Vodia PBX as an administrator and navigate to the SMS provider settings. Create a new provider with WhatsApp as the type and fill in the following fields:

FieldValue
UsernamePhone_Number_ID/Verify_Token (e.g., 1067942823050447/HNeoioRB3xk2mQ)
Application TokenThe App Secret from Step 7
Application SecretThe Permanent Access Token from Step 6

Note: The naming of these fields can be confusing — the App Secret goes into the "Application Token" field, and the permanent Access Token goes into the "Application Secret" field.

Vodia SMS Provider Settings

Step 9 — Assign a Phone Number

Create a phone number entry in Vodia and assign it to the WhatsApp provider you configured in the previous step.

  • Extension: Select the extension that will handle inbound and outbound WhatsApp messages.
  • Prefix: Define a URL prefix for the webhook callback (e.g., whatsapp). Meta will deliver incoming messages to this path on your PBX.

Vodia Phone Number Settings


Part 4 — Webhook Verification

Step 10 — Verify the Webhook in Meta

The final step is to register your PBX as the webhook endpoint in Meta so that incoming messages are delivered to Vodia.

  1. In the Meta App Dashboard, go to WhatsAppConfiguration.
  2. Under Webhook, click Edit and enter the following:
    • Callback URL: Your PBX URL followed by the prefix from Step 9. For example, if your PBX is at https://phones.pbx70.vodia-teams.com and the prefix is whatsapp, enter https://phones.pbx70.vodia-teams.com/whatsapp.
    • Verify Token: The same token you chose in Step 5 and entered in the Username field in Step 8.
  3. Click Verify and Save. Meta will send a verification request to your PBX — if the token matches, the webhook will be confirmed.
  4. After verification, click Manage and subscribe to the messages field. This tells Meta to send incoming message events to your webhook.

Webhook Configuration

Subscribe to Messages


Once all steps are complete, you can send and receive WhatsApp messages through the Vodia PBX.