---
title: WhatsApp Cloud
description: Send WhatsApp templates and session text through Meta Cloud API.
icon: Truck
source: "src/transports/whatsapp-cloud.ts"
---

Send WhatsApp templates and session text through Meta Cloud API.

<Callout title="The one rule">Create this transport under the matching sently channel sender.</Callout>

## Configuration

| Option | Type | Default or requirement |
| --- | --- | --- |
| `accessToken` | `string` | required |
| `phoneNumberId` | `string` | required |
| `apiVersion` | `string` | v26.0 |

<Steps>
  <Step title="Configure the transport">

```ts
import { createWhatsAppSender } from "sently/whatsapp";
import { WhatsAppCloudTransport } from "sently/transports/whatsapp-cloud";

const sender = createWhatsAppSender({ transport: new WhatsAppCloudTransport({ accessToken: "...", phoneNumberId: "..." }) });
```

  </Step>
  <Step title="Send with the channel API">

```ts
await sender.send({ to: "15551234567", template: { name: "welcome", language: "en_US" } });
```

  </Step>
</Steps>

<Accordions><Accordion title="Should I call the provider SDK?">No. Use the sently sender; provider-specific extras stay on the transport instance.</Accordion></Accordions>

<Cards><Card title="Whatsapp channel" href="/docs/channels/whatsapp" /></Cards>
