Optimove
App · 25 actions
Read customers, segments and campaigns, update customers, manage email unsubscribes and send transactional emails.
Actions
| Action | What it does |
|---|---|
| Add email unsubscribes | Add email addresses to a brand's unsubscribe list, so its emails no longer reach them. |
| Add or update customer | Add a customer, or update an existing customer's attributes. |
| Delete customers | Delete customers added through the API, the SDK or Imported Customers. |
| Get API key permissions | Get the channels and customer attributes the API key is allowed to use. |
| Get campaign | Get a campaign's target group, channels, group sizes, type and status. |
| Get customer | Get one customer's attributes and their values. |
| Get customer's last action | Get the last marketing action a customer received: the action, the day, its duration and the target group. |
| Get last data update | Get the latest day whose customer data Optimove has finished processing, usually yesterday. |
| List actions | List the marketing actions defined in Optimove, with their IDs. |
| List campaigns run on a day | List the campaigns run on a day, with their target group, type, duration and status. |
| List channel templates | List the templates of a channel, with their IDs. |
| List channels | List the channels campaigns have been sent through, with their IDs. |
| List customer attribute changes | List customers whose value of one attribute changed since the day before, with the value before and after. |
| List customer attributes | List the customer attributes available, by the name other steps take, with a description of each. |
| List customers in campaigns now | List the customers in one or more running campaigns, with the campaign, action and dates. |
| List customers in value segment | List the customers in a value segment now. |
| List customers sent campaigns on a day | List the customers sent campaigns on a day, with the action, recipient group and channel of each. |
| List email unsubscribes | List the email addresses on a brand's unsubscribe list, optionally only those added between two days. |
| List microsegments | List the microsegments of Optimove's customer model, with their lifecycle stage, future value and churn rate. |
| List target groups | List the target groups defined in Optimove, with their IDs and priorities. |
| List transactional email templates | List the transactional email templates, with their content and settings. |
| List value segment changes | List customers whose value segment changed between two days, with the segment before and after. |
| List value segments | List the value segments defined in Optimove, with their IDs. |
| Remove email unsubscribe | Take an email address off a brand's unsubscribe list. |
| Send transactional email | Send 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 ID
brand_idnumberRequired - The ID of your Optimove email brand.At least 0.
- Emails
emailslistRequired - 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 ID
customer_idtextRequired - The customer's ID, as your systems keep it.
- Attributes
attributesobject - Attribute names (as List customer attributes gives them) and the value for each, such as Email and Country.
- Callback URL
callback_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 IDs
customer_idslistRequired - The IDs of the customers to delete, up to 10,000.
- Callback URL
callback_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 ID
campaign_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 ID
customer_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 ID
customer_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
- Date
datedateRequired - 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
- Channel
channel_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
- Attribute
changed_attributetextRequired - The attribute whose changes to list, such as OptimailUnsubscribed.
- Customer attributes
customer_attributeslist - Customer attributes to add to each customer returned, up to 10, such as Email or Country.
- Limit
limitnumber - The most customers to return. Optimove returns 10,000 unless told otherwise.From 1 to 200000.
- Skip
skipnumber - 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 attributes
customer_attributeslist - Customer attributes to add to each customer returned, up to 10, such as Email or Country.
- Limit
limitnumber - The most customers to return. Optimove returns 10,000 unless told otherwise.From 1 to 200000.
- Skip
skipnumber - 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 segment
value_segment_idnumberRequired - The value segment.At least 0.
- Customer attributes
customer_attributeslist - Customer attributes to add to each customer returned, up to 10, such as Email or Country.
- Limit
limitnumber - The most customers to return. Optimove returns 10,000 unless told otherwise.From 1 to 200000.
- Skip
skipnumber - 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
- Date
datedateRequired - The day the campaigns were sent.
- Customer attributes
customer_attributeslist - Customer attributes to add to each customer returned, up to 10, such as Email or Country.
- Limit
limitnumber - The most customers to return. Optimove returns 10,000 unless told otherwise.From 1 to 200000.
- Skip
skipnumber - 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 ID
brand_idnumberRequired - The ID of your Optimove email brand. Your Customer Success Manager can tell you it.At least 0.
- Start date
start_datedate - Only addresses unsubscribed on or after this day.
- End date
end_datedate - Only addresses unsubscribed on or before this day.
- Limit
limitnumber - The most addresses to return, up to 10,000.From 1 to 10000.
- Skip
skipnumber - 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 date
start_datedateRequired - The first day to compare.
- End date
end_datedateRequired - The last day to compare.
- Customer attributes
customer_attributeslist - Customer attributes to add to each customer returned, up to 10, such as Email or Country.
- Limit
limitnumber - The most customers to return. Optimove returns 10,000 unless told otherwise.From 1 to 200000.
- Skip
skipnumber - 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 ID
brand_idnumberRequired - The ID of your Optimove email brand.At least 0.
- Email
emailtextRequired - 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
- Template
template_idnumberRequired - The transactional template to send.At least 1.
- Recipients
recipientslistRequired - The email addresses to send to, up to 200.
- Personalizations
personalizationsobject - Template tags and the value for each, such as [%TRANS:FIRST_NAME%] and Vivienne. The same values go to every recipient.
- Schedule time
schedule_timedate and time - When to send it. Leave empty to send now.
- BCC
bcclist - Email addresses to copy in secretly.
- Unique message ID
unique_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
}
}