Marigold Engage by Sailthru

App · 25 actions

Manage users, lists, campaigns and content in Marigold Engage by Sailthru, send triggered email, record purchases and custom events, and follow campaigns, lists, templates and content.

Actions

ActionWhat it does
Cancel scheduled sendCancel a triggered email scheduled for later.
Create campaignCreate a campaign from a template or your own content.
Create or update contentAdd a product or article to the content library, or update the one with this URL.
Create or update listCreate a natural list, or change the one with this name: whether it is primary, its public name and custom fields.
Create or update userAdd a user, or update the one with this email address or ID: custom fields, lists, keys and email opt-out.
Delete campaignDelete a campaign that hasn't started sending.
Delete contentRemove an item from the content library, with its data.
Delete listDelete a list.
Delete userPermanently delete a user's profile, with their purchases and page views.
Get campaignGet a campaign's name, list, subject, sender, content, schedule and status.
Get campaign statsGet a campaign's totals: messages, opens, clicks, opt-outs, bounces, purchases and revenue.
Get listGet a list's type, user count, creation and last send time, and custom fields.
Get sendCheck a triggered send's delivery status, and when it was opened or clicked.
Get templateGet a template's subject, sender and content.
Get userGet a user's profile: their keys, custom fields, lists, engagement and opt-out status.
List campaignsList campaigns with one status: draft, scheduled, sending or sent (newest first).
List contentList the most recent items in the content library.
List listsList the account's lists, natural and smart, with how many users each has.
List templatesList the account's email templates.
Post custom eventTell Sailthru a user did something, to start Lifecycle Optimizer flows or triggers listening for that event.
Record purchaseRecord a user's purchase, or their current cart for abandoned-cart messages.
Schedule campaignSchedule a draft campaign to send at a set time, or now.
Send triggered emailSend a template to one email address now or at a set time, filling in its variables.
Unschedule campaignTake a scheduled campaign off the schedule and keep it as a draft.
Update campaignChange an unsent campaign's name, list, subject, sender or content.

Cancel scheduled send

Cancel a triggered email scheduled for later. One already sent can't be cancelled.

Inputs

Send IDsend_idtextRequired
The send's ID, which Send triggered email returns.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "ok": true,
    "send_id": "example"
  }
}

Create campaign

Create a campaign from a template or your own content. With a send time it is scheduled; without one it is saved as a draft.

Inputs

NamenametextRequired
The campaign's name.
ListlisttextRequired
The list to send to, by name.
Templatetemplatetext
A template to copy the subject, sender and content from. Fields filled in below replace the template's.
Subjectsubjecttext
The subject line.
From namefrom_nametext
The sender's name.
From emailfrom_emailtext
The sender's address, one of the account's verified From addresses.
Reply toreply_totext
The Reply-To address.
HTML contentcontent_htmltext
The HTML content.
Text contentcontent_texttext
The plain text content.
Track linkslink_trackingtrue/false
Rewrite links so clicks are tracked.
Send atschedule_timedate and time
When to send. Leave empty to save a draft.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "blast_id": 1,
    "email_count": 1,
    "from_email": "example",
    "from_name": "example",
    "labels": [
      "example"
    ],
    "list": "example",
    "modify_time": "example",
    "name": "example",
    "schedule_time": "example",
    "start_time": "example",
    "status": "example",
    "subject": "example"
  }
}

Create or update content

Add a product or article to the content library, or update the one with this URL. Fields left empty keep their value.

Inputs

URLurltextRequired
The content item's URL, its identifier in the content library.
Titletitletext
The title.
Descriptiondescriptiontext
A short description.
Tagstagslist
Tags, such as blue or size-m, each up to 32 characters.
Pricepricenumber
The price, such as 172.99. Sailthru stores it in cents.At least 0.
Sale pricesale_pricenumber
The sale price, such as 145.99.At least 0.
Inventoryinventorynumber
How many are in stock.At least 0.
Image URLimage_urltext
The URL of the item's main image.
SKUskutext
The item's SKU, a second way to find it.
Authorauthortext
The author.
Site namesite_nametext
The site or brand it belongs to.
Publisheddatedate and time
When it was published. Leave empty for now.
Expiresexpire_datedate and time
When it stops being recommended.
Custom fields (vars)varsobject
Custom fields to set, by name, such as first_name.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "author": "example",
    "date": "example",
    "description": "example",
    "expire_date": "example",
    "images": {},
    "inventory": 1,
    "price": 1,
    "site_name": "example",
    "tags": [
      "example"
    ],
    "title": "example",
    "url": "example",
    "vars": {}
  }
}

