Overview

Email campaigns are used to send email messages to a list of contacts. Creating and sending the campaign are two different actions.

Creating the campaign puts it in the ‘composing’ state, giving you the opportunity to add and remove lists, and tweak the campaign parameters.

Once you’re done tweaking, you can create a Send Email Action for the specific email to trigger the campaign send.

The Method

APIMethodEndpoint
RESTPOSThttps://[Your URL]/api/2.0/emails
XML-RPCCallemails.CreateEmail

Parameters

PropertyTypeDescriptionDefaultRequiredRead Only
$propertystructarrayThe properties of the email you need to create. See the table below for a full list of options.emptyYes No

Properties

PropertyTypeDescriptionDefaultRequiredRead Only
campaign_namestringCampaignemptynono
subjectstringSubjectemptyyesno
from_emailstringFrom Emailemptyyesno
from_namestringFrom Nameemptynono
reply_emailstringReply Emailemptynono
html_originalstringOriginal HTML emptynono
text_originalstringOriginal Textemptynono
is_html_fetch_from_urlstringFetch HTML from URL

Possible values:
yes
no
nonono
html_fetch_urlstringFetch HTML URLemptynono
html_fetch_when stringFetch HTML when Possible values:
now
confirm
send
nownono
is_text_fetch_from_urlstringFetch text from URL Possible values:
yes
no
nonono
text_fetch_urlstringFetch text URLemptynono
text_fetch_whenstringFetch text when Possible values:
now
confirm
send
nownono
is_copy_text_autostringCopy text from HTML Possible values:
yes
no
yesnono
attachmentsstringAttachmentsemptynono
list_ids stringList identifiersemptynono
filter_id integerFilter identifieremptynono
template_idintegerTemplate identifieremptynono
is_scheduled stringScheduled Possible values:
yes
no
nonono
send_scheduled_dateintegerSchedule date0nono
scheduled_recurrencestringSchedule recurrance Possible values:
once
weekdays
daily
weekly
monthly
yearly
oncenono
scheduled_previous_message_id integerPrevious scheduled
message identifier
0nono
approval_required stringApproval required Possible values:
yes
no
nonono
approval_namestringNameemptynono
approval_emailstringEmailemptynono
inline_css stringConvert CSS to inline styles Possible values:
yes
no
yesnono
embeded_images stringEmbed images Possible Values:
yes
no
nonono
track_links stringTrack link clicks Possible values:
yes
no
yesnono
track_readsstringTrack opens Possible values:
yes
no
yesnono
unsubscribe_typestringUnsubscribe footer type Possible Values:
none
standard
extra
nonenono
insert_unsubscribe_linkstringInsert unsubscribe footer Possible values:
yes
no
nonono
include_analytics stringGoogle analytics Possible values:
yes
no
nonono
prioritystringPriority Possible values:
low
medium
high
mediumnono
character_setstringCharacter setUTF-8nono
encoding stringEncoding Possible values:
7bit
8bit
binary
quoted-printable
base64
8bitnono
import_idintegerThe ID of a contacts import (Requires the list_ids property to be set)emptynono

Example Request

URL : https://live.everlytic.net/api/2.0/emails
{
"files":
 [
     {"filename":"test.csv",
     "content":"base64 data here"
 }],
"subject":"message subject here",
"from_email":"[email protected]",
"is_html_fetch_from_url":"yes",
"html_fetch_url":"https://www.mywebsite.com/email-content-for-fetching-here",
"list_ids":"123456"
} 

Example Response

{
    "links": [
        {
            "title": "Self",
            "rel": "self",
            "href": "https://live.everlytic.net/api/2.0/emails"
        },
        {
            "title": "Home",
            "rel": "home",
            "href": "https://live.everlytic.net/api/2.0/"
        }
    ],
    "item": {
        "id": 1058044,
        "hash": "UlxHrkIeCUZJRUVq",
        "type": "email",
        "subject": "message subject here",
        "from_email": "[email protected]",
        "reply_email": " example @email.com",
        "html_original": "<html>fetched-from-url content here</html>"
        "is_html_fetch_from_url": "yes",
        "html_fetch_url": "https://www.mywebsite.com/email-content-for-fetching-here",
        "html_fetch_when": "now",
        "is_text_fetch_from_url": "no",
        "text_fetch_when": "now",
        "is_copy_text_auto": "yes",
        "remove_duplicates": "no",
        "list_ids": "67797",
        "create_date": 1589801783,
        "is_scheduled": "no",
        "scheduled_recurrence": "once",
        "preparation_date": 0,
        "preparation_count": 0,
        "approval_required": "no",
        "inline_css": "no",
        "embed_images": "no",
        "track_links": "yes",
        "track_reads": "yes",
        "track_attachments": "no",
        "unsubscribe_type": "standard",
        "insert_unsubscribe_link": "yes",
        "include_analytics": "no",
        "include_custom_analytics": "no",
        "total_queued": 0,
        "total_in_queue": 0,
        "send_share_report": "no",
        "share_report_allow_export": "no",
        "status": "composing",
        "priority": "medium",
        "character_set": "utf-8",
        "encoding": "8bit"
    }
}