Skip to main content
POST
Create Campaign with Email Touchpoint

Authorizations

string
required
Enter your ContactSwing JWT Bearer token.

Request Body

string
required
Campaign display name
string
Campaign type.
string
Campaign type.
string
Campaign type.
string
The business goal of the campaign.
object
required
The touchpoint object.
string
required
The name of the touchpoint.
string
required
The type of the touchpoint. e.g. EMAIL.
string
required
The status of the touchpoint. e.g. scheduled.
string
required
ISO 8601 scheduled date for the touchpoint.
integer
required
The ID of the assistant to be used.
array
required
An array of customer details objects.
string
required
The customer’s ID.
string
required
The customer’s email address.
object
required
Additional settings for the touchpoint.
string[]
required
Array of days when the campaign will be executed. e.g. ["mon", "tue"]
integer
required
The start hour for the campaign execution.
integer
required
The end hour for the campaign execution.
string
required
The timezone for the campaign execution. e.g. Asia/Kolkata.
string
required
The email address to be used.
string[]
required
The email addresses from which the emails will be sent.
string
required
The email medium to be used. e.g. SEND_GRID.
string
required
The subject of the email.
string
required
The body of the email in HTML format.
string

Response

201 Created - Campaign created successfully
string
Request context ID
object
string
Campaign ID
string
Campaign name
string
Campaign status
400 Bad Request - Invalid input