🔧 Webhook Setup

Connect Trello to your WhatsApp Flow worker

1

Deploy Cloudflare Worker

First, deploy the backend worker to Cloudflare:

cd backend
npm install
wrangler login
wrangler deploy
2

Configure Secrets

Set your WhatsApp and Trello API credentials:

wrangler secret put WHATSAPP_TOKEN
wrangler secret put WHATSAPP_PHONE_NUMBER_ID
wrangler secret put TRELLO_API_KEY
wrangler secret put TRELLO_TOKEN
3

Create KV Namespace

Create a KV namespace for storing configuration:

wrangler kv:namespace create TRELLO_CONFIG
💡 Important
Update the namespace ID in wrangler.toml after running this command.
4

Your Webhook URL

Use this URL when creating the Trello webhook:

5

Create Trello Webhook

Run this command to register the webhook with Trello:

curl -X POST "https://api.trello.com/1/webhooks/" \
  -d "key=YOUR_TRELLO_API_KEY" \
  -d "token=YOUR_TRELLO_TOKEN" \
  -d "callbackURL=YOUR_WEBHOOK_URL" \
  -d "idModel=YOUR_BOARD_ID" \
  -d "description=WhatsApp Flow Notifications"
⚠️ Replace the placeholder values with your actual API keys and board ID.
🔑

Where to Get API Keys

📋
Trello API Key trello.com/app-key
🎫
Trello Token Click "Token" link on the API key page
💬
WhatsApp Business API Meta for Developers
🆔
Board ID Open board → Add .json to URL → Find "id" field