Skip to content

Curfox Docs

Curfox Docs

Back to Web

📚User Guide: WhatsApp Message API Setup

Home📚User Guide: WhatsApp Message API Setup

RELEASE NOTES

41
  • Pre Release Note V3.33.0
  • Release Note V3.32.0
  • Release Note V3.31.0
  • Release Note V3.30.0
  • Release Note V3.29.0
  • Release Note V3.28.0
  • Release Note V3.27.0
  • Release Note V3.26.0
  • Release Note V3.25.0
  • Release Note V3.24.0
  • LOGIN AND START THE JOURNEY WITH CURFOX
  • Introduction to Curfox
  • What Intricate Ecosystems Thrive Along the Banks of Rivers?
  • 🚀 New Feature Release: Billing City Override Setting
  • 🚀 Enhanced SMS Notifications for Rescheduled Deliveries
  • 🚀Bypass ‘Dispatch from Origin Warehouse’ Status for Invalid Destination Cases
  • 🚀Sorting History for Enhanced Tracking
  • 🚀Enhanced SMS Provider Configuration
  • 🚀Rate Card Approval Option – Phase 1
  • 🚀Warehouse Sorting Device Management
  • 🚀WhatsApp Messaging Integration
  • 🚀Proof Upload Feature
  • 🚀Filter Saving Option
  • Pre Release Note – V3.38.0.14
  • 🚀 Pre Release Note – V3.38.11
  • Pre Release Note V3.38.0.13
  • 🚀 Release Note : Add Redelivery Flag for Failed to Deliver
  • Release Note : New Curfox Rider App
  • Release Note 3.38.0.12
  • Release Note – 3.38.10
  • Release Note 3.38.0.10
  • 📌 Release Note: Redelivery Flag for Verify Failed to Deliver
  • Release 3.38.07
  • Release 3.38.08
  • đźšš Release Note: New Dispatch Reporting Module
  • Release Note V3.38.0.6
  • 🚀 Flag Management Feature
  • 🚀New Status for Status Flow “Verify Failed to Deliver”
  • 🚀 Image Scan Upload
  • 🚀Geofencing Module
  • Release Note V3.38.6

RIDER APP

2
  • User Guide
  • Release Note : New Curfox Rider App

LOCAL RELEASE NOTES

8
  • Pre Release Note – V3.38.0.14
  • Pre Release Note V3.38.0.13
  • 🚀 Release Note : Add Redelivery Flag for Failed to Deliver
  • Release Note : New Curfox Rider App
  • Release Note 3.38.0.12
  • 📌 Release Note: Redelivery Flag for Verify Failed to Deliver
  • Release Note 3.38.0.10
  • 🚀 Pre-Deposit Merchant Invoice Approval Process

INTERNATIONAL RELEASE NOTES

2
  • 🚀 Pre Release Note – V3.38.11
  • Release Note – 3.38.10

MERCHANT PORTAL

1
  • LOGIN AND START THE JOURNEY WITH CURFOX

STAFF PORTAL

1
  • LOGIN AND START THE JOURNEY WITH CURFOX

OVERVIEW

1
  • Introduction to Curfox

USER GUIDES

1
  • 📚User Guide: WhatsApp Message API Setup
View Categories
  • Home
  • Docs
  • USER GUIDES
  • 📚User Guide: WhatsApp Message API Setup

📚User Guide: WhatsApp Message API Setup

3 min read

Prerequisites

Before setting up the WhatsApp API, ensure you have the following:

  • A Gmail account for your business.
  • A Facebook account for your business.
  • Access to Meta Business Suite.
  • Access to Meta for Developers.

Setup Process

Step 1: Create Business Accounts

  1. Create a Gmail account for your business.
  2. Create a Facebook account for your business.
  3. Log in to Meta Business Suite using your business Facebook account.
  4. Create a Business Portfolio in Meta Business Suite.

Step 2: Register on Meta for Developers

  1. Go to Meta for Developers. (https://developers.facebook.com/)
  2. Register your business by verifying the business phone number (Note: The number cannot already have a WhatsApp account.)
  3. After registration, click Create App.
  4. Enter the necessary details and click Next.
  5. Select the use case as Other, then click Next.
  6. Choose Business and click Next.
  7. Choose Developer and click Next.
  8. Review the overview and finish the process.
  9. Complete the process.

Step 3: Add WhatsApp Product to App

  1. Inside the created app, click Add Product in the sidebar.
  2. Under “Add Product,” click Set Up for WhatsApp and complete the steps.
  3. Click Start Using the API.
  4. Enter your Business Name, Business Website URL (or Page URL), and Country.
  5. Complete the process.

Step 4: Configure WhatsApp in Meta Business Suite

  1. Go to: Settings → Accounts → WhatsApp Accounts → Add.
  • If you already have a WhatsApp Business Account, link it.
  • Otherwise, create a new one.

2. Go to: Users → System Users → Add.

  • Enter the system user name.
  • Set the role as Admin.

3. Assign Assets:

  • Click Assigned Assets → select your app → enable Full Control.
  • Again, click Assigned Assets → select your WhatsApp account → enable Full Control.

Step 5: Generate Access Token

  1. Click Generate New Token.
  2. Select your app.
  3. Check scopes:
  • whatsapp_business_management
  • whatsapp_business_messaging

4. Set for No Expiry.

5. Save the generated token securely (you will need it later).

Step 6: Retrieve WhatsApp Phone Number ID

In Meta for Developers → WhatsApp → API Setup, find your WhatsApp Phone Number ID.

Register Your WhatsApp Number

Use the following cURL command to register your number:

curl -i -X POST "https://graph.facebook.com/v17.0/{PHONE_NUMBER_ID}/register" \
  -H "Authorization: Bearer YOUR_LONG_LIVED_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "messaging_product": "whatsapp",
    "pin": "123456",      Your Facebook account’s 2FA PIN
    "certificate": "cert"
  }'

Replace:

  • {PHONE_NUMBER_ID} with your actual phone number ID.
  • YOUR_LONG_LIVED_TOKEN with the token generated earlier.
  • pin with your 2FA PIN from Facebook.

Sending WhatsApp Messages

Once your number is registered, you can send messages using the API.

Example cURL request:

curl --location --request POST 'https://graph.facebook.com/v17.0/{PHONE_NUMBER_ID}/messages' \
--header 'Authorization: Bearer YOUR_LONG_LIVED_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
  "messaging_product": "whatsapp",
  "to": "94773581240",
  "type": "template",
  "template": {
    "name": "your_custom_template_name",
    "language": { "code": "en_US" },
    "components": [
      {
        "type": "header",
        "parameters": [
          { "type": "text", "text": "Test Header" }
        ]
      },
      {
        "type": "body",
        "parameters": [
          { "type": "text", "text": "all permissions has been denied" }
        ]
      }
    ]
  }
}'

Important Notes (Free Tier Limitations)

In the free tier, the merchant (client) must first send a message to the courier company to start the conversation.

After that, the courier service staff can send notifications actively.

A conversation session is active for only 24 hours between the two parties in the free tier.

WhatsApp API Implementation Summary

Configuration steps completed via Meta Business Suite and Meta for Developers.

Token and Phone Number ID are required for API calls.

âś… This completes your step-by-step user guide for setting up and integrating the WhatsApp Message API with the Curfox Staff Portal.

Updated on October 15, 2025

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest

Powered by BetterDocs

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

© 2025 Curfox Docs - All Rights Reserved Parallax Technologies