whatsappBusiness.config(...) with credentials from Meta for Developers.
Config
| Option | Description | Env fallback |
|---|---|---|
accessToken | Permanent or system-user token from Meta for Developers. | SPECTRUM_WHATSAPP_BUSINESS_ACCESS_TOKEN |
phoneNumberId | The phone number ID for the business account sending messages. | SPECTRUM_WHATSAPP_BUSINESS_PHONE_NUMBER_ID |
appSecret | App secret used to verify webhook payload signatures. | SPECTRUM_WHATSAPP_BUSINESS_APP_SECRET |
SPECTRUM_WHATSAPP_BUSINESS_ACCESS_TOKEN
and SPECTRUM_WHATSAPP_BUSINESS_PHONE_NUMBER_ID, calling
whatsappBusiness.config() with no arguments boots the provider in direct mode
from the environment. A partial set (only one of the two) instead falls back to
cloud mode, which uses your projectId/projectSecret.
Find these values in your WhatsApp Business app settings on Meta for Developers.