Blueshift

App · 28 actions

Update customer profiles, send events, manage customer lists and catalogs, and trigger campaigns in Blueshift.

Actions

ActionWhat it does
Add a customer to a listAdd a customer to a customer list.
Add items to a catalogAdd products to a catalog, or update the ones with the same product ID.
Archive a campaignArchive a campaign.
Create a catalogCreate an empty product catalog to add items to.
Create a customer listCreate an empty customer list to add customers to.
Create an email templateCreate an HTML email template.
Create or update a customerCreate a customer, or update the one with the same email address or customer ID.
Delete a customerPermanently delete a customer's personal data.
Get a catalogGet one product catalog.
Get a customerGet a customer's profile by their Blueshift UUID.
Get a customer listGet a customer list (a custom user list) and how many customers it holds.
Get an email templateGet an email template's subject and content, and the campaigns that use it.
Get customer eventsList the events Blueshift has for a customer.
Get event historyList the latest events of one name that Blueshift received, newest first.
Get segment countsGet how many customers a segment holds, in total and by channel.
Launch a campaignLaunch a campaign now.
List campaignsList campaigns by name, status, type or date.
List catalogsList the product catalogs in the account.
List email templatesList email templates, optionally by name.
List segmentsList segments, optionally by name.
List subscription groupsList the subscription groups customers can opt in to or out of.
Pause a campaignPause a running or scheduled campaign.
Remove a customer from a listTake a customer out of a customer list.
Search customersFind customers by email address.
Send an eventRecord an event for a customer, such as a purchase or a sign-up.
Trigger a campaignSend an event-triggered or API-triggered campaign to one customer.
Unarchive a campaignBring an archived campaign back.
Update an email templateChange an email template's subject, preheader or content.

Add a customer to a list

Add a customer to a customer list.

Inputs

List IDlist_idnumberRequired
The number of the customer list, from its page in Blueshift.
Find customer byidentifier_keytextRequired
Whether the customer is given by email address or customer ID.One of: email, customer_id (Customer id).
Email or customer IDidentifier_valuetextRequired
The customer's email address or customer ID.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "status": "example"
  }
}

Add items to a catalog

Add products to a catalog, or update the ones with the same product ID.

Inputs

Catalogcatalog_uuidtextRequired
The catalog.
ProductsproductslistRequired
The products: each needs a product_id, title, image, web_link, availability (in_stock or out_of_stock) and a category list.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "status": "example"
  }
}

Archive a campaign

Archive a campaign.

Inputs

Campaigncampaign_uuidtextRequired
The campaign.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "archived": true
  }
}

Create a catalog

Create an empty product catalog to add items to.

Inputs

NamenametextRequired
The catalog's name.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "catalog_uuid": "example"
  }
}

Create a customer list

Create an empty customer list to add customers to.

Inputs

NamenametextRequired
The list's name.
DescriptiondescriptiontextRequired
What the list holds.
Seed listis_seed_listtrue/false
Make it a seed list, for test sends.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "created_at": "example",
    "description": "example",
    "filename": "example",
    "id": 1,
    "is_seed_list": true,
    "source": "example",
    "status": "example",
    "updated_at": "example",
    "user_count": 1,
    "uuid": "example"
  }
}

Create an email template

Create an HTML email template.

Inputs

NamenametextRequired
The template's name.
SubjectsubjecttextRequired
The email's subject line.
HTML contentcontenttextRequired
The email's HTML.
Preheaderpreheadertext
The preview text shown after the subject.
Author emailauthortext
The email address of the template's author.
Tagstag_datatext
Tags, as a folder and its tags: `folder_name: tag1, tag2`.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "status": "example",
    "uuid": "example"
  }
}

Create or update a customer

Create a customer, or update the one with the same email address or customer ID.

Inputs

Emailemailtext
The customer's email address.
Customer IDcustomer_idtext
The customer ID your systems use.
Phone numberphone_numbertext
The phone number, with its country code.
First namefirstnametext
The first name.
Last namelastnametext
The last name.
Gendergendertext
The gender, as your account records it.
Unsubscribed from emailunsubscribedtrue/false
Whether the customer is unsubscribed from email.
Other attributesattributesobject
Other attributes to set, by name, such as plan or city.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "customer": {
      "created_at": "example",
      "custom_attributes": {},
      "customer_id": "example",
      "email": "example",
      "firstname": "example",
      "joined_at": "example",
      "last_purchase_at": "example",
      "last_visit_at": "example",
      "lastname": "example",
      "lifetime_orders": 1,
      "lifetime_visits": 1,
      "phone_number": "example",
      "unsubscribed": true,
      "updated_at": "example",
      "uuid": "example"
    }
  }
}

Delete a customer

Permanently delete a customer's personal data.

Inputs

Emailemailtext
The customer's email address.
Customer IDcustomer_idtext
The customer ID your systems use.
Delete all matching profilesdelete_all_matching_customerstrue/false
Delete every profile that matches, not only the first.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "status": "example"
  }
}

