Dotdigital

App · 25 actions

Manage contacts, lists and email campaigns in Dotdigital, send transactional email, enrol contacts in programs, and follow new contacts, unsubscribes, sends, opens and clicks.

Actions

ActionWhat it does
Add contact to listAdd a contact to a list by email address, creating the contact if it is new.
Copy campaignMake an unsent copy of a campaign, to change and send again.
Create listCreate a list (address book).
Create or update contactAdd a contact, or update the one with this email address.
Delete campaignDelete a campaign.
Delete contactDelete a contact from the account, and from every list.
Delete listDelete a list.
Enrol in programEnrol contacts, or every contact in some lists, in an active program.
Get campaignGet a campaign's name, subject, sender and status.
Get campaign reportGet a sent campaign's totals: sends, deliveries, opens, clicks, unsubscribes, bounces and revenue.
Get campaign send statusCheck on a send started with Send campaign.
Get contactGet a contact by email address, mobile number or contact ID, with their data fields.
Get listGet a list's name, visibility and contact count.
List campaignsList email campaigns, optionally by status, type or send date.
List contactsList contacts, oldest first, optionally only those in a list or segment, or created or changed since a time.
List contacts in listList the contacts in a list or segment.
List listsList the account's lists (address books) with how many contacts each has.
List programsList the account's automation programs and their status.
List segmentsList the account's segments with how many contacts each has.
Remove contact from listTake a contact out of a list.
Send campaignSend a campaign to lists or segments, now or at a set time.
Send transactional emailSend a one-off email, such as a receipt, written here.
Send triggered campaignSend a triggered (transactional) campaign designed in Dotdigital, filling in its personalization values.
Unsubscribe contact from listUnsubscribe a contact from one list, so they no longer get its campaigns.
Update listRename a list or change its visibility.

Add contact to list

Add a contact to a list by email address, creating the contact if it is new.

Inputs

Listlist_idnumberRequired
The list (address book).At least 1.
EmailemailtextRequired
The contact's email address.
Opt-in typeopt_in_typetext
How the contact agreed to receive email. Verified double opt-in sends them a confirmation email.One of: Unknown, Single (Single opt-in), Double (Double opt-in), VerifiedDouble (Verified double opt-in (sends a confirmation email)).
Email formatemail_typetext
The format the contact gets emails in.One of: Html, PlainText (Plain text).

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "dataFields": [
      {
        "key": "example",
        "value": "example"
      }
    ],
    "email": "example",
    "emailType": "example",
    "id": 1,
    "optInType": "example",
    "status": "example"
  }
}

Copy campaign

Make an unsent copy of a campaign, to change and send again.

Inputs

Campaigncampaign_idnumberRequired
The email campaign.At least 1.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "fromAddress": {
      "email": "example",
      "id": 1
    },
    "fromName": "example",
    "id": 1,
    "isSplitTest": true,
    "name": "example",
    "replyAction": "example",
    "replyToAddress": "example",
    "status": "example",
    "subject": "example"
  }
}

Create list

Create a list (address book).

Inputs

NamenametextRequired
The list's name, up to 128 characters. It must be unique in the account.
Visibilityvisibilitytext
Public lists can be offered to contacts on preference pages. Leave empty for private.One of: Private, Public.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "contacts": 1,
    "id": 1,
    "name": "example",
    "visibility": "example"
  }
}

Create or update contact

Add a contact, or update the one with this email address. Only the fields filled in change.

Inputs

