Eedesy
Book Demo
HomeProductsContact
Waflow
  • Introduction
  • Quick Start
  • WhatsApp Setup
  • Overview
  • Create Workspace
  • Team Management
  • Overview
  • Import Contacts
  • Tags & Segments
  • Custom Fields
  • Overview
  • Create Template
  • Variables
  • Approval Process
  • Overview
  • Create Campaign
  • Scheduling
  • Tracking
  • Overview
  • Reports
  • Overview
  • Drip Sequences
  • Triggers
  • Overview
  • Authentication
  • WhatsApp
  • Contacts
  • Templates
  • Campaigns
  • Analytics
  • Overview
  • Billing
  • Integrations

Related Products

  • AI Voice Agent
  • AI Voice Assistant
  • Try Free
Waflow
  • Introduction
  • Quick Start
  • WhatsApp Setup
  • Overview
  • Create Workspace
  • Team Management
  • Overview
  • Import Contacts
  • Tags & Segments
  • Custom Fields
  • Overview
  • Create Template
  • Variables
  • Approval Process
  • Overview
  • Create Campaign
  • Scheduling
  • Tracking
  • Overview
  • Reports
  • Overview
  • Drip Sequences
  • Triggers
  • Overview
  • Authentication
  • WhatsApp
  • Contacts
  • Templates
  • Campaigns
  • Analytics
  • Overview
  • Billing
  • Integrations
  1. Docs
  2. Waflow
  3. API Reference
  4. WhatsApp

WhatsApp API

WhatsApp Business API setup, configuration, and messaging endpoints

WhatsApp API

Configure your WhatsApp Business API integration and send messages programmatically.

Setup Guide

Before using the WhatsApp endpoints, you need to obtain credentials from Facebook/Meta.

Step 1: Create Facebook Developer Account

  1. Go to developers.facebook.com
  2. Click 'Get Started' and create an account
  3. Verify your email and phone number
  4. Complete developer verification if prompted

Step 2: Create Facebook App

  1. Go to 'My Apps' > 'Create App'
  2. Select 'Business' as the app type
  3. Fill in app name and contact email
  4. Add WhatsApp product to your app
  5. Note down your App ID and App Secret

Step 3: Set Up WhatsApp Business API

  1. Go to WhatsApp > API Setup in your app
  2. Add a phone number (or use test number)
  3. Generate temporary access token
  4. Note down your WhatsApp Business Account ID
  5. Copy the temporary access token

Step 4: Generate System User Token

  1. Go to Business Settings > System Users
  2. Create a new system user
  3. Assign WhatsApp Business Management permission
  4. Generate a permanent access token
  5. Save this token securely - it doesn't expire

Step 5: Configure Webhook (Optional)

  1. Go to WhatsApp > Configuration
  2. Add webhook URL: https://your-domain.com/webhook/whatsapp
  3. Use a verify token (any random string)
  4. Subscribe to messages and messaging_postbacks events
  5. Verify webhook endpoint

Required Credentials

Credential Description
Facebook App ID Your Facebook App ID from step 2
Facebook App Secret Your Facebook App Secret from step 2
WhatsApp Business Account ID From WhatsApp API Setup
System User Access Token Long-lived token from step 4
Phone Number ID From WhatsApp API Setup
Webhook Verify Token Custom token for webhook verification

Troubleshooting

Issue Solution
Can't find WhatsApp product Ensure your developer account is verified and you've selected 'Business' app type
Access token expired Use System User tokens instead of temporary tokens for production
Phone number not verified Verify your phone number in WhatsApp Business API settings
Webhook verification failed Ensure your webhook endpoint returns the challenge parameter

Configure WhatsApp Integration

Set up WhatsApp Business API credentials in your workspace.

POST /api/whatsapp/configure

Request Body:

{
  "facebookAppId": "your_facebook_app_id",
  "facebookAppSecret": "your_facebook_app_secret",
  "whatsappBusinessAccountId": "your_whatsapp_business_account_id",
  "accessToken": "your_system_user_access_token",
  "phoneNumberId": "your_phone_number_id",
  "webhookVerifyToken": "your_webhook_verify_token"
}

