Listrak

App · 25 actions

Manage Listrak email lists, contacts, campaigns and events, send transactional messages, read message results, and follow new subscribers, unsubscribes and sends.

Actions

ActionWhat it does
Add or update contactAdd a contact to a list, or update the contact if they are already on it, with their profile field values.
Create campaignCreate a campaign on a list.
Create eventCreate an event on a list, for automations to listen for.
Create listCreate an email list.
Delete campaignDelete a campaign.
Delete listDelete a list with its contacts and history.
Get contactGet a contact on a list by email address, with their subscription and profile fields.
Get listGet a list's settings, such as its default sender and bounce handling.
Get messageGet a message's subject, sender, send date, status and content.
Get message resultsGet a message's totals: sends, opens, clicks, bounces, unsubscribes, conversions and revenue.
List campaignsList a list's campaigns, the labels messages are grouped under for reporting.
List contactsList a list's subscribed or unsubscribed contacts, optionally only those who (un)subscribed in a date range.
List conversationsList a list's conversations, Listrak's automated message series.
List eventsList a list's events, which start automations when raised for a contact.
List listsList the email lists in your Listrak account.
List message activityList what each contact did with a message: opened, clicked, bounced, unsubscribed or ordered.
List messagesList the messages sent or scheduled on a list, optionally within a date range.
List profile field groupsList the groups a list's profile fields are kept in.
List profile fieldsList the profile fields in a group, with the ID each is saved by.
List saved audiencesList a list's saved audiences, the segments messages can be sent to.
List transactional messagesList a list's transactional messages, such as order confirmations, that can be sent to one contact at a time.
Rename campaignChange a campaign's name.
Send transactional messageSend a transactional message to one contact, filling its profile fields with the values given.
Unsubscribe contactUnsubscribe a contact from a list, so they get none of its messages.
Update listChange a list's name, default sender or bounce handling.

Add or update contact

Add a contact to a list, or update the contact if they are already on it, with their profile field values.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
EmailemailtextRequired
The contact's email address.
Subscriptionsubscription_statetext
Subscribed to receive the list's messages, or added as unsubscribed. Leave empty to subscribe.One of: Subscribed, Unsubscribed.
Profile fieldsprofile_fieldsobject
Profile field values to save, each a profile field ID with its value, such as `1234`: `Gold`. List Profile Fields shows each field's ID.
External contact IDexternal_contact_idtext
The contact's ID in your own system.
New emailnew_emailtext
Change an existing contact's email address to this one.
Profile updateupdate_typetext
How profile fields are saved on an existing contact. Leave empty to update only the fields given.One of: Update (Update the fields given, keep the rest), Append (Add to the fields' existing values), Overwrite (Replace every profile field).
Resubscribe if unsubscribedoverride_unsubscribetrue/false
On to subscribe the contact again even if they unsubscribed. Only do this with their consent.
Subscribed by the contactsubscribed_by_contacttrue/false
On when the contact asked to subscribe themselves, such as through a sign-up form.
Send double opt-in emailsend_double_opt_intrue/false
On to email a new contact a confirmation link first.
Eventsevent_idslist
Events to raise for the contact once saved, which start the automations listening for them.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "resourceId": "example",
    "status": 1
  }
}

Create campaign

Create a campaign on a list.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
NamenametextRequired
The campaign's name.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "resourceId": "example",
    "status": 1
  }
}

Create event

Create an event on a list, for automations to listen for.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
NamenametextRequired
The event's name.
Statusstatustext
Active events can be raised; blocked ones can't.One of: Active, Blocked. Default: Active.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "resourceId": "example",
    "status": 1
  }
}

Create list

Create an email list.

Inputs

NamenametextRequired
The list's name.
Bounce handlingbounce_handlingtext
How strictly bounced addresses are unsubscribed.One of: Standard, Aggressive, None (Don't unsubscribe on bounces). Default: Standard.
Bounces before unsubscribingbounce_unsubscribe_countnumber
How many bounces a contact may have before being unsubscribed.At least 1. Default: 3.
From emailfrom_emailtext
The From address messages on the list use unless they set their own.
From namefrom_nametext
The From name messages on the list use unless they set their own.
Double opt-indouble_opt_intrue/false
On to email new subscribers a link they must click before they are subscribed.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "resourceId": "example",
    "status": 1
  }
}

Delete campaign

Delete a campaign. Messages in it stay, without the campaign.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
Campaigncampaign_idnumberRequired
The campaign, a label that groups messages for reporting.At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "status": 1
  }
}

Delete list

Delete a list with its contacts and history. This can't be undone.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "status": 1
  }
}

