Overview

SMS campaigns are used to send SMS 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 trigger the sending of the campaign by creating a Send SMS Action for the specific SMS.

The Method

API-Method
RESTPOSThttps://[Your URL]/api/2.0/sms
XML-RPCCallsms.CreateSms

Parameters

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

POST /api/2.0/sms
 HTTP/1.1
Host: local.everlytic.com
Authorization: Basic YWRtaW5pc3RyYXRvcjp2bE1lTGk2UlVJR21SQzNvaWRMZXBsc2J5RU5NRkY3Yl85OTk=
Content-Type: application/json

{
  "subject":"subject",
  "text_original":"This is a test message",
  "list_ids":"1"
}

Example Response

{
    "links": [
        {
            "title": "Self",
            "rel": "self",
            "href": "https://local.everlytic.com/api/2.0/sms"
        },
        {
            "title": "Home",
            "rel": "home",
            "href": "https://local.everlytic.com/api/2.0/"
        }
    ],
    "item": {
        "id": 5,
        "hash": "jcBCIn0EpEsvVHI2",
        "type": "sms",
        "subject": "subject",
        "from_email": "[email protected]",
        "text_original": "This is a test message",
        "is_html_fetch_from_url": "no",
        "html_fetch_when": "now",
        "is_text_fetch_from_url": "no",
        "text_fetch_when": "now",
        "is_copy_text_auto": "yes",
        "remove_duplicates": "no",
        "list_ids": "1",
        "create_date": 1589805530,
        "is_scheduled": "no",
        "scheduled_recurrence": "once",
        "preparation_date": 0,
        "preparation_count": 0,
        "approval_required": "no",
        "inline_css": "no",
        "embed_images": "no",
        "track_links": "no",
        "track_reads": "yes",
        "track_attachments": "yes",
        "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"
    }
}