Optimove

App · 25 actions

Read customers, segments and campaigns, update customers, manage email unsubscribes and send transactional emails.

Actions

ActionWhat it does
Add email unsubscribesAdd email addresses to a brand's unsubscribe list, so its emails no longer reach them.
Add or update customerAdd a customer, or update an existing customer's attributes.
Delete customersDelete customers added through the API, the SDK or Imported Customers.
Get API key permissionsGet the channels and customer attributes the API key is allowed to use.
Get campaignGet a campaign's target group, channels, group sizes, type and status.
Get customerGet one customer's attributes and their values.
Get customer's last actionGet the last marketing action a customer received: the action, the day, its duration and the target group.
Get last data updateGet the latest day whose customer data Optimove has finished processing, usually yesterday.
List actionsList the marketing actions defined in Optimove, with their IDs.
List campaigns run on a dayList the campaigns run on a day, with their target group, type, duration and status.
List channel templatesList the templates of a channel, with their IDs.
List channelsList the channels campaigns have been sent through, with their IDs.
List customer attribute changesList customers whose value of one attribute changed since the day before, with the value before and after.
List customer attributesList the customer attributes available, by the name other steps take, with a description of each.
List customers in campaigns nowList the customers in one or more running campaigns, with the campaign, action and dates.
List customers in value segmentList the customers in a value segment now.
List customers sent campaigns on a dayList the customers sent campaigns on a day, with the action, recipient group and channel of each.
List email unsubscribesList the email addresses on a brand's unsubscribe list, optionally only those added between two days.
List microsegmentsList the microsegments of Optimove's customer model, with their lifecycle stage, future value and churn rate.
List target groupsList the target groups defined in Optimove, with their IDs and priorities.
List transactional email templatesList the transactional email templates, with their content and settings.
List value segment changesList customers whose value segment changed between two days, with the segment before and after.
List value segmentsList the value segments defined in Optimove, with their IDs.
Remove email unsubscribeTake an email address off a brand's unsubscribe list.
Send transactional emailSend a transactional email template to up to 200 people, now or at a set time.

Add email unsubscribes

Add email addresses to a brand's unsubscribe list, so its emails no longer reach them.

Inputs

Brand IDbrand_idnumberRequired
The ID of your Optimove email brand.At least 0.
EmailsemailslistRequired
The email addresses to unsubscribe, up to 200.

Outputs

dataobject
The response from Optimove.
Example output
{
  "data": {
    "Error": "example"
  }
}

Add or update customer

Add a customer, or update an existing customer's attributes. Optimove accepts the change at once and applies it within a few minutes. Needs Customer Ingestion turned on for your tenant.

Inputs

Customer IDcustomer_idtextRequired
The customer's ID, as your systems keep it.
Attributesattributesobject
Attribute names (as List customer attributes gives them) and the value for each, such as Email and Country.
Callback URLcallback_urltext
A web address Optimove sends the outcome to once it is applied.

Outputs

dataobject
The response from Optimove.
Example output
{
  "data": {
    "traceId": "example"
  }
}

Delete customers

Delete customers added through the API, the SDK or Imported Customers. Customers from the daily batch are refused. Optimove accepts the request at once and applies it within a few minutes.

Inputs

Customer IDscustomer_idslistRequired
The IDs of the customers to delete, up to 10,000.
Callback URLcallback_urltext
A web address Optimove sends the outcome to, with any customers it refused.

Outputs

dataobject
The response from Optimove.
Example output
{
  "data": {
    "TraceId": "example"
  }
}

Get API key permissions

Get the channels and customer attributes the API key is allowed to use.

Inputs

None.

Outputs

dataobject
The response from Optimove.
Example output
{
  "data": {
    "AllowedAll": true,
    "AllowedAttributes": [
      {
        "AliasFieldName": "example",
        "CharacterMaximumLength": 1,
        "DataType": "example",
        "RealFieldName": "example"
      }
    ],
    "AllowedChannels": [
      {
        "ChannelId": 1,
        "Name": "example"
      }
    ]
  }
}

Get campaign

Get a campaign's target group, channels, group sizes, type and status.

Inputs

Campaign IDcampaign_idnumberRequired
The campaign's ID.At least 1.

Outputs