Get a catalog

Get one product catalog.

Inputs

Catalogcatalog_uuidtextRequired
The catalog.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "catalog_type": "example",
    "last_processed": "example",
    "name": "example",
    "upload_method": "example",
    "url": "example",
    "uuid": "example"
  }
}

Get a customer

Get a customer's profile by their Blueshift UUID.

Inputs

Customer UUIDcustomer_uuidtextRequired
The customer's Blueshift UUID.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "customer": {
      "created_at": "example",
      "custom_attributes": {},
      "customer_id": "example",
      "email": "example",
      "firstname": "example",
      "joined_at": "example",
      "last_purchase_at": "example",
      "last_visit_at": "example",
      "lastname": "example",
      "lifetime_orders": 1,
      "lifetime_visits": 1,
      "phone_number": "example",
      "unsubscribed": true,
      "updated_at": "example",
      "uuid": "example"
    }
  }
}

Get a customer list

Get a customer list (a custom user list) and how many customers it holds.

Inputs

List IDlist_idnumberRequired
The number of the customer list, from its page in Blueshift.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "created_at": "example",
    "description": "example",
    "filename": "example",
    "id": 1,
    "is_seed_list": true,
    "source": "example",
    "status": "example",
    "updated_at": "example",
    "user_count": 1,
    "uuid": "example"
  }
}

Get an email template

Get an email template's subject and content, and the campaigns that use it.

Inputs

Email templatetemplate_uuidtextRequired
The email template.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "author": "example",
    "campaigns": [
      {
        "names": "example",
        "status": "example",
        "uuid": "example"
      }
    ],
    "created_at": "example",
    "name": "example",
    "resource": {
      "content": "example",
      "subject": "example"
    },
    "updated_at": "example",
    "uuid": "example"
  }
}

Get customer events

List the events Blueshift has for a customer.

Inputs

Customer UUIDcustomer_uuidtextRequired
The customer's Blueshift UUID.

Outputs

datalist
The response from Blueshift.
Example output
{
  "data": [
    {
      "_bsft_ts": "example",
      "customer_id": "example",
      "email": "example",
      "event": "example",
      "event_uuid": "example",
      "timestamp": "example",
      "user_uuid": "example"
    }
  ]
}

Get event history

List the latest events of one name that Blueshift received, newest first.

Inputs

Event nameevent_nametextRequired
The event's name, such as purchase.
Limitlimitnumber
How many events to return, up to 50.From 1 to 50.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "events": [
      {
        "_bsft_ts": "example",
        "customer_id": "example",
        "email": "example",
        "event": "example",
        "event_uuid": "example",
        "timestamp": "example",
        "user_uuid": "example"
      }
    ]
  }
}

Get segment counts

Get how many customers a segment holds, in total and by channel.

Inputs

Segmentsegment_uuidtextRequired
The segment.
Refresh countsrefreshtrue/false
Start working the counts out again. They update in the background.
Channelchannelstext
Only count the customers reachable on this channel.One of: users, email, push, sms, inApp.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "approxusers": 1,
    "approxusers_updated_at": "example",
    "email_users": 1,
    "in_app_users": 1,
    "push_users": 1,
    "refresh_status": "example",
    "sms_users": 1
  }
}

Launch a campaign

Launch a campaign now. Archived or completed campaigns can't be launched.

Inputs

Campaigncampaign_uuidtextRequired
The campaign.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "status": "example",
    "updated_at": "example",
    "uuid": "example"
  }
}

List campaigns

List campaigns by name, status, type or date. One-time campaigns list only those that started in the last 30 days unless a start date is given.

Inputs

Name containsnametext
Only campaigns whose name contains this text.
Statusstatustext
Only campaigns with this status.One of: draft, launched, paused, completed.
Typeexec_termtext
Only campaigns of this type: one time, recurring, segment triggered (on going), event triggered (transactional) or live content (onsite).One of: one_time (One time), recurring, on_going (On going), transactional, onsite.
Archivedarchivedtrue/false
List archived campaigns.
Author emailauthor_emailtext
Only campaigns made by the person with this email address.
Created aftercreated_afterdate and time
Only campaigns created after this time.
Created beforecreated_beforedate and time
Only campaigns created before this time.
Started afterstartdatedate and time
Only campaigns that started after this time.
Pagepagenumber
The page of results, starting at 1.At least 1.
Per pageper_pagenumber
How many results each page holds.At least 1.

Outputs

datalist
The response from Blueshift.
Example output
{
  "data": [
    {
      "archived": true,
      "author": "example",
      "created_at": "example",
      "email": "example",
      "exec_term": "example",
      "name": "example",
      "next_execution_scheduled_at": "example",
      "segment_name": "example",
      "segment_uuid": "example",
      "startdate": "example",
      "status": "example",
      "updated_at": "example",
      "uuid": "example"
    }
  ]
}

List catalogs

List the product catalogs in the account.

Inputs