EmailemailtextRequired
The contact's email address.
Other data fieldsdata_fieldsobject
Other contact data fields to set, by their name in Dotdigital, such as POSTCODE.
First namefirst_nametext
The contact's first name (the FIRSTNAME data field).
Last namelast_nametext
The contact's last name (the LASTNAME data field).
Mobile numbermobile_numbertext
The contact's mobile number in international format, such as 447700900184.
Add to listslist_idslist
Lists to add the contact to. Lists they are already in are kept.
Email subscriptionemail_statustext
Subscribe or unsubscribe the contact from email. Leave empty to keep it as it is (new contacts are subscribed).One of: subscribed, unsubscribed.
Opt-in typeopt_in_typetext
How the contact agreed to receive email. Verified double opt-in sends them a confirmation email.One of: single (Single opt-in), double (Double opt-in), verifiedDouble (Verified double opt-in (sends a confirmation email)).
Email formatemail_typetext
The format the contact gets emails in.One of: html, plainText (Plain text).
When a value already existsmerge_optiontext
How new values combine with ones the contact already has. Leave empty to replace them.One of: overwrite (Replace existing values), overwrite-if-not-empty (Replace existing values, but skip blank ones), overwrite-if-empty (Fill in only values that are blank today).

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "channelProperties": {
      "email": {
        "emailType": "example",
        "openTracking": "example",
        "optInType": "example",
        "status": "example"
      },
      "sms": {
        "countryCode": "example",
        "status": "example"
      }
    },
    "contactId": 1,
    "created": "example",
    "dataFields": {},
    "identifiers": {
      "email": "example",
      "mobileNumber": "example"
    },
    "lists": [
      {
        "id": 1,
        "name": "example",
        "status": "example"
      }
    ],
    "status": "example",
    "updated": "example"
  }
}

Delete campaign

Delete a campaign.

Inputs

Campaigncampaign_idnumberRequired
The email campaign.At least 1.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {}
}

Delete contact

Delete a contact from the account, and from every list.

Inputs

Find contact byfind_bytext
What the contact is looked up by. Leave empty for email address.One of: email (Email address), mobileNumber (Mobile number), contactId (Contact ID). Default: email.
ContactcontacttextRequired
The contact's email address, mobile number (in international format, such as 447700900184) or contact ID, matching Find contact by.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "contactId": 1
  }
}

Delete list

Delete a list. Its contacts stay in the account.

Inputs

Listlist_idnumberRequired
The list (address book).At least 1.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {}
}

Enrol in program

Enrol contacts, or every contact in some lists, in an active program.

Inputs

Programprogram_idnumberRequired
The program. It must be active.At least 1.
Contact emailsemailslist
Email addresses of contacts to enrol, up to 25. Each must already be a contact.
Listslist_idslist
Lists whose contacts to enrol, up to 10.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "addressBooks": [
      1
    ],
    "contacts": [
      1
    ],
    "dateCreated": "example",
    "id": "example",
    "programId": 1,
    "status": "example"
  }
}

Get campaign

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

Inputs

Campaigncampaign_idnumberRequired
The email campaign.At least 1.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "fromAddress": {
      "email": "example",
      "id": 1
    },
    "fromName": "example",
    "id": 1,
    "isSplitTest": true,
    "name": "example",
    "replyAction": "example",
    "replyToAddress": "example",
    "status": "example",
    "subject": "example"
  }
}

Get campaign report

Get a sent campaign's totals: sends, deliveries, opens, clicks, unsubscribes, bounces and revenue.

Inputs

Campaigncampaign_idnumberRequired
The email campaign.At least 1.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "dateSent": "example",
    "numOrders": 1,
    "numRecipientsClicked": 1,
    "numTotalClicks": 1,
    "numTotalDelivered": 1,
    "numTotalHardBounces": 1,
    "numTotalIspComplaints": 1,
    "numTotalSent": 1,
    "numTotalSoftBounces": 1,
    "numTotalUniqueOpens": 1,
    "numTotalUnsubscribes": 1,
    "percentageDelivered": 1,
    "percentageUniqueOpens": 1,
    "percentageUnsubscribes": 1,
    "percentageUsersClicked": 1,
    "revenue": "example"
  }
}

Get campaign send status

Check on a send started with Send campaign.

Inputs

Send IDsend_idtextRequired
The send's ID, which Send campaign returns.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "campaignId": 1,
    "id": "example",
    "sendDate": "example",
    "status": "example"
  }
}

Get contact

Get a contact by email address, mobile number or contact ID, with their data fields.

Inputs

