Email model
You can manage your emails campaigns also from the REST API side.
Properties
Attributes
- id
- A unique identifier for the campaign which is given by User
- category
- An email category.
- created_at
- A creation date of email campaign.
- description
- A description of email campaign.
- eta
- A datetime when email campaign should start. Will start instantly if not provided
- finished_at
- A date when campaign finished.
- name
- An email campaign name.
- smtp
- A SMTP settings used for campaign
- started_at
- A date when campaign started.
- status
- An email campaign status.
- type
- An identifier of email campaign type.
- updated_at
- A last update of email campaign
- statistics
- Sending and engagement statistics of the campaign.
- custom_settings
- Sending domain the campaign uses, as
name <domain>, or-if it uses none. - real_sender
- Sender name of the campaign, or the string
Noneif it has none. - recipients_count
- Number of contacts the campaign is sent to.
- closed
trueif the campaign was closed because its sending domain or SMTP server was deleted, which stops it from sending;nullotherwise.- messages
- IDs of the email messages used by the campaign.
- ab_test_stage
- Stage of the A/B test:
0not an A/B test,1sending to the test group,2waiting to send the winning variation,3or4retrying stage1or2,5winning variation sent. - ab_test_distribution
- Size of the A/B test group as a percentage of recipients;
0if the campaign isn't an A/B test. - ab_test_winning_metric
- Metric that picks the winning variation:
1opens or2clicks. - ab_test_duration
- How long the A/B test runs before the winning variation is sent, in hours.
- ab_variations
- Message variations of the campaign, each with its own statistics.
- folder
- ID of the folder the campaign is in, or
null.