Skip to content
Drydock
ConfigurationActions & NotificationsWhatsApp

WhatsApp

The whatsapp trigger lets you send container update notifications via the WhatsApp Cloud API.

Pre-release docs

These docs cover v1.9, a release candidate that isn't generally available yet. Running the stable release? Read the docs for v1.7.

The whatsapp trigger lets you send container update notifications as WhatsApp messages through the WhatsApp Business Cloud API. You need a Meta app with a WhatsApp phone number and an access token that is allowed to message the recipient.

Variables

Env varRequiredDescriptionSupported valuesDefault value when missing
DD_NOTIFICATION_WHATSAPP_{trigger_name}_PHONENUMBERID🔴The WhatsApp Business phone number id that sends the messageThe numeric id from the Meta app dashboard
DD_NOTIFICATION_WHATSAPP_{trigger_name}_TOKEN🔴The Cloud API access tokenA Meta access token
DD_NOTIFICATION_WHATSAPP_{trigger_name}_RECIPIENT🔴The recipient phone numberDigits only, including country code
DD_NOTIFICATION_WHATSAPP_{trigger_name}_URL⚪The Graph API base urlAn http or https urlhttps://graph.facebook.com/v19.0
DD_NOTIFICATION_WHATSAPP_{trigger_name}_DISABLETITLE⚪Send the body only, without the bold title linetrue, falsefalse
This trigger also supports the common configuration variables.
WhatsApp only delivers free-form text to recipients who messaged your business number in the last 24 hours. Outside that window Meta rejects the message and the trigger reports the API error.

Examples

Configure the trigger

services:
  drydock:
    image: codeswhat/drydock:1.9.0-rc.6
    ...
    environment:
      - DD_NOTIFICATION_WHATSAPP_ME_PHONENUMBERID=1234567890
      - DD_NOTIFICATION_WHATSAPP_ME_TOKEN=your-access-token
      - DD_NOTIFICATION_WHATSAPP_ME_RECIPIENT=15550001111