Campaigns

Create a campaign

post/businesses/{id}/campaigns

Path parameters

idstring required

The ID of the business

Request body

namestring required

The name of the campaign

excluded_customersstring[]

The IDs of the customers excluded by the campaign

email_addressstring nullable

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

phone_numberstring nullable

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

scheduled_atstring nullable

The scheduled time of the campaign in ISO 8601 format

segmentstring nullable

The ID of the segment to attach to the campaign

metadataobject nullable

The metadata of the campaign

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.