Create campaign
create_campaignCreate a campaign. The kind follows the inbox: a website inbox gets an ongoing campaign (the message is offered in the widget), an SMS inbox gets a one-off campaign sent at scheduled_at to the contacts of the labels in audience. No other inbox type is accepted: a WhatsApp campaign is composed by the administrator at Campaigns -> WhatsApp, because WhatsApp only allows approved templates. Call list_inboxes and list_labels first. This sends messages to real customers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| enabled | No | ||
| message | Yes | ||
| audience | No | One-off campaigns only: the labels whose contacts receive the message. | |
| inbox_id | Yes | ||
| scheduled_at | No | ISO8601 time for a one-off campaign. | |
| trigger_only_during_business_hours | No |