Complete Message Setu WhatsApp API Setup
You need to generate and enter these four values in Message Setu:
Business Account ID / WABA ID
Phone Number ID
App ID
Permanent Access TokenYou must also configure:
Callback URL:
https://message-setu-webhook-1073672031097.asia-south1.run.app/webhook
Verify Token:
message_setu_verify_tokenStep 1: Create or select a Meta Business Portfolio
- Open Meta Business Suite.
- Go to Settings → Business Settings.
- Create a new Business Portfolio or select your existing portfolio.
- Complete the business details.
Make sure you have administrator access to the Business Portfolio.
Step 2: Create the Meta App
- Open Meta for Developers.
- Click My Apps.
- Click Create App.
- Select the business-related use case or app type displayed by Meta.
- Enter an app name, such as:
Message Setu WhatsApp API- Enter your contact email.
- Connect the correct Meta Business Portfolio.
- Finish creating the app.
Copy the App ID
Inside your app, go to:
App Settings → Basic
Copy the number shown as:
App IDEnter this value in the App ID field inside Message Setu.
Step 3: Add WhatsApp to the Meta App
Inside the Meta App Dashboard:
- Find WhatsApp under Products.
- Click Set Up.
- Select your Meta Business Portfolio.
- Create or select your WhatsApp Business Account.
- Open:
WhatsApp → API Setup
Meta may automatically create a test WhatsApp Business Account and test phone number when Cloud API is first configured.
Step 4: Add your business phone number
On the WhatsApp → API Setup page:
- Click Add phone number.
- Enter your WhatsApp business display name.
- Select the appropriate business category.
- Add the business description and website when requested.
- Select the country.
- Enter the phone number.
- Verify the number through SMS or voice call.
- Enter the verification code.
- Create a six-digit PIN when requested.
A valid business phone number must be registered before it can send and receive WhatsApp Cloud API messages.
Step 5: Copy the Business Account ID
Open:
Meta App Dashboard → WhatsApp → API Setup
Find:
WhatsApp Business Account IDThis is also called:
WABA IDCopy this numeric value and enter it in Message Setu under:
Business Account IDDo not enter your Meta Business Portfolio ID here. Message Setu requires the WhatsApp Business Account ID.
Step 6: Copy the Phone Number ID
On the same WhatsApp → API Setup page, select your registered number.
Find:
Phone Number IDCopy the numeric value and enter it in Message Setu.
The Phone Number ID is not your actual mobile number. For example:
Actual number: +91 98765 43210
Phone Number ID: 123456789012345Step 7: Configure the Message Setu webhook
Open:
Meta App Dashboard → WhatsApp → Configuration
Find the Webhook section and click:
EditEnter the following exact values.
Callback URL
https://message-setu-webhook-1073672031097.asia-south1.run.app/webhookVerify Token
message_setu_verify_tokenThen click:
Verify and SaveMeta will send a verification request to the callback URL. The endpoint must compare the incoming hub.verify_token with message_setu_verify_token and return hub.challenge when they match. Meta’s official setup places these values in App Dashboard → WhatsApp → Configuration.
Enter the values exactly
Do not enter this:
VERIFY_TOKEN = message_setu_verify_tokenEnter only this in Meta’s Verify Token field:
message_setu_verify_tokenThe VERIFY_TOKEN= format is only used when setting an environment variable in backend code.
Step 8: Subscribe to the messages webhook
After the callback URL is verified:
- Stay on WhatsApp → Configuration.
- Find Webhook fields.
- Locate:
messages- Click Subscribe.
The messages webhook is used for incoming WhatsApp messages and outbound-message status updates such as sent, delivered, read and failed.
Without subscribing to messages, Message Setu may be able to send messages but may not receive incoming replies or delivery updates.
Step 9: Create a System User for the permanent token
Do not use the temporary token shown under WhatsApp → API Setup for production. Meta states that the API Setup panel generates user access tokens that expire.
Open:
Meta Business Settings → Users → System Users
Then:
- Click Add.
- Enter a name such as:
Message Setu System User- Select Admin as the system-user role.
- Click Create System User.
Step 10: Assign the Meta App to the System User
- Select Message Setu System User.
- Click Assign Assets.
- Select Apps.
- Select the Meta App created for Message Setu.
- Enable full control or the required app permissions.
- Save the assignment.
Step 11: Assign the WhatsApp Business Account
While the same system user is selected:
- Click Assign Assets.
- Select WhatsApp Accounts.
- Select the WhatsApp Business Account connected to your number.
- Enable full control or the required permissions.
- Save the assignment.
This asset assignment is important. A token may be generated successfully but still fail if the system user does not have access to the WABA.
Step 12: Generate the Permanent Access Token
With the system user selected:
- Click Generate New Token.
- Select the Message Setu Meta App.
- Choose the longest available expiration option, such as:
Never- Select these permissions:
whatsapp_business_messaging
whatsapp_business_managementYou may also select:
business_managementwhen Meta requires it for managing connected business assets.
- Click Generate Token.
- Copy the token immediately.
- Enter it in Message Setu under:
Permanent Access TokenMeta’s official guidance recommends using a System User to obtain an access token for continued API access.
Treat this token like a password. Do not send it through WhatsApp, email, screenshots or public support messages.
Final values to enter in Message Setu
| Message Setu field | Value from Meta |
|---|---|
| Business Account ID | WhatsApp Business Account ID / WABA ID |
| Phone Number ID | Phone Number ID shown in API Setup |
| App ID | App Settings → Basic → App ID |
| Permanent Access Token | System User access token |