dataobject
The response from Optimove.
Example output
{
  "data": {
    "CampaignType": "example",
    "Channels": [
      {
        "Id": 1,
        "Name": "example"
      }
    ],
    "ControlGroupSize": 1,
    "Duration": 1,
    "Error": "example",
    "IsMultiChannel": true,
    "IsRecurrence": true,
    "LeadTime": 1,
    "Notes": "example",
    "Status": "example",
    "Tags": [
      {}
    ],
    "TargetGroupID": 1,
    "TestGroupSize": 1
  }
}

Get customer

Get one customer's attributes and their values.

Inputs

Customer IDcustomer_idtextRequired
The customer's ID, as your systems give it to Optimove.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "Alias": "example",
      "FieldType": "example",
      "RealFieldName": "example",
      "Value": "example"
    }
  ]
}

Get customer's last action

Get the last marketing action a customer received: the action, the day, its duration and the target group.

Inputs

Customer IDcustomer_idtextRequired
The customer's ID.

Outputs

dataobject
The response from Optimove.
Example output
{
  "data": {
    "ActionID": 1,
    "Date": "example",
    "Duration": 1,
    "TargetGroupID": 1
  }
}

Get last data update

Get the latest day whose customer data Optimove has finished processing, usually yesterday.

Inputs

None.

Outputs

dataobject
The response from Optimove.
Example output
{
  "data": {
    "Date": "example"
  }
}

List actions

List the marketing actions defined in Optimove, with their IDs.

Inputs

None.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "ActionID": 1,
      "ActionName": "example"
    }
  ]
}

List campaigns run on a day

List the campaigns run on a day, with their target group, type, duration and status. Failed campaigns aren't listed.

Inputs

DatedatedateRequired
The day the campaigns ran.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "CampaignID": 1,
      "CampaignType": "example",
      "Duration": 1,
      "Error": "example",
      "IsMultiChannel": true,
      "IsRecurrence": true,
      "LeadTime": 1,
      "Notes": "example",
      "Status": "example",
      "TargetGroupID": 1
    }
  ]
}

List channel templates

List the templates of a channel, with their IDs.

Inputs

Channelchannel_idnumberRequired
The channel.At least 0.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "TemplateID": 1,
      "TemplateName": "example"
    }
  ]
}

List channels

List the channels campaigns have been sent through, with their IDs.

Inputs

None.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "ChannelId": 1,
      "ChannelName": "example"
    }
  ]
}

List customer attribute changes

List customers whose value of one attribute changed since the day before, with the value before and after.

Inputs

Attributechanged_attributetextRequired
The attribute whose changes to list, such as OptimailUnsubscribed.
Customer attributescustomer_attributeslist
Customer attributes to add to each customer returned, up to 10, such as Email or Country.
Limitlimitnumber
The most customers to return. Optimove returns 10,000 unless told otherwise.From 1 to 200000.
Skipskipnumber
How many customers to skip, to read the next page.At least 0.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "CustomerAttributes": [
        "example"
      ],
      "CustomerID": "example",
      "FinalCustomerAttribute": "example",
      "InitialCustomerAttribute": "example"
    }
  ]
}

List customer attributes

List the customer attributes available, by the name other steps take, with a description of each.

Inputs

None.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "Description": "example",
      "RealFieldName": "example"
    }
  ]
}

List customers in campaigns now

List the customers in one or more running campaigns, with the campaign, action and dates.

Inputs

Customer attributescustomer_attributeslist
Customer attributes to add to each customer returned, up to 10, such as Email or Country.
Limitlimitnumber
The most customers to return. Optimove returns 10,000 unless told otherwise.From 1 to 200000.
Skipskipnumber
How many customers to skip, to read the next page.At least 0.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "ActionID": 1,
      "CampaignID": 1,
      "CustomerAttributes": [
        "example"
      ],
      "CustomerID": "example",
      "EndDate": "example",
      "StartDate": "example"
    }
  ]
}

List customers in value segment

List the customers in a value segment now.

Inputs

Value segmentvalue_segment_idnumberRequired
The value segment.At least 0.
Customer attributescustomer_attributeslist
Customer attributes to add to each customer returned, up to 10, such as Email or Country.
Limitlimitnumber
The most customers to return. Optimove returns 10,000 unless told otherwise.From 1 to 200000.
Skipskipnumber
How many customers to skip, to read the next page.At least 0.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "CustomerAttributes": [
        "example"
      ],
      "CustomerID": "example"
    }
  ]
}

