This capability needs the plan or higher.
Before you start
Before you start, sign in to the dashboard and select the organization you want to work in.- Your campaign wallet is funded. See Fund your campaign wallet.
- A WhatsApp number is connected and an approved template exists.
- You have the Admin or Member role, which can create campaigns and generate keys.
- For request formats, error codes, and rate-limit headers, see Webhook campaigns API.
Create the campaign
1
Open Campaigns and select Create Campaign
The campaign builder opens.
2
Name the campaign and choose Webhook under Campaign Mode
The mode cannot be changed after creation. The audience and schedule pickers give way to a note, because a webhook campaign has neither.
3
Select the WhatsApp number and an approved template
The template’s variables become the parameters each API call must send.
4
Select Create Webhook Campaign
The campaign opens on its own page with the Contract, API Keys, Validate, and Activity tabs.
Generate a key and test the call
1
Open the Contract tab
The API Contract card has Postman, OpenAPI, and cURL tabs with the request for this campaign.
2
On the API Keys tab, enter a key label and select Generate key
Keys belong to this campaign only. Store the key in your own secret manager.
3
On the Validate tab, fill in the recipient and parameters, then select Validate
A passing dry run shows the estimated cost and sends nothing.
4
Send a live call from your system
The call appears on the Activity tab.
Contract locking
Tars pins the template version when you create the campaign. If the template changes after that, calls fail with409 template_version_drift.
While the campaign has at least one key, its template, parameters, and WhatsApp number cannot be edited. This prevents an edit in the dashboard from silently breaking callers in production. To change them, revoke every key, or clone the campaign and move your callers to the copy. A clone is named Copy of the original, is active at once, and has no keys.
