Campaigns

Create a campaign from a campaign template

post/campaign_templates/{id}/campaign_drafts

Path parameters

idstring required

The ID of the campaign template

Request body

businessstring required

The business ID

Response

The created Campaign object

idstring required

The ID of the campaign

created_atstring required

The time when the campaign was created in ISO 8601 format

updated_atstring required

The time when the campaign was last updated in ISO 8601 format

businessstring nullable required

The ID of the business

namestring required

The name of the campaign

enrolled_customersstring[]

The customers enrolled in the campaign

enrolled_customer_idsstring[]

The IDs of the customers enrolled in the campaign

segmentstring nullable required

The segment attached to the campaign

email_addressstring nullable required

The email address used to send emails in the campaign. Will be the ID of an email-like object

phone_numberstring nullable required

The phone number used to send SMS messages in the campaign. Will be the ID of a phone number-like object

status'draft' | 'scheduled' | 'started' | 'stopped' | 'finished' required

The status of the campaign.

scheduled_atstring nullable required

The time when the campaign is scheduled to start in ISO 8601 format

scheduled_end_atstring nullable required

The time when the campaign is scheduled to end in ISO 8601 format

attributed_revenuestring nullable required

The revenue attributed to the campaign

metadataobject required

Arbitrary metadata associated with this campaign

Changes

No recorded changes to this endpoint across all 1 revision of this API.