Find contact byfind_bytext
What the contact is looked up by. Leave empty for email address.One of: email (Email address), mobileNumber (Mobile number), contactId (Contact ID). Default: email.
ContactcontacttextRequired
The contact's email address, mobile number (in international format, such as 447700900184) or contact ID, matching Find contact by.
Includeincludelist
Extra details to return with each contact.One or more of: channelProperties (Channel subscriptions), lists, preferences, consentRecords (Consent records).

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "channelProperties": {
      "email": {
        "emailType": "example",
        "openTracking": "example",
        "optInType": "example",
        "status": "example"
      },
      "sms": {
        "countryCode": "example",
        "status": "example"
      }
    },
    "contactId": 1,
    "created": "example",
    "dataFields": {},
    "identifiers": {
      "email": "example",
      "mobileNumber": "example"
    },
    "lists": [
      {
        "id": 1,
        "name": "example",
        "status": "example"
      }
    ],
    "status": "example",
    "updated": "example"
  }
}

Get list

Get a list's name, visibility and contact count.

Inputs

Listlist_idnumberRequired
The list (address book).At least 1.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "contacts": 1,
    "id": 1,
    "name": "example",
    "visibility": "example"
  }
}

List campaigns

List email campaigns, optionally by status, type or send date.

Inputs

Statusesstatuseslist
Only campaigns with these statuses.One or more of: Unsent (Not sent), Sent, Sending, Paused, Cancelled, RequiresWorkflowApproval (Waiting for approval).
Typetypetext
Only standard or only triggered (transactional) campaigns.One of: Standard, Triggered (Triggered (transactional)).
Sent sincesent_sincedate
Only campaigns sent on or after this date.
Records to returnselectnumber
How many records to return, up to 1000. Leave empty for 1000.From 1 to 1000.
Records to skipskipnumber
How many records to skip, for reading the next page. Leave empty to start at the first record.At least 1.

Outputs

datalist
The response from Dotdigital.
Example output
{
  "data": [
    {
      "fromAddress": {
        "email": "example",
        "id": 1
      },
      "fromName": "example",
      "id": 1,
      "isSplitTest": true,
      "name": "example",
      "scheduledDate": "example",
      "sentDate": "example",
      "status": "example",
      "subject": "example",
      "tags": [
        "example"
      ],
      "type": "example"
    }
  ]
}

List contacts

List contacts, oldest first, optionally only those in a list or segment, or created or changed since a time.

Inputs

Listlist_idnumber
Only contacts in this list.At least 1.
Segmentsegment_idnumber
Only contacts in this segment.At least 1.
Created sincecreated_sincedate and time
Only contacts created at or after this time.
Changed sincemodified_sincedate and time
Only contacts changed at or after this time.
Data fieldsdata_fieldslist
Contact data fields to return, such as FIRSTNAME and LASTNAME, or [[ALL]] for every one.
Includeincludelist
Extra details to return with each contact.One or more of: channelProperties (Channel subscriptions), lists, preferences, consentRecords (Consent records).
Contacts to returnlimitnumber
How many contacts to return, up to 5000. Leave empty for 1000.From 1 to 5000.
Page markermarkertext
The marker from the last page's next link, to read the next page.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "_items": [
      {
        "channelProperties": {
          "email": {
            "emailType": "example",
            "openTracking": "example",
            "optInType": "example",
            "status": "example"
          },
          "sms": {
            "countryCode": "example",
            "status": "example"
          }
        },
        "contactId": 1,
        "created": "example",
        "dataFields": {},
        "identifiers": {
          "email": "example",
          "mobileNumber": "example"
        },
        "lists": [
          {
            "id": 1,
            "name": "example",
            "status": "example"
          }
        ],
        "status": "example",
        "updated": "example"
      }
    ],
    "_links": {
      "next": {
        "link": "example",
        "marker": "example"
      }
    }
  }
}

List contacts in list

List the contacts in a list or segment.

Inputs

Listlist_idnumberRequired
The list (address book).At least 1.
Include data fieldswith_full_datatrue/false
Also return each contact's data fields.
Records to returnselectnumber
How many records to return, up to 1000. Leave empty for 1000.From 1 to 1000.
Records to skipskipnumber
How many records to skip, for reading the next page. Leave empty to start at the first record.At least 1.

Outputs

datalist
The response from Dotdigital.
Example output
{
  "data": [
    {
      "dataFields": [
        {
          "key": "example",
          "value": "example"
        }
      ],
      "email": "example",
      "emailType": "example",
      "id": 1,
      "optInType": "example",
      "status": "example"
    }
  ]
}