Response:

{
  "success": true,
  "message": "WhatsApp configuration saved successfully",
  "configuration": {
    "id": 1,
    "isConfigured": true,
    "phoneNumber": "+1234567890",
    "businessAccountId": "your_whatsapp_business_account_id",
    "tokenExpiresAt": "2025-12-31T23:59:59.000Z",
    "createdAt": "2025-01-01T00:00:00.000Z"
  }
}

Check WhatsApp Status

Check the status of your WhatsApp Business API integration.

GET /api/whatsapp/status

Response:

{
  "isConfigured": true,
  "isActive": true,
  "phoneNumber": "+1234567890",
  "businessAccountId": "123456789",
  "tokenStatus": "valid",
  "tokenExpiresAt": "2025-12-31T23:59:59.000Z",
  "lastSyncAt": "2025-01-01T12:00:00.000Z",
  "templatesCount": 5,
  "capabilities": {
    "sendMessages": true,
    "receiveMessages": true,
    "manageTemplates": true,
    "accessInsights": true
  }
}

Sync WhatsApp Templates

Import approved message templates from WhatsApp Business API.

POST /api/whatsapp/templates/sync

Response:

{
  "success": true,
  "message": "Templates synced successfully",
  "imported": 5,
  "updated": 2,
  "skipped": 1,
  "templates": [
    {
      "id": 1,
      "name": "welcome_message",
      "status": "APPROVED",
      "language": "en",
      "category": "MARKETING",
      "components": [
        {
          "type": "BODY",
          "text": "Hello {{1}}, welcome to {{2}}!"
        }
      ]
    }
  ]
}

Send WhatsApp Message

Send a message using WhatsApp Business API.

POST /api/whatsapp/send

Request Body:

{
  "to": "+1234567890",
  "type": "template",
  "template": {
    "name": "welcome_message",
    "language": {
      "code": "en"
    },
    "components": [
      {
        "type": "body",
        "parameters": [
          {
            "type": "text",
            "text": "John"
          },
          {
            "type": "text",
            "text": "Acme Corp"
          }
        ]
      }
    ]
  }
}

Response:

{
  "success": true,
  "message": "Message sent successfully",
  "messageId": "wamid.ABC123...",
  "status": "sent",
  "timestamp": "2025-01-01T12:00:00.000Z"
}

cURL Example:

curl -X POST "https://waflow.edesy.in/api/whatsapp/send" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
    "to": "+1234567890",
    "type": "template",
    "template": {
      "name": "welcome_message",
      "language": {"code": "en"},
      "components": [
        {
          "type": "body",
          "parameters": [
            {"type": "text", "text": "John"},
            {"type": "text", "text": "Acme Corp"}
          ]
        }
      ]
    }
  }'

List WhatsApp Templates

Get all approved WhatsApp message templates.

GET /api/whatsapp/templates

Response:

{
  "templates": [
    {
      "id": 1,
      "name": "welcome_message",
      "status": "APPROVED",
      "language": "en",
      "category": "MARKETING",
      "components": [
        {
          "type": "HEADER",
          "format": "TEXT",
          "text": "Welcome!"
        },
        {
          "type": "BODY",
          "text": "Hello {{1}}, welcome to {{2}}! We're excited to have you on board."
        },
        {
          "type": "FOOTER",
          "text": "Best regards, Team"
        }
      ]
    }
  ],
  "total": 1
}

Testing Your Setup

After completing the setup:

  1. Go to Settings > WhatsApp Configuration in WAFlow
  2. Enter your credentials and save
  3. Check that the status indicator turns green
  4. Try syncing templates from WhatsApp
  5. Send a test message to verify
Previous
Authentication
Next
Contacts

On this page

  • Setup Guide
  • Step 1: Create Facebook Developer Account
  • Step 2: Create Facebook App
  • Step 3: Set Up WhatsApp Business API
  • Step 4: Generate System User Token
  • Step 5: Configure Webhook (Optional)
  • Required Credentials
  • Troubleshooting
  • Configure WhatsApp Integration
  • Check WhatsApp Status
  • Sync WhatsApp Templates
  • Send WhatsApp Message
  • List WhatsApp Templates
  • Testing Your Setup

Stay Updated

Get the latest updates on AI voice technology, product releases, and exclusive resources.

Get Started

Try our products for free
AI Voice Agent
Build voice AI for calls
WhatsApp AI Bot
Automate WhatsApp chats
Website Chatbot
AI chat for websites
Edesy CRM
Manage leads & customers
Book a DemoCall UsEmail Us
Eedesy

Your all-in-one platform for digital innovation. We build AI-powered solutions that transform how businesses operate.

[email protected]+91 95475 31359

Products

  • AI Voice Assistant
  • WhatsApp Voice AI
  • WhatsApp Bot Builder
  • AI Website Chatbot
  • AI-SDR
  • Number Masking
  • Shopify Apps
  • View All Products

Solutions

  • For E-commerce
  • For Healthcare
  • For Real Estate
  • For Restaurants
  • For Appointments
  • View All Use Cases

Services

  • AI Chatbot Development
  • Voice AI Development
  • Shopify Development
  • SaaS Development
  • WhatsApp API Integration
  • View All Services

Resources

  • Documentation
  • Voice Agent Docs
  • API Reference
  • Number Masking API Docs
  • Blog
  • Changelog
  • Book a Demo

Company

  • About Us
  • Contact
  • Careers
  • Privacy Policy
  • Terms of Service

Products

  • AI Voice Assistant
  • WhatsApp Voice AI
  • WhatsApp Bot Builder
  • AI Website Chatbot
  • AI-SDR
  • Number Masking
  • Shopify Apps
  • View All Products

Solutions

  • For E-commerce
  • For Healthcare
  • For Real Estate
  • For Restaurants
  • For Appointments
  • View All Use Cases

Services

  • AI Chatbot Development
  • Voice AI Development
  • Shopify Development
  • SaaS Development
  • WhatsApp API Integration
  • View All Services

Resources

  • Documentation
  • Voice Agent Docs
  • API Reference
  • Number Masking API Docs
  • Blog
  • Changelog
  • Book a Demo

Company

  • About Us
  • Contact
  • Careers
  • Privacy Policy
  • Terms of Service
  • AI Voice Assistant
  • WhatsApp Voice AI
  • WhatsApp Bot Builder
  • AI Website Chatbot
  • AI-SDR
  • Number Masking
  • Shopify Apps
  • View All Products
  • For E-commerce
  • For Healthcare
  • For Real Estate
  • For Restaurants
  • For Appointments
  • View All Use Cases
  • AI Chatbot Development
  • Voice AI Development
  • Shopify Development
  • SaaS Development
  • WhatsApp API Integration
  • View All Services
  • Documentation
  • Voice Agent Docs
  • API Reference
  • Number Masking API Docs
  • Blog
  • Changelog
  • Book a Demo
  • About Us
  • Contact
  • Careers
  • Privacy Policy
  • Terms of Service

Popular Free Tools

Compress PDFMerge PDFPDF to WordGST CalculatorEMI CalculatorSIP CalculatorJSON FormatterBase64 EncoderImage CompressorQR Code GeneratorVoice AI ROI CalculatorAmazon FBA CalculatorAI Email WriterVideo to GIFPrivacy Policy GeneratorCRM ROI CalculatorMeeting Cost Calculator
Categories:PDF ToolsDeveloper ToolsFinance CalculatorsImage ToolsVideo ToolsAI Writing ToolsAudio ToolsWhatsApp ToolsDocument GeneratorsVoice AI ToolsE-commerce ToolsView All Tools

© 2026 Edesy Technology Labs Pvt Ltd

SSL Secured
99.9% Uptime