Create or update list

Create a natural list, or change the one with this name: whether it is primary, its public name and custom fields.

Inputs

ListlisttextRequired
The list's name. It can't contain a dollar sign ($).
Primaryprimarytrue/false
Primary lists are the ones subscriber counts and opt-outs are tracked for.
Public namepublic_nametext
The name subscribers see, such as on the opt-out page.
Custom fields (vars)varsobject
Custom fields to store on the list, up to 20.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "count": 1,
    "create_time": "example",
    "list": "example",
    "list_id": "example",
    "primary": true,
    "public_name": "example",
    "send_time": "example",
    "type": "example",
    "vars": {}
  }
}

Create or update user

Add a user, or update the one with this email address or ID: custom fields, lists, keys and email opt-out.

Inputs

UserusertextRequired
The user's email address, or the ID of the type chosen in Find user by.
Find user byfind_bytext
What the user is looked up by. Leave empty for email address.One of: email (Email address), sid (Sailthru ID (sid)), extid (External ID (extid)), sms (SMS number).
Custom fields (vars)varsobject
Custom fields to set, by name, such as first_name.
Add to listsadd_to_listslist
Lists to subscribe the user to. A list that doesn't exist is created.
Remove from listsremove_from_listslist
Lists to take the user off.
Email opt-outoptout_emailtext
The user's email opt-out status.One of: none (Subscribed to everything), basic (Opted out of campaigns only), all (Opted out of all email).
New email addressnew_emailtext
A new email address for the user, to change it.
External IDextidtext
Your own ID for the user (extid).
SMS numbersmstext
The user's mobile number, in international format such as +15551234567.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "engagement": "example",
    "keys": {
      "cookie": "example",
      "email": "example",
      "extid": "example",
      "sid": "example",
      "sms": "example"
    },
    "lists": {},
    "ok": true,
    "optout_email": "example",
    "vars": {}
  }
}

Delete campaign

Delete a campaign that hasn't started sending.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "blast_id": 1,
    "ok": true
  }
}

Delete content

Remove an item from the content library, with its data.

Inputs

URLurltextRequired
The content item's URL, its identifier in the content library.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "ok": true
  }
}

Delete list

Delete a list. Its users stay in the account.

Inputs

ListlisttextRequired
The list, by name.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "list": "example",
    "ok": true
  }
}

Delete user

Permanently delete a user's profile, with their purchases and page views.

Inputs

UserusertextRequired
The user's email address, or the ID of the type chosen in Find user by.
Find user byfind_bytext
What the user is looked up by. Leave empty for email address.One of: email (Email address), sid (Sailthru ID (sid)), extid (External ID (extid)), sms (SMS number).

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "ok": true
  }
}

Get campaign

Get a campaign's name, list, subject, sender, content, schedule and status.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "blast_id": 1,
    "content_html": "example",
    "content_text": "example",
    "email_count": 1,
    "end_time": "example",
    "from_email": "example",
    "from_name": "example",
    "labels": [
      "example"
    ],
    "list": "example",
    "modify_time": "example",
    "name": "example",
    "open_total": 1,
    "replyto": "example",
    "schedule_time": "example",
    "start_time": "example",
    "status": "example",
    "subject": "example"
  }
}

Get campaign stats

Get a campaign's totals: messages, opens, clicks, opt-outs, bounces, purchases and revenue.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "beacon": 1,
    "click": 1,
    "click_total": 1,
    "confirmed_opens": 1,
    "count": 1,
    "estopens": 1,
    "hardbounce": 1,
    "open_total": 1,
    "optout": 1,
    "purchase": 1,
    "rev": 1,
    "softbounce": 1,
    "spam": 1
  }
}

Get list

Get a list's type, user count, creation and last send time, and custom fields.

Inputs

ListlisttextRequired
The list, by name.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "count": 1,
    "create_time": "example",
    "list": "example",
    "list_id": "example",
    "primary": true,
    "public_name": "example",
    "send_time": "example",
    "type": "example",
    "vars": {}
  }
}

Get send

Check a triggered send's delivery status, and when it was opened or clicked. Sends older than 90 days can't be read.

Inputs

Send IDsend_idtextRequired
The send's ID, which Send triggered email returns.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "click_time": "example",
    "email": "example",
    "open_time": "example",
    "schedule_time": "example",
    "send_id": "example",
    "send_time": "example",
    "status": "example",
    "template": "example"
  }
}

Get template

Get a template's subject, sender and content.

Inputs

TemplatetemplatetextRequired
The template, by name.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "content_html": "example",
    "content_text": "example",
    "from_email": "example",
    "from_name": "example",
    "is_link_tracking": true,
    "mode": "example",
    "name": "example",
    "public_name": "example",
    "replyto_email": "example",
    "revision_id": 1,
    "subject": "example",
    "template_id": 1
  }
}

Get user

Get a user's profile: their keys, custom fields, lists, engagement and opt-out status.

Inputs

UserusertextRequired
The user's email address, or the ID of the type chosen in Find user by.
Find user byfind_bytext
What the user is looked up by. Leave empty for email address.One of: email (Email address), sid (Sailthru ID (sid)), extid (External ID (extid)), sms (SMS number).
Returnfieldslist
Parts of the profile to return. Leave empty for keys, custom fields, lists, engagement and opt-out status.One or more of: keys (Keys (email, sid, extid)), vars (Custom fields (vars)), lists, engagement (Engagement level), optout_email (Opt-out status), activity (Activity times), lifetime (Lifetime totals), purchases, purchase_incomplete (Abandoned cart), smart_lists (Smart lists).

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "activity": {},
    "engagement": "example",
    "keys": {
      "cookie": "example",
      "email": "example",
      "extid": "example",
      "sid": "example",
      "sms": "example"
    },
    "lifetime": {},
    "lists": {},
    "optout_email": "example",
    "purchases": [
      {}
    ],
    "smart_lists": [
      "example"
    ],
    "vars": {}
  }
}

List campaigns

List campaigns with one status: draft, scheduled, sending or sent (newest first).

Inputs

StatusstatustextRequired
Which campaigns to list.One of: sent, scheduled, sending, created (Draft (not scheduled)).
Listlisttext
Only campaigns sent to this list.
Fromstart_datedate
Only campaigns from this day on.
Toend_datedate
Only campaigns up to this day.
Campaigns to returnlimitnumber
How many campaigns to return. Leave empty for 20.From 1 to 1000.
Campaigns to skipskipnumber
How many campaigns to skip, for reading the next page.At least 0.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "blasts": [
      {
        "blast_id": 1,
        "email_count": 1,
        "from_email": "example",
        "from_name": "example",
        "labels": [
          "example"
        ],
        "list": "example",
        "modify_time": "example",
        "name": "example",
        "schedule_time": "example",
        "start_time": "example",
        "status": "example",
        "subject": "example"
      }
    ],
    "scheduled_count": 1,
    "sending_count": 1,
    "sent_count": 1,
    "status": "example",
    "unscheduled_count": 1
  }
}

List content

List the most recent items in the content library.

Inputs

Items to returnitemsnumber
How many items to return. Leave empty for 20.From 1 to 1000.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "content": [
      {
        "author": "example",
        "date": "example",
        "description": "example",
        "expire_date": "example",
        "images": {},
        "inventory": 1,
        "price": 1,
        "site_name": "example",
        "tags": [
          "example"
        ],
        "title": "example",
        "url": "example",
        "vars": {}
      }
    ]
  }
}

List lists

List the account's lists, natural and smart, with how many users each has.

Inputs

Primary lists onlyprimary_onlytrue/false
Only primary lists.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "lists": [
      {
        "create_time": "example",
        "email_count": 1,
        "list_id": "example",
        "name": "example",
        "type": "example",
        "valid_count": 1
      }
    ]
  }
}

List templates

List the account's email templates.

Inputs

None.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "templates": [
      {
        "is_disabled": true,
        "mode": "example",
        "modify_time": "example",
        "name": "example",
        "subject": "example",
        "template_id": 1
      }
    ]
  }
}

Post custom event

Tell Sailthru a user did something, to start Lifecycle Optimizer flows or triggers listening for that event.

Inputs

UserusertextRequired
The user's email address, or the ID of the type chosen in Find user by.
Find user byfind_bytext
What the user is looked up by. Leave empty for email address.One of: email (Email address), sid (Sailthru ID (sid)), extid (External ID (extid)), sms (SMS number).
Event nameeventtextRequired
The event's name, such as wishlist_add. It can't be send, cancel, open, click, purchase or daily.
Custom fields (vars)varsobject
Data to send with the event, for the flow's messages to use.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "ok": true
  }
}

Record purchase

Record a user's purchase, or their current cart for abandoned-cart messages.

Inputs

EmailemailtextRequired
The buyer's email address.
ItemsitemslistRequired
The items bought, each with a title, qty (quantity), price (such as 10.99), id (your product ID) and url.
Cart, not a purchaseincompletetrue/false
On to record a cart that hasn't been bought yet.
Message IDmessage_idtext
The sailthru_bid cookie's value, to credit the purchase to the email that led to it.
Receipt templatesend_templatetext
A template to send as the receipt.
Purchaseddatedate and time
When the purchase was made. Leave empty for now.
Custom fields (vars)varsobject
Custom fields to store on the purchase, such as a shipping address.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "purchase": {
      "_id": "example",
      "channel": "example",
      "items": [
        {
          "id": "example",
          "price": 1,
          "qty": 1,
          "title": "example",
          "url": "example"
        }
      ],
      "price": 1,
      "qty": 1,
      "time": "example",
      "unique_id": "example"
    }
  }
}

Schedule campaign

Schedule a draft campaign to send at a set time, or now.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.
Send atschedule_timedate and time
When to send. Leave empty to send now.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "blast_id": 1,
    "email_count": 1,
    "from_email": "example",
    "from_name": "example",
    "labels": [
      "example"
    ],
    "list": "example",
    "modify_time": "example",
    "name": "example",
    "schedule_time": "example",
    "start_time": "example",
    "status": "example",
    "subject": "example"
  }
}

Send triggered email

Send a template to one email address now or at a set time, filling in its variables.

Inputs

TemplatetemplatetextRequired
The template, by name.
ToemailtextRequired
The email address to send to.
Template variablesvarsobject
Values for the template's variables, by name, such as order_id.
Send atschedule_timedate and time
When to send. Leave empty to send now.
CCcclist
Email addresses to copy in.
BCCbcclist
Email addresses to blind copy.
Reply toreply_totext
The Reply-To address.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "click_time": "example",
    "email": "example",
    "open_time": "example",
    "schedule_time": "example",
    "send_id": "example",
    "send_time": "example",
    "status": "example",
    "template": "example"
  }
}

Unschedule campaign

Take a scheduled campaign off the schedule and keep it as a draft.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "blast_id": 1,
    "email_count": 1,
    "from_email": "example",
    "from_name": "example",
    "labels": [
      "example"
    ],
    "list": "example",
    "modify_time": "example",
    "name": "example",
    "schedule_time": "example",
    "start_time": "example",
    "status": "example",
    "subject": "example"
  }
}

Update campaign

Change an unsent campaign's name, list, subject, sender or content. Fields left empty stay as they are.

Inputs

Campaigncampaign_idnumberRequired
The campaign.At least 1.
Namenametext
The new name.
Listlisttext
The list to send to, by name.
Subjectsubjecttext
The subject line.
From namefrom_nametext
The sender's name.
From emailfrom_emailtext
The sender's address, one of the account's verified From addresses.
Reply toreply_totext
The Reply-To address.
HTML contentcontent_htmltext
The HTML content.
Text contentcontent_texttext
The plain text content.

Outputs

dataobject
The response from Marigold Engage by Sailthru.
Example output
{
  "data": {
    "blast_id": 1,
    "email_count": 1,
    "from_email": "example",
    "from_name": "example",
    "labels": [
      "example"
    ],
    "list": "example",
    "modify_time": "example",
    "name": "example",
    "schedule_time": "example",
    "start_time": "example",
    "status": "example",
    "subject": "example"
  }
}

On this page