List lists

List the account's lists (address books) with how many contacts each has.

Inputs

Records to returnselectnumber
How many records to return, up to 1000. Leave empty for 1000.From 1 to 1000.
Records to skipskipnumber
How many records to skip, for reading the next page. Leave empty to start at the first record.At least 1.

Outputs

datalist
The response from Dotdigital.
Example output
{
  "data": [
    {
      "contacts": 1,
      "id": 1,
      "name": "example",
      "visibility": "example"
    }
  ]
}

List programs

List the account's automation programs and their status.

Inputs

Records to returnselectnumber
How many records to return, up to 1000. Leave empty for 1000.From 1 to 1000.
Records to skipskipnumber
How many records to skip, for reading the next page. Leave empty to start at the first record.At least 1.

Outputs

datalist
The response from Dotdigital.
Example output
{
  "data": [
    {
      "dateCreated": "example",
      "id": 1,
      "name": "example",
      "status": "example"
    }
  ]
}

List segments

List the account's segments with how many contacts each has.

Inputs

None.

Outputs

datalist
The response from Dotdigital.
Example output
{
  "data": [
    {
      "contacts": 1,
      "id": 1,
      "name": "example"
    }
  ]
}

Remove contact from list

Take a contact out of a list. The contact stays in the account.

Inputs

Listlist_idnumberRequired
The list (address book).At least 1.
EmailemailtextRequired
The contact's email address.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "contactId": 1,
    "listId": 1
  }
}

Send campaign

Send a campaign to lists or segments, now or at a set time.

Inputs

Campaigncampaign_idnumberRequired
The email campaign.At least 1.
Listslist_idslist
Lists to send to.
Segmentssegment_idslist
Segments to send to.
Send atsend_datedate and time
When to send. Leave empty to send now.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "campaignId": 1,
    "id": "example",
    "sendDate": "example",
    "status": "example"
  }
}

Send transactional email

Send a one-off email, such as a receipt, written here.

Inputs

TotolistRequired
The email addresses to send to.
SubjectsubjecttextRequired
The subject line.
HTML contenthtmltext
The email's HTML content.
Plain text contenttexttext
The email's plain text content.
From addressfrom_addresstext
The sender. It must be a from address set up in Dotdigital; leave empty for the account's default.
CCcclist
Email addresses to copy in.
BCCbcclist
Email addresses to blind copy.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "sent": true,
    "toAddresses": [
      "example"
    ]
  }
}

Send triggered campaign

Send a triggered (transactional) campaign designed in Dotdigital, filling in its personalization values.

Inputs

TotolistRequired
The email addresses to send to.
Triggered campaigncampaign_idnumberRequired
The triggered campaign to send.At least 1.
Personalization valuespersonalizationobject
Values for the campaign's personalization placeholders, by placeholder name.
From addressfrom_addresstext
The sender. It must be a from address set up in Dotdigital; leave empty for the account's default.
CCcclist
Email addresses to copy in.
BCCbcclist
Email addresses to blind copy.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "sent": true,
    "toAddresses": [
      "example"
    ]
  }
}

Unsubscribe contact from list

Unsubscribe a contact from one list, so they no longer get its campaigns.

Inputs

Listlist_idnumberRequired
The list (address book).At least 1.
EmailemailtextRequired
The contact's email address.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "dateRemoved": "example",
    "reason": "example",
    "suppressedContact": {
      "dataFields": [
        {
          "key": "example",
          "value": "example"
        }
      ],
      "email": "example",
      "emailType": "example",
      "id": 1,
      "optInType": "example",
      "status": "example"
    }
  }
}

Update list

Rename a list or change its visibility.

Inputs

Listlist_idnumberRequired
The list (address book).At least 1.
NamenametextRequired
The list's name, up to 128 characters.
Visibilityvisibilitytext
Public lists can be offered to contacts on preference pages.One of: Private, Public.

Outputs

dataobject
The response from Dotdigital.
Example output
{
  "data": {
    "contacts": 1,
    "id": 1,
    "name": "example",
    "visibility": "example"
  }
}

On this page