List customers sent campaigns on a day

List the customers sent campaigns on a day, with the action, recipient group and channel of each.

Inputs

DatedatedateRequired
The day the campaigns were sent.
Customer attributescustomer_attributeslist
Customer attributes to add to each customer returned, up to 10, such as Email or Country.
Limitlimitnumber
The most customers to return. Optimove returns 10,000 unless told otherwise.From 1 to 200000.
Skipskipnumber
How many customers to skip, to read the next page.At least 0.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "ActionID": 1,
      "ChannelID": 1,
      "CustomerAttributes": [
        "example"
      ],
      "CustomerID": "example",
      "RecipientGroupID": 1
    }
  ]
}

List email unsubscribes

List the email addresses on a brand's unsubscribe list, optionally only those added between two days.

Inputs

Brand IDbrand_idnumberRequired
The ID of your Optimove email brand. Your Customer Success Manager can tell you it.At least 0.
Start datestart_datedate
Only addresses unsubscribed on or after this day.
End dateend_datedate
Only addresses unsubscribed on or before this day.
Limitlimitnumber
The most addresses to return, up to 10,000.From 1 to 10000.
Skipskipnumber
How many addresses to skip, to read the next page.At least 0.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "Email": "example",
      "UnsubscribedTime": "example"
    }
  ]
}

List microsegments

List the microsegments of Optimove's customer model, with their lifecycle stage, future value and churn rate.

Inputs

None.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "ChurnRate": 1,
      "ConversionProbability": 1,
      "FutureValue": 1,
      "LifecycleStageID": "example",
      "MicrosegmentID": 1,
      "MicrosegmentName": "example",
      "ReactivationRate": 1
    }
  ]
}

List target groups

List the target groups defined in Optimove, with their IDs and priorities.

Inputs

None.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "TargetGroupID": 1,
      "TargetGroupName": "example",
      "TargetGroupPriority": 1
    }
  ]
}

List transactional email templates

List the transactional email templates, with their content and settings.

Inputs

None.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "TemplateAttributes": [
        "example"
      ],
      "TemplateContent": "example",
      "TemplateID": 1,
      "TemplateName": "example"
    }
  ]
}

List value segment changes

List customers whose value segment changed between two days, with the segment before and after.

Inputs

Start datestart_datedateRequired
The first day to compare.
End dateend_datedateRequired
The last day to compare.
Customer attributescustomer_attributeslist
Customer attributes to add to each customer returned, up to 10, such as Email or Country.
Limitlimitnumber
The most customers to return. Optimove returns 10,000 unless told otherwise.From 1 to 200000.
Skipskipnumber
How many customers to skip, to read the next page.At least 0.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "CustomerAttributes": [
        "example"
      ],
      "CustomerID": "example",
      "FinalValueSegmentID": 1,
      "InitialValueSegmentID": 1
    }
  ]
}

List value segments

List the value segments defined in Optimove, with their IDs.

Inputs

None.

Outputs

datalist
The response from Optimove.
Example output
{
  "data": [
    {
      "ValueSegmentID": 1,
      "ValueSegmentName": "example"
    }
  ]
}

Remove email unsubscribe

Take an email address off a brand's unsubscribe list.

Inputs

Brand IDbrand_idnumberRequired
The ID of your Optimove email brand.At least 0.
EmailemailtextRequired
The email address to take off the list.

Outputs

dataobject
The response from Optimove.
Example output
{
  "data": {
    "Error": "example"
  }
}

Send transactional email

Send a transactional email template to up to 200 people, now or at a set time.

Inputs

Templatetemplate_idnumberRequired
The transactional template to send.At least 1.
RecipientsrecipientslistRequired
The email addresses to send to, up to 200.
Personalizationspersonalizationsobject
Template tags and the value for each, such as [%TRANS:FIRST_NAME%] and Vivienne. The same values go to every recipient.
Schedule timeschedule_timedate and time
When to send it. Leave empty to send now.
BCCbcclist
Email addresses to copy in secretly.
Unique message IDunique_message_idtext
An ID of your own for this send, so sending it twice is refused. Up to 254 characters.

Outputs

dataobject
The response from Optimove.
Example output
{
  "data": {
    "Error": "example",
    "IsSuccess": true,
    "SendID": 1
  }
}

On this page