None.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "catalogs": [
      {
        "catalog_type": "example",
        "last_processed": "example",
        "name": "example",
        "upload_method": "example",
        "url": "example",
        "uuid": "example"
      }
    ]
  }
}

List email templates

List email templates, optionally by name.

Inputs

Name containsnametext
Only templates whose name contains this text.
Archivedarchivedtrue/false
List archived templates instead of current ones.
Editoreditor_typetext
Only templates made in this editor.One of: html, visual.
Pagepagenumber
The page of results, starting at 1.At least 1.
Per pageper_pagenumber
How many results each page holds.At least 1.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "template": [
      {
        "author": "example",
        "created_at": "example",
        "name": "example",
        "resource": {
          "updated_at": "example"
        },
        "updated_at": "example",
        "uuid": "example"
      }
    ]
  }
}

List segments

List segments, optionally by name.

Inputs

Name containsnametext
Only segments whose name contains this text.
Archivedarchivedtrue/false
List archived segments instead of current ones.
Pagepagenumber
The page of results, starting at 1.At least 1.
Per pageper_pagenumber
How many results each page holds.At least 1.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "segments": [
      {
        "approxusers": 1,
        "created_at": "example",
        "email_users": 1,
        "name": "example",
        "push_users": 1,
        "sms_users": 1,
        "status": "example",
        "updated_at": "example",
        "uuid": "example",
        "version": 1
      }
    ]
  }
}

List subscription groups

List the subscription groups customers can opt in to or out of.

Inputs

None.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "subscription_groups": [
      {
        "archived": true,
        "author": "example",
        "created_at": "example",
        "description": "example",
        "subscription_group_id": "example",
        "subscription_group_label": "example",
        "updated_at": "example",
        "uuid": "example"
      }
    ]
  }
}

Pause a campaign

Pause a running or scheduled campaign.

Inputs

Campaigncampaign_uuidtextRequired
The campaign.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "status": "example",
    "updated_at": "example",
    "uuid": "example"
  }
}

Remove a customer from a list

Take a customer out of a customer list.

Inputs

List IDlist_idnumberRequired
The number of the customer list, from its page in Blueshift.
Find customer byidentifier_keytextRequired
Whether the customer is given by email address or customer ID.One of: email, customer_id (Customer id).
Email or customer IDidentifier_valuetextRequired
The customer's email address or customer ID.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "status": "example"
  }
}

Search customers

Find customers by email address.

Inputs

EmailemailtextRequired
The email address to look for.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "user": {
      "created_at": "example",
      "custom_attributes": {},
      "customer_id": "example",
      "email": "example",
      "firstname": "example",
      "joined_at": "example",
      "last_purchase_at": "example",
      "last_visit_at": "example",
      "lastname": "example",
      "lifetime_orders": 1,
      "lifetime_visits": 1,
      "phone_number": "example",
      "unsubscribed": true,
      "updated_at": "example",
      "uuid": "example"
    },
    "users": [
      {
        "created_at": "example",
        "custom_attributes": {},
        "customer_id": "example",
        "email": "example",
        "firstname": "example",
        "joined_at": "example",
        "last_purchase_at": "example",
        "last_visit_at": "example",
        "lastname": "example",
        "lifetime_orders": 1,
        "lifetime_visits": 1,
        "phone_number": "example",
        "unsubscribed": true,
        "updated_at": "example",
        "uuid": "example"
      }
    ]
  }
}

Send an event

Record an event for a customer, such as a purchase or a sign-up.

Inputs

Event nameeventtextRequired
The event's name, such as identify, add_to_cart or purchase.
Emailemailtext
The customer's email address.
Customer IDcustomer_idtext
The customer ID your systems use.
Event IDevent_uuidtext
A unique ID for the event, so it is only recorded once.
Event attributesattributesobject
The event's other attributes, by name, such as order_id or revenue.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "status": "example"
  }
}

Trigger a campaign

Send an event-triggered or API-triggered campaign to one customer.

Inputs

Campaigncampaign_uuidtextRequired
The event-triggered or API-triggered campaign.
EmailemailtextRequired
The email address of the customer to send it to.
Transaction IDtransaction_uuidtext
A unique ID (a UUID) for this send, so a repeat isn't sent twice.
High priorityhigh_prioritytrue/false
Process this send ahead of others.
Attachment linksemail_attachmentslist
Links to files to attach to the email.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "success": true
  }
}

Unarchive a campaign

Bring an archived campaign back.

Inputs

Campaigncampaign_uuidtextRequired
The campaign.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "archived": true
  }
}

Update an email template

Change an email template's subject, preheader or content.

Inputs

Email templatetemplate_uuidtextRequired
The email template.
Subjectsubjecttext
The new subject line.
Preheaderpreheadertext
The new preview text.
HTML contentcontenttext
The new HTML.

Outputs

dataobject
The response from Blueshift.
Example output
{
  "data": {
    "status": "example",
    "uuid": "example"
  }
}

On this page