Transports
WhatsApp Cloud
Send WhatsApp templates and session text through Meta Cloud API.
Send WhatsApp templates and session text through Meta Cloud API.
The one rule
Create this transport under the matching sently channel sender.
Configuration
| Option | Type | Default or requirement |
|---|---|---|
accessToken | string | required |
phoneNumberId | string | required |
apiVersion | string | v26.0 |
import { createWhatsAppSender } from "sently/whatsapp";
import { WhatsAppCloudTransport } from "sently/transports/whatsapp-cloud";
const sender = createWhatsAppSender({ transport: new WhatsAppCloudTransport({ accessToken: "...", phoneNumberId: "..." }) });await sender.send({ to: "15551234567", template: { name: "welcome", language: "en_US" } });No. Use the sently sender; provider-specific extras stay on the transport instance.