📲 How to Send WhatsApp API Message (Step-by-Step)

📲 How to Send WhatsApp API Message (Step-by-Step)

api

🧩 Step 1: Create Developer Account

📦 Step 2: Add WhatsApp API

  1. Open your App Dashboard
  2. Click “Add Product”
  3. Select WhatsApp
  4. Click “Set Up”

📱 Step 3: Setup Test Number

  • Meta will give you a test WhatsApp number
  • Add your own number as a recipient (receiver)

🔑 Step 4: Get Access Token

  1. Go to WhatsApp dashboard
  2. Find Temporary Access Token
  3. Copy it (you’ll need it for API calls)

💬 Step 5: Send Message (API Request)

👉 API Endpoint:

 
POST https://graph.facebook.com/v19.0/PHONE_NUMBER_ID/messages
 

👉 Request Body (JSON):

 
{
“messaging_product”: “whatsapp”,
“to”: “91XXXXXXXXXX”,
“type”: “text”,
“text”: {
“body”: “Hello Sir, this is a WhatsApp API test message ✅”
}
}
 

🧪 Step 6: Send Request

✔️ Using Postman

  • Method: POST
  • Enter URL
  • Add Headers:
 
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: application/json
 
  • Body → raw → paste JSON
  • Click Send

✔️ Using CURL (Terminal)

 
curl -X POST https://graph.facebook.com/v19.0/PHONE_NUMBER_ID/messages \
-H “Authorization: Bearer YOUR_ACCESS_TOKEN” \
-H “Content-Type: application/json” \
-d ‘{
“messaging_product”: “whatsapp”,
“to”: “91XXXXXXXXXX”,
“type”: “text”,
“text”: {“body”: “Hello from API”}
}’
 

⚠️ Step 7: Important Rules

  • User must give permission (opt-in)
  • First message must be a template message
  • After 24 hours, you cannot send free messages
  • Avoid spam ❌ (your number can be blocked)

🚀 Final Simple Flow

  1. Create Meta developer account
  2. Add WhatsApp API
  3. Get access token
  4. Send API request
  5. Message delivered ✅

If you want next level help, I can:

  • ✅ Give you ready-made working code (Node.js / PHP)
  • ✅ Show bulk messaging setup
  • ✅ Help you create your own WhatsApp dashboard

Just tell me 👍

 
 

Leave a Comment

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