Get contact

Get a contact on a list by email address, with their subscription and profile fields.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
EmailemailtextRequired
The contact's email address (or Listrak email key).

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": {
      "emailAddress": "example",
      "emailKey": "example",
      "externalContactID": "example",
      "resubscribeDate": "example",
      "segmentationFieldValues": [
        {
          "segmentationFieldGroupId": 1,
          "segmentationFieldId": 1,
          "value": "example"
        }
      ],
      "subscribeDate": "example",
      "subscribeMethod": "example",
      "subscriptionState": "example",
      "unsubscribeDate": "example",
      "unsubscribeMethod": "example"
    },
    "status": 1
  }
}

Get list

Get a list's settings, such as its default sender and bounce handling.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": {
      "bounceHandling": "example",
      "bounceUnsubscribeCount": 1,
      "createDate": "example",
      "enableDoubleOptIn": true,
      "folderId": 1,
      "fromEmail": "example",
      "fromName": "example",
      "ipPoolId": 1,
      "listId": 1,
      "listName": "example"
    },
    "status": 1
  }
}

Get message

Get a message's subject, sender, send date, status and content.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
Messagemessage_idnumberRequired
The sent or scheduled message.At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": {
      "bodyHtml": "example",
      "bodyText": "example",
      "campaignId": 1,
      "fromEmail": "example",
      "fromName": "example",
      "messageId": 1,
      "messageStatus": "example",
      "replyEmail": "example",
      "savedAudienceId": 1,
      "sendDate": "example",
      "subject": "example",
      "toName": "example"
    },
    "status": 1
  }
}

Get message results

Get a message's totals: sends, opens, clicks, bounces, unsubscribes, conversions and revenue.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
Messagemessage_idnumberRequired
The sent or scheduled message.At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": {
      "averageOrderValue": 1,
      "bounceCount": 1,
      "clickCount": 1,
      "conversionCount": 1,
      "openCount": 1,
      "passAlongCount": 1,
      "readCount": 1,
      "revenue": 1,
      "sentCount": 1,
      "unsubscribeCount": 1,
      "visitCount": 1
    },
    "status": 1
  }
}

List campaigns

List a list's campaigns, the labels messages are grouped under for reporting.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "campaignId": 1,
        "campaignName": "example"
      }
    ],
    "status": 1
  }
}

List contacts

List a list's subscribed or unsubscribed contacts, optionally only those who (un)subscribed in a date range.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
Subscriptionsubscription_statetext
Which contacts to list. Leave empty for subscribed contacts.One of: Subscribed, Unsubscribed.
Fromstart_datedate and time
Only contacts who subscribed (or, for unsubscribed contacts, unsubscribed) at or after this time.
Toend_datedate and time
Only contacts who subscribed (or unsubscribed) before this time.
External contact IDexternal_contact_idtext
Only the contact with this ID from your own system.
Page cursorcursortext
Where the next page starts: the nextPageCursor of the page before. Leave empty for the first page.
Records per pagecountnumber
How many records a page holds, up to 5000. Leave empty for 1000.From 1 to 5000.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "emailAddress": "example",
        "emailKey": "example",
        "externalContactID": "example",
        "resubscribeDate": "example",
        "segmentationFieldValues": [
          {
            "segmentationFieldGroupId": 1,
            "segmentationFieldId": 1,
            "value": "example"
          }
        ],
        "subscribeDate": "example",
        "subscribeMethod": "example",
        "subscriptionState": "example",
        "unsubscribeDate": "example",
        "unsubscribeMethod": "example"
      }
    ],
    "nextPageCursor": "example",
    "status": 1
  }
}

List conversations

List a list's conversations, Listrak's automated message series.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "campaignId": 1,
        "conversationId": 1,
        "conversationName": "example",
        "expirationDate": "example",
        "status": "example"
      }
    ],
    "status": 1
  }
}

List events

List a list's events, which start automations when raised for a contact.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "eventGroupId": 1,
        "eventId": 1,
        "eventName": "example",
        "status": "example"
      }
    ],
    "status": 1
  }
}

List lists

List the email lists in your Listrak account.

Inputs

None.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "bounceHandling": "example",
        "bounceUnsubscribeCount": 1,
        "createDate": "example",
        "enableDoubleOptIn": true,
        "folderId": 1,
        "fromEmail": "example",
        "fromName": "example",
        "ipPoolId": 1,
        "listId": 1,
        "listName": "example"
      }
    ],
    "status": 1
  }
}

List message activity

List what each contact did with a message: opened, clicked, bounced, unsubscribed or ordered.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
Messagemessage_idnumberRequired
The sent or scheduled message.At least 1.
Date range applies todate_typetext
Whether the date range applies to when the message was sent or when the contact acted. Leave empty for when it was sent.One of: Send (When it was sent), Activity (When the contact acted).
Fromstart_datedate and time
Only activity from this time.
Toend_datedate and time
Only activity before this time.
Emailemailtext
Only this contact's activity.
Page cursorcursortext
Where the next page starts: the nextPageCursor of the page before. Leave empty for the first page.
Records per pagecountnumber
How many records a page holds, up to 5000. Leave empty for 1000.From 1 to 5000.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "abuse": true,
        "activityDate": "example",
        "bounce": true,
        "bounceReason": "example",
        "click": true,
        "clickCount": 1,
        "emailAddress": "example",
        "externalContactID": "example",
        "open": true,
        "orderTotal": 1,
        "read": true,
        "sendDate": "example",
        "unsubscribe": true
      }
    ],
    "nextPageCursor": "example",
    "status": 1
  }
}

List messages

List the messages sent or scheduled on a list, optionally within a date range.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
Fromstart_datedate and time
Only messages sent at or after this time.
Toend_datedate and time
Only messages sent before this time.
Include test messagesinclude_test_messagestrue/false
On to include test sends.
Page cursorcursortext
Where the next page starts: the nextPageCursor of the page before. Leave empty for the first page.
Records per pagecountnumber
How many records a page holds, up to 5000. Leave empty for 1000.From 1 to 5000.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "campaignId": 1,
        "externalCampaignId": "example",
        "messageId": 1,
        "messageStatus": "example",
        "sendDate": "example",
        "subject": "example"
      }
    ],
    "nextPageCursor": "example",
    "status": 1
  }
}

List profile field groups

List the groups a list's profile fields are kept in.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "position": 1,
        "segmentationFieldGroupId": 1,
        "segmentationFieldGroupName": "example"
      }
    ],
    "status": 1
  }
}

List profile fields

List the profile fields in a group, with the ID each is saved by.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
Profile field groupfield_group_idnumberRequired
The profile field group.At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "dataType": "example",
        "maxLength": 1,
        "position": 1,
        "segmentationFieldGroupId": 1,
        "segmentationFieldId": 1,
        "segmentationFieldName": "example"
      }
    ],
    "status": 1
  }
}

List saved audiences

List a list's saved audiences, the segments messages can be sent to.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "lastModified": "example",
        "name": "example",
        "savedAudienceId": 1
      }
    ],
    "status": 1
  }
}

List transactional messages

List a list's transactional messages, such as order confirmations, that can be sent to one contact at a time.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "data": [
      {
        "campaignId": 1,
        "externalCampaignId": "example",
        "subject": "example",
        "transactionalMessageId": 1,
        "transactionalMessageName": "example"
      }
    ],
    "status": 1
  }
}

Rename campaign

Change a campaign's name.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
Campaigncampaign_idnumberRequired
The campaign, a label that groups messages for reporting.At least 1.
NamenametextRequired
The campaign's new name.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "resourceId": "example",
    "status": 1
  }
}

Send transactional message

Send a transactional message to one contact, filling its profile fields with the values given.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
Transactional messagetransactional_message_idnumberRequired
The transactional message, set up in Listrak, to send.At least 1.
EmailemailtextRequired
The contact's email address.
Profile fieldsprofile_fieldsobject
Profile field values to save, each a profile field ID with its value, such as `1234`: `Gold`. List Profile Fields shows each field's ID.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "resourceId": "example",
    "status": 1
  }
}

Unsubscribe contact

Unsubscribe a contact from a list, so they get none of its messages.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
EmailemailtextRequired
The contact's email address.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "resourceId": "example",
    "status": 1
  }
}

Update list

Change a list's name, default sender or bounce handling. Fields left empty stay as they are.

Inputs

Listlist_idnumberRequired
The Listrak list (an email audience with its own contacts and messages).At least 1.
Namenametext
The new name.
From emailfrom_emailtext
The new default From address.
From namefrom_nametext
The new default From name.
Bounce handlingbounce_handlingtext
How strictly bounced addresses are unsubscribed.One of: Standard, Aggressive, None (Don't unsubscribe on bounces).
Bounces before unsubscribingbounce_unsubscribe_countnumber
How many bounces a contact may have before being unsubscribed.At least 1.
Double opt-indouble_opt_intrue/false
On to email new subscribers a confirmation link.

Outputs

dataobject
The response from Listrak.
Example output
{
  "data": {
    "resourceId": "example",
    "status": 1
  }
}

On this page