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 can create campaigns. An admin creates API 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.
Create 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
Open the API keys tab
Keys that can send this campaign shows the Endpoint and lists every key that can call it.
3
Select Create key
Settings → Integrations opens with a key for this campaign and the Send campaign messages permission chosen. Select Create key, then store the key in your secret manager.
4
On the Validate tab, fill in the recipient and parameters, then select Validate
A passing dry run shows pricing and sends nothing. It checks neither consent nor wallet balance.
5
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 a key made for this campaign is active, its template, parameters and WhatsApp number cannot be edited. The API keys tab shows a notice while this lock applies.
The lock 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.
