Campaigns

Organize bulk or targeted sends from your workspace. Create campaigns, assign owners, build an audience, send WhatsApp templates, and read the results.

Example

await platic.campaigns.list();

The path of a campaign

  1. Create it with an approved template and, if its button leads to your site, set the destination with update a campaign (ctaTargetUrl).
  2. Build its audience: by phone, or all at once with a contact search or a tag (add contacts to the audience).
  3. Define its goals: what counts as achieved in a conversation.
  4. Send it: first the preview, then the confirmation.
  5. See its results: the funnel of each send, the report, and the list of recipients.

Endpoints

MethodEndpointDescription
GET/v1/campaignsList all campaigns
GET/v1/campaigns/{campaignId}Get a specific campaign
POST/v1/campaignsCreate a campaign
PATCH/v1/campaigns/{campaignId}Update a campaign
DELETE/v1/campaigns/{campaignId}Delete a campaign
GET/v1/campaigns/{campaignId}/audienceGet a campaign's audience
POST/v1/campaigns/{campaignId}/audienceAdd contacts to the audience, by phone or from a search, a tag, or ids
DELETE/v1/campaigns/{campaignId}/audience/{phoneNumber}Remove a contact from the audience
POST/v1/campaigns/{campaignId}/audience/removeRemove several contacts at once
DELETE/v1/campaigns/{campaignId}/audienceClear the whole audience
POST/v1/campaigns/{campaignId}/send/previewSee what a send would be, without sending
POST/v1/campaigns/{campaignId}/sendSend what the preview showed
GET/v1/campaigns/{campaignId}/goalsList the goals
POST/v1/campaigns/{campaignId}/goalsCreate a goal
PATCH/v1/campaigns/{campaignId}/goals/{goalId}Update a goal
GET/v1/campaigns/{campaignId}/funnelFunnel of each send
GET/v1/campaigns/{campaignId}/reportReport for a period
POST/v1/campaigns/{campaignId}/runs/{runId}/exportExport the recipients of a send