id
string
required

The ID of the campaign

created_at
string
required

The time when the campaign was created in ISO 8601 format

updated_at
string
required

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

name
string
required

The name of the campaign

enrolled_customers
required

The customers enrolled in the campaign

segment
string | null
required

The segment attached to the campaign

steps
object[]
required

The steps of the campaign

email_address
string | null
required

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

phone_number
string | null
required

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

status
enum<string>
required

The status of the campaign.

Available options:
draft,
scheduled,
started,
stopped,
finished
scheduled_at
string | null
required

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

statistics
object
required

The statistics of the campaign. Includes information about customers enrolled, email statistics, and custom step statistics

consumed_message_segments
object
required

The number of message segments actually used by the campaign

estimated_message_segments
object
required

The number of message segments estimated to be used by the campaign

attributed_revenue
number | null
required

The revenue attributed to the campaign