· 4 min · TextMeFlow Team

Send WhatsApp Notifications from Trello Using Webhooks

Teams working with Trello often miss the moment a card moves to "Done" or "Action required". A board notification in the Trello app drowns among the other notifications, and not everyone has Trello open all day. WhatsApp they do — people read it within minutes. In this article you build an integration that automatically sends a WhatsApp message as soon as a card changes list, without an intermediate automation tool.

Why go directly through webhooks

Trello has no native WhatsApp integration, and most teams then reach for Zapier or Make. That works, but costs an extra subscription and an extra layer that can fail. Trello's own webhook system already sends every board change as JSON to a URL of your choice — all you need is a small piece of code that translates that payload into a call to the TextMeFlow API. For anyone who'd rather not maintain a separate tool, or who already works with n8n/Make and wants to keep this specific case simpler, this is the direct route. (For most other integrations — CRMs, forms, spreadsheets — n8n, Make or Zapier is often still quicker to set up.)

Step 1: register a Trello webhook

Trello requires a POST call to its own API to create a webhook. You need an API key and token (via trello.com/app-key), and the ID of the board you want to follow.

curl -X POST "https://api.trello.com/1/webhooks" \
  -d "key=YOUR_API_KEY" \
  -d "token=YOUR_TOKEN" \
  -d "callbackURL=https://yourdomain.tld/trello-webhook" \
  -d "idModel=BOARD_ID" \
  -d "description=WhatsApp notifications"

Important: Trello first sends a HEAD request to your callbackURL to check that it is reachable, before the webhook is registered. Your endpoint must therefore already be live and return at least a 200 to a HEAD request.

Step 2: filter the payload for card moves

Trello sends an event for every board change — a new label, a changed description, a moved card. You only want to react to action.type === "updateCard" where listBefore and listAfter differ.

// routes/web.php or a separate controller
Route::post('/trello-webhook', function (Request $request) {
    $action = $request->input('action');

    if (($action['type'] ?? null) !== 'updateCard') {
        return response()->json(['ok' => true]);
    }

    $listBefore = $action['data']['listBefore']['name'] ?? null;
    $listAfter  = $action['data']['listAfter']['name'] ?? null;

    if (! $listAfter || $listBefore === $listAfter) {
        return response()->json(['ok' => true]);
    }

    $cardName = $action['data']['card']['name'] ?? 'Unknown card';

    Http::withToken(config('services.textmeflow.api_key'))
        ->post('https://textmeflow.eu/api/messages', [
            'to' => config('services.trello_notify.phone'),
            'body' => "Card \"{$cardName}\" has been moved to \"{$listAfter}\".",
        ]);

    return response()->json(['ok' => true]);
});

Only want a notification for a specific list — say, only when a card lands in "Action required"? Add a simple if ($listAfter !== 'Action required') return; before the API call.

Step 3: link it to a group instead of a single number

One hardcoded phone number is fine for a test, but in practice you often want the whole team to see the message. In that case, send to a WhatsApp group instead of a 1-to-1 number, or loop over a list of team members and send individually. Keep the API's rate limits and delivery statuses in mind — with multiple recipients per event, it's best to send sequentially with a short pause, not in a parallel burst.

Secure the endpoint

Trello does not sign its webhook payloads with HMAC by default the way TextMeFlow does for incoming WhatsApp events. So at the very least add a secret query parameter to your callbackURL (for example ?secret=xxxx) and check it on every request, so that not just anyone can call your endpoint with fake payloads. If you also process incoming WhatsApp webhooks yourself, do use the HMAC verification TextMeFlow provides there — see the explanation on verifying webhook signatures.

Automating further

The same structure works for other Trello events: a new card in a list (createCard), an added label, or an approaching due date. Combine it with the existing TextMeFlow webhook events if you also want to communicate the other way — for example a customer replying via WhatsApp and that automatically being posted as a comment on the right Trello card.

For teams who want to build this kind of integration without code: that works perfectly well via Make or n8n, where Trello is available as a ready-made trigger. The direct route above is mainly interesting if you already have a backend running and don't want an extra subscription.

Getting started

Want to try this yourself? TextMeFlow's free plan gives you 50 messages per month, with no expiry date — enough to build and test this Trello integration completely before you pay anything. Start free.

Want to send WhatsApp messages via API yourself?

Free forever up to 50 messages/month. Scan a QR and send your first message within 5 minutes.

Free forever