Skip to main content

Connect Your WhatsApp Number

This guide walks you through connecting your phone number to Sydx AI using the WhatsApp Cloud API. By the end, you'll be able to send and receive WhatsApp messages directly from your Sydx AI inbox.

Before You Start

Make sure you've completed the Meta WABA Setup guide first. You'll need your Meta App, WABA ID, and a permanent Access Token ready.


Overview

Here's what we'll do:

StepWhatTime
1Add your phone number to Meta2 min
2Verify with OTP1 min
3Find your Phone Number ID1 min
4Register the number for Cloud API1 min
5Configure webhooks3 min
6Subscribe your WABA to webhooks1 min
7Enter credentials in Sydx AI2 min
8Test everything2 min

Total time: ~15 minutes


Step 1: Add Your Phone Number

  1. Go to developers.facebook.com → Open your Meta App
  2. In the left sidebar, click WhatsAppAPI Setup
  3. Under "Step 1: Select phone numbers", click Add phone number
  4. Enter:
    • Display Name — Your business name as it will appear to customers
      (e.g., "My Store Support")
    • Phone Number — The number you want to use, with country code
      (e.g., +91 98765 43210)
    • Business Category — Select the appropriate category
  5. Click Next
Phone Number Requirements
  • The number must not be registered on WhatsApp (personal or business)
  • If it is, you'll need to delete the WhatsApp account from that number first
  • The number must be able to receive SMS or Voice calls for OTP verification

Step 2: Verify with OTP

  1. Choose your verification method: SMS or Voice Call
  2. You'll receive a 6-digit OTP on your phone number
  3. Enter the OTP code on the Meta verification screen
  4. Once verified, your number will show status: Verified

Step 3: Find Your Correct Phone Number ID

This is a critical step. The Phone Number ID is what Meta uses to identify your number in API calls.

Using Graph API Explorer

  1. Open the Graph API Explorer

  2. Select your Meta App from the dropdown (top right)

  3. Set the API version to v21.0 (recommended for stability)

  4. Make this API call:

    Method: GET
    URL:

    {YOUR_WABA_ID}/phone_numbers
  5. Click Submit

  6. In the response, find your phone number and note the id field:

{
"data": [
{
"verified_name": "My Store Support",
"display_phone_number": "+91 98765 43210",
"id": "123456789012345" ← This is your Phone Number ID
}
]
}
Use the ID from This API Call

The Phone Number ID shown elsewhere in the Meta dashboard may sometimes differ. Always use the ID returned from this API call to avoid errors.


Step 4: Register the Number for Cloud API

This tells Meta you want to use this number via the Cloud API.

Using Graph API Explorer

  1. In the Graph API Explorer:

    • Method: POST
    • URL: {YOUR_PHONE_NUMBER_ID}/register
    • API Version: v21.0
  2. Switch to the JSON tab under the URL and enter:

{
"messaging_product": "whatsapp",
"pin": "123456"
}
  1. Click Submit

  2. You should receive:

{
"success": true
}
About the PIN

The pin is your chosen 6-digit PIN for two-step verification. Remember this PIN — you'll need it if you ever re-register the number. You can choose any 6-digit number.


Step 5: Configure Webhooks

Webhooks allow Sydx AI to receive messages and delivery updates from WhatsApp in real-time.

5.1: Get Your Webhook Details from Sydx AI

  1. Log in to your Sydx AI account
  2. Go to SettingsMeta Cloud API (or check your Workspace Setup page)
  3. Note down:
    • Callback URL — looks like: https://sydxai.com/api/v1/webhook/{your-tenant-id}
    • Verify Token — a unique token automatically generated for your workspace

5.2: Enter Webhook in Meta Dashboard

  1. In your Meta App, go to WhatsAppConfiguration

  2. Under Webhook, click Edit

  3. Paste in:

    • Callback URL — Your Sydx AI webhook URL from step 5.1
    • Verify Token — Your verify token from step 5.1
  4. Click Verify and Save

    If successful, Meta will confirm the webhook is verified ✅

5.3: Subscribe to Webhook Events

On the same Configuration page, you'll see a list of webhook fields. Subscribe to:

FieldToggleWhy It's Needed
messagesSubscribeReceive incoming messages + delivery/read receipts
About Delivery Receipts

There is no separate "message_deliveries" field. All delivery status updates (sent, delivered, read) are included within the messages webhook field. Just subscribing to messages is sufficient.

You can optionally subscribe to these for additional features:

  • message_template_status_update — Know when templates are approved/rejected
  • phone_number_quality_update — Monitor your number's quality rating

Step 6: Subscribe WABA to App Webhooks

Don't Skip This Step!

This is the most important step and the most commonly missed one. Without it, your webhooks are configured but Meta won't actually deliver any messages to your server!

This step links your WhatsApp Business Account to your app's webhooks, telling Meta: "Send this WABA's events to this app."

Using Graph API Explorer

  1. In the Graph API Explorer:

    • Method: POST
    • URL: {YOUR_WABA_ID}/subscribed_apps
    • API Version: v21.0
  2. Click Submit

  3. You should receive:

{
"success": true
}

Verify It Worked

To confirm the subscription is active, make a GET request to the same URL:

GET {YOUR_WABA_ID}/subscribed_apps

Your app should appear in the response.

Why Is This Needed?

Think of it this way:

  • Step 5 tells Meta where to send webhooks (the URL)
  • Step 6 tells Meta which account's events to send there

Without Step 6, Meta has the address but doesn't know what mail to deliver!


Step 7: Enter Credentials in Sydx AI

Now connect everything in your Sydx AI workspace.

  1. Log in to Sydx AI
  2. Go to SettingsMeta Cloud API (or complete the Workspace Setup wizard)
  3. Enter the following:
FieldValueWhere You Got It
App IDYour Meta App IDApp Dashboard → App Settings → Basic
App SecretYour Meta App SecretApp Settings → Basic → Show
Access TokenSystem User permanent tokenCreated in WABA Setup
WABA IDWhatsApp Business Account IDBusiness Settings → WhatsApp Accounts
Phone Number IDFrom Step 3 of this guideGraph API: GET /WABA_ID/phone_numbers
  1. Click Save & Verify

Sydx AI will validate your credentials and confirm the connection ✅


Step 8: Test Your Connection

Send a Test Message (Incoming)

  1. From your personal WhatsApp, send a message (e.g., "Hello!") to your business number
  2. Open the Sydx AI Inbox
  3. The message should appear within a few seconds 🎉

Send a Reply (Outgoing)

  1. In the Sydx AI Inbox, click on the received message
  2. Type a reply and click Send
  3. The reply should be delivered to the personal WhatsApp number

Check Delivery Status

After sending from Sydx AI:

  • ✓ Single tick = Sent
  • ✓✓ Double tick = Delivered
  • ✓✓ Blue ticks = Read

These statuses update in real-time within the Sydx AI inbox.


Quick Reference: All Your IDs

Keep these handy for your records:

ItemYour Value
Meta App Name_______________
App ID_______________
WABA ID_______________
Phone Number_______________
Phone Number ID_______________
Webhook Verify Token(auto-generated by Sydx AI)

Troubleshooting

Messages Not Appearing in Inbox

I completed all steps but messages aren't showing up

Most likely cause: Step 6 (subscribed_apps) was missed.

Fix: Go to Graph API Explorer and run:

POST /{YOUR_WABA_ID}/subscribed_apps

This links your WABA to your app's webhook configuration.

Webhook verification fails

Possible causes:

  • The Verify Token you entered in Meta doesn't match the one in Sydx AI
  • Your Sydx AI server might be temporarily unreachable

Fix: Go to Sydx AI → Settings → Meta Cloud API, copy the Verify Token, and re-enter it in Meta → WhatsApp → Configuration → Webhook → Edit.

I get "Object does not exist" errors in Graph API

Cause: You're using the wrong Phone Number ID.

Fix: Run this API call to get the correct ID:

GET /{YOUR_WABA_ID}/phone_numbers

Use the id from the response — don't rely on IDs shown elsewhere in the dashboard.

I can receive messages but can't send replies

Possible causes:

  • Your Access Token may have expired (if using a temporary token)
  • The phone number isn't registered for Cloud API

Fix:

  1. Generate a permanent System User token (see Meta WABA Setup)
  2. Update the token in Sydx AI → Settings → Meta Cloud API
  3. If needed, re-run the register step (Step 4 above)
Messages sent but not delivered (stuck on single tick)

Possible causes:

  • The recipient's number is incorrect
  • The 24-hour messaging window has expired (you can only send template messages outside the window)

Fix: If more than 24 hours have passed since the customer's last message, use an approved Message Template instead of a freeform text message.


Need Help?

If you're stuck at any step, reach out to us:


This guide covers the WhatsApp Cloud API setup. For information about other Sydx AI features, check the Features Guide.