Create and schedule an RCS campaign
Create and schedule an RCS campaign to target a user segment. Use @once to run once. For recurring campaigns use cron expression (minute hour day month weekday).
| Query Parameters |
|---|
bot string — REQUIREDUnique identifier of the AI agent (bot) |
| Request Body — REQUIRED | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
botId string — REQUIREDUnique ID of the bot | |||||||||||
name string — REQUIREDUnique name of the campaign | |||||||||||
description stringDescription of the campaign | |||||||||||
source string — REQUIREDSource of the campaign. For this API, it should be 'rcsBusinessMessaging'. | |||||||||||
executionTime stringCampaign execution schedule in cron format (minute hour day month weekday). Example - "25 20 20 6 *" Runs at 8:25 PM on June 20 every year | |||||||||||
segmentId stringUnique ID of the target audience segment for the campaign | |||||||||||
segmentName stringName of the target audience segment for the campaign | |||||||||||
templateName stringName of the template to be used for the campaign | |||||||||||
type stringType of the campaign | |||||||||||
recipientColumnName stringName of the column containing recipient phone numbers | |||||||||||
schedule string — REQUIREDCampaign execution time, using cron expression. Use @once for one-time schedule. | |||||||||||
allUsers booleanSet to true to send the campaign to all users. | |||||||||||
content object — REQUIRED
| |||||||||||
info object
| |||||||||||
jobPayload object
|
| Responses | ||||
|---|---|---|---|---|
201Campaign created and scheduled
| ||||
400Bad request
| ||||
401Unauthorized
| ||||
409Conflict — duplicate campaign or invalid state
| ||||
500Server error
|