Logo

Get Click Media

AI Communication Platform

Trusted by 10,000+ businesses

WhatsApp

WhatsApp API Integration Guide — Connect WhatsApp to Your Platform

Connect WhatsApp Business API to Shopify, WooCommerce, Salesforce, HubSpot, Zoho, or any custom platform via REST API and webhooks. Code samples, architecture, and pre-built connectors from an official Meta BSP.

Get Click Media7 min read
WhatsApp API Integration Guide — Connect WhatsApp to Your Platform

WhatsApp API integration is the process of connecting WhatsApp Business API to your existing business systems — CRM, e-commerce platform, ERP, or custom application — so that WhatsApp messages are automatically triggered, received, and processed without manual intervention. Get Click Media supports integration with Shopify, WooCommerce, Salesforce, HubSpot, Zoho, Freshdesk, LeadSquared, and any custom platform via REST API and webhooks.

How WhatsApp API Integration Works

Get Click Media's platform handles authentication, message queuing, delivery tracking, webhook management, and failover. Your team writes the business logic — we handle the WhatsApp infrastructure.

DirectionWhat HappensYour Role
Outbound (your system → WhatsApp)Your application sends a message to a customer's WhatsApp. Your system calls Get Click Media's REST API with phone number, template, and variables.Trigger the API call from your CRM, OMS, or automation platform
Inbound (WhatsApp → your system)A customer messages your business number. GCM posts the message payload to your webhook endpoint as a JSON event in real time.Your server receives the webhook, processes it, and responds via REST API

3 Ways to Integrate — Choose What Fits Your Stack

  • No-code plugins — Shopify, WooCommerce, Magento — plug-and-play plugins connect WhatsApp to your store in under 60 minutes. No developer required.
  • Pre-built CRM connectors — Native connectors for Salesforce, HubSpot, Zoho, Freshdesk, LeadSquared, Sell.do, and Razorpay — sync contacts and trigger messages on CRM events.
  • REST API + webhooks — For custom platforms, proprietary CRMs, and complex workflows — the most flexible option. Any system that can make an HTTP request can integrate.

Native Connectors for 8 Platforms

PlatformConnector TypeSetup TimeWhat It Does
SalesforceNative app — AppExchange2–4 hoursTrigger WA on lead/opportunity events, log in Activity timeline, sync opt-in status
HubSpotNative integration1–2 hoursWA in HubSpot workflows, contact WA status, conversation inbox
Zoho CRMZoho Marketplace app1–2 hoursWA triggers in workflows, interaction logging, lead qualification via chatbot
FreshdeskFreshdesk Marketplace1 hourWA as support channel, agent routing, CSAT via WA
LeadSquaredAPI connector2–3 hoursLead follow-up automation, enquiry-to-conversation flow, lead scoring
Sell.doNative integration1–2 hoursReal estate lead automation, site visit reminders, payment alerts
RazorpayWebhook + API2–4 hoursPayment confirmation, payment link delivery, failed payment alerts
Custom CRMREST API + webhooksVariesAny event can trigger a WA message via API call. Replies post back via webhook.

For a deeper look at connecting WhatsApp to sales and support tools, see WhatsApp CRM integration.

From API Credentials to Production: Step by Step

  1. Get your API credentials — After onboarding, receive your API key and Phone Number ID. Store as environment variables — never hardcode.
  2. Send your first test message — POST to our messages endpoint using your own number as the test recipient. Arrives in seconds via the sandbox.
  3. Set up your webhook endpoint — Create an HTTPS endpoint that receives inbound messages and status updates. Must respond HTTP 200 within 3 seconds.
  4. Connect to your data sources — Integrate WhatsApp logic with your OMS, CRM, or appointment database for live, personalised data replies.
  5. Handle opt-outs and errors — Honour STOP events immediately. Implement exponential backoff for 429s; never blindly retry 400 errors.
  6. Test in staging, then go live — Full end-to-end testing in GCM's sandbox before moving to production.

Send Your First Message — Node.js

const axios = require('axios');

const sendWhatsApp = async (to, templateName, variables) => {
  const res = await axios.post(
    'https://api.getclickmedia.com/v2/whatsapp/messages',
    {
      to,
      type: 'template',
      template: {
        name: templateName,
        language: { code: 'en' },
        components: [{ type: 'body', parameters: variables }]
      }
    },
    { headers: {
        'Authorization': `Bearer ${process.env.GCM_API_KEY}`,
        'X-Phone-Number-ID': process.env.GCM_PHONE_ID
      }
    }
  );
  return res.data; // { message_id: 'msg_xxxx', status: 'sent' }
};

// Trigger on order placed:
sendWhatsApp('+919876543210', 'order_confirmation_v2',
  [{ type: 'text', text: '#ORD-4782' }, { type: 'text', text: 'Nike Air Max' }]);

SDKs are available for Node.js, Python, PHP, and Java — full documentation at getclickmedia.com/whatsapp-api-documentation.

Common WhatsApp API Integration Patterns in India

ScenarioWhat It EnablesDifficulty
Shopify — E-commerceOrder confirmation, shipping updates, cart recovery, review requestsEasy
Salesforce — Enterprise SalesLead follow-up, opportunity nurture, meeting confirmation, deal-closed welcomeMedium
HubSpot — Inbound MarketingForm submission follow-up, lifecycle-stage campaigns, contact timeline loggingEasy
Razorpay — Payment GatewayPayment links, confirmations, retry nudges, subscription remindersMedium
Hospital HMS / Clinic SoftwareAppointment confirmation, reminders, lab reports, feedback formsMedium
LMS / EdTech PlatformEnrollment welcome, module nudges, re-engagement, exam remindersMedium
Chatbot + Custom DatabaseLive order/account/inventory lookups with agent escalationMedium-High
Marketing Automation PlatformWhatsApp alongside email/SMS in the same journey (MoEngage, CleverTap)Medium
Real Estate CRM (Sell.do, LeadSquared)Lead follow-up, site visit confirmation, payment remindersEasy
Custom ERP / Legacy SystemInvoice, dispatch, and stock alerts via simple HTTP POSTVaries

Core WhatsApp API Endpoints

MethodEndpointDescription
POST/v2/whatsapp/messagesSend a WhatsApp message (template or session)
POST/v2/whatsapp/messages/batchSend bulk messages — campaign broadcast
GET/v2/whatsapp/messages/{id}Get status + events for a specific message
POST/v2/whatsapp/mediaUpload media file for use in messages
GET/v2/whatsapp/contacts/{phone}Check if a number is a valid WhatsApp user
POST/v2/whatsapp/webhooksRegister a webhook endpoint
GET/v2/whatsapp/templatesList all approved message templates
GET/v2/whatsapp/analyticsGet campaign delivery and engagement analytics
POST/v2/whatsapp/conversations/replyReply within an open 24-hour conversation window
GET/v2/whatsapp/usageGet monthly usage summary and billing data

Full API documentation with schemas, error codes, and rate limit details: WhatsApp API documentation. See also WhatsApp API error codes.

Best Practices: Security, Reliability, Performance

Security

  • Store API keys in environment variables, never in source code
  • Restrict API key access by IP allowlist
  • Verify webhook signatures with HMAC-SHA256
  • Use HTTPS only — reject HTTP delivery

Reliability

  • Acknowledge webhooks with HTTP 200 within 3 seconds
  • Exponential backoff for 429 and 5xx responses
  • Use idempotency keys to prevent duplicate sends
  • Log all API calls with message_id, retain 90 days

Performance

  • Use batch endpoints for campaign broadcasts
  • Pre-upload media and reuse media_id
  • Dedicated transactional queue for OTPs and alerts
  • Cache template IDs and media IDs

Ready to connect WhatsApp to your platform? Talk to our technical team about your specific stack, or explore related guides: WhatsApp Business API, WhatsApp API pricing in India, WhatsApp CRM integration, and WhatsApp chatbot.

WhatsApp API Integrationwhatsapp business integrationwhatsapp business api integrationintegrate whatsapp websitecrm whatsapp apiwhatsapp api connectwhatsapp shopify integrationwhatsapp salesforce integrationwhatsapp hubspot integration

Frequently Asked Questions

For Shopify and WooCommerce, Get Click Media provides plugins that connect WhatsApp in under 60 minutes without coding. For custom websites, integration involves calling our REST API from your server-side code and setting up a webhook endpoint to receive inbound messages and status updates.

For Shopify and WooCommerce, no. For CRM integrations (HubSpot, Zoho, Freshdesk, LeadSquared), most connections are made through the CRM's integration settings with minimal technical knowledge. For custom platforms, a developer is required for REST API calls and webhook handling.

Yes. Get Click Media has a native Salesforce integration on the AppExchange — it triggers WhatsApp from Salesforce workflows, logs interactions in the Activity timeline, and syncs opt-in status. Setup typically takes 2 to 4 hours.

Inbound messages are delivered to your webhook endpoint as JSON POST requests. Your server extracts the phone number and message content, processes it per your business logic, and responds via the REST API.

Get Click Media retries event delivery with exponential backoff — up to 5 attempts over 24 hours. If the endpoint remains unavailable, undelivered events are queued and replayed once it recovers.

Yes — JPEG, PNG, animated GIF, MP4 video, MP3/AAC audio, and PDF attachments. For large campaigns, upload to GCM's CDN and reuse the returned media_id.

Get Click Media provides a sandbox environment mirroring production behaviour without conversation charges. You can also whitelist your own number for real-device testing.

The Growth tier supports 100 messages per second; Enterprise supports 1,000+. A dedicated transactional queue guarantees sub-second delivery for OTPs and fraud alerts independent of campaign traffic.

Related Articles

WhatsApp Business API Documentation — Complete Reference India 2026
WhatsApp

WhatsApp Business API Documentation — Complete Reference India 2026

WhatsApp Business API documentation covering REST API endpoints, webhook event schemas, Cloud API authentication, template management, and Catalog and Flows APIs. Code samples in Node.js, Python, PHP, and Java from an official Meta BSP.

6 min read
WhatsApp API Error Codes — Complete Reference and Troubleshooting Guide
WhatsApp

WhatsApp API Error Codes — Complete Reference and Troubleshooting Guide

Complete WhatsApp Business API error code reference — 400, 429, 130429, 131030, 131047, 131051, 132000, and more. What each code means, why it happens, and the exact fix, with Node.js retry-logic code samples.

7 min read
WhatsApp API Rate Limits — Complete Guide for Indian Developers
WhatsApp

WhatsApp API Rate Limits — Complete Guide for Indian Developers

WhatsApp Business API has per-second throughput limits and daily messaging tier limits that scale from 1,000 to unlimited conversations. Learn both systems, Meta's tier progression, quality score factors, and a proven warm-up schedule.

6 min read