Skip to main content

Email model

You can manage your emails campaigns also from the REST API side.

Properties​

Attributes

idinteger
A unique identifier for the campaign which is given by User
categoryinteger
An email category.
created_atstring
A creation date of email campaign.
descriptionstring
A description of email campaign.
etastring
A datetime when email campaign should start. Will start instantly if not provided
finished_atstring
A date when campaign finished.
namestring
An email campaign name.
smtpstring
A SMTP settings used for campaign
started_atstring
A date when campaign started.
statusinteger
An email campaign status.
typeinteger
An identifier of email campaign type.
updated_atstring
A last update of email campaign
statisticsobject
Sending and engagement statistics of the campaign.
custom_settingsstring
Sending domain the campaign uses, as name <domain>, or - if it uses none.
real_senderstring
Sender name of the campaign, or the string None if it has none.
recipients_countinteger
Number of contacts the campaign is sent to.
closedboolean
true if the campaign was closed because its sending domain or SMTP server was deleted, which stops it from sending; null otherwise.
messagesarray of integer
IDs of the email messages used by the campaign.
ab_test_stageinteger
Stage of the A/B test: 0 not an A/B test, 1 sending to the test group, 2 waiting to send the winning variation, 3 or 4 retrying stage 1 or 2, 5 winning variation sent.
ab_test_distributioninteger
Size of the A/B test group as a percentage of recipients; 0 if the campaign isn't an A/B test.
ab_test_winning_metricinteger
Metric that picks the winning variation: 1 opens or 2 clicks.
ab_test_durationinteger
How long the A/B test runs before the winning variation is sent, in hours.
ab_variationsarray of objects
Message variations of the campaign, each with its own statistics.
folderinteger
ID of the folder the campaign is in, or null.