WhatsApp Business API Setup

Complete setup to send tickets via WhatsApp

1
Create Meta Developer App

✅ You've already done this by accessing Accounts Center!

2
Create WhatsApp Business App

  1. Click "Create App"
  2. Choose "Business" type
  3. Name it (e.g., "FMG_6IX Tickets")
  4. Add WhatsApp product to your app

3
Get Your API Credentials

You need 2 things:

WHATSAPP_ACCESS_TOKEN

Found in: WhatsApp → API Setup → Temporary Access Token

⚠️ Generate a permanent token for production!

WHATSAPP_PHONE_NUMBER_ID

Found in: WhatsApp → API Setup → Phone Number ID

Where to find these: In your app dashboard, go to:
WhatsApp → API Setup → Configuration

4
Add Secrets to Base44

  1. Go to your Base44 dashboard
  2. Navigate to Settings → Secrets
  3. Add these two secrets:
    WHATSAPP_ACCESS_TOKEN
    WHATSAPP_PHONE_NUMBER_ID

5
Create Message Template

IMPORTANT: WhatsApp requires pre-approved templates

You cannot send custom messages. You must create and get approval for templates.

Create a template named: ticket_delivery

Template Content:

Hi {{1}},

Your ticket for {{2}} is ready!

🎫 Ticket Code: {{3}}
📅 Event Date: {{4}}

Show this QR code at the venue for entry.

Thank you!
- FMG_6IX

Variables: 1=Name, 2=Event Title, 3=Ticket Code, 4=Event Date

How to create:
Dashboard → WhatsApp → Message Templates → Create Template
Approval usually takes 1-2 hours

6
Test It Out!

Once your template is approved:

  1. Go to Send Tickets page
  2. Select a ticket
  3. Click "Send via WhatsApp"
  4. Enter the recipient's phone number with country code (e.g., +14165551234)

You're all set!

The ticket will be delivered via WhatsApp with the QR code.