Blueshift
App · 28 actions
Update customer profiles, send events, manage customer lists and catalogs, and trigger campaigns in Blueshift.
Actions
| Action | What it does |
|---|---|
| Add a customer to a list | Add a customer to a customer list. |
| Add items to a catalog | Add products to a catalog, or update the ones with the same product ID. |
| Archive a campaign | Archive a campaign. |
| Create a catalog | Create an empty product catalog to add items to. |
| Create a customer list | Create an empty customer list to add customers to. |
| Create an email template | Create an HTML email template. |
| Create or update a customer | Create a customer, or update the one with the same email address or customer ID. |
| Delete a customer | Permanently delete a customer's personal data. |
| Get a catalog | Get one product catalog. |
| Get a customer | Get a customer's profile by their Blueshift UUID. |
| Get a customer list | Get a customer list (a custom user list) and how many customers it holds. |
| Get an email template | Get an email template's subject and content, and the campaigns that use it. |
| Get customer events | List the events Blueshift has for a customer. |
| Get event history | List the latest events of one name that Blueshift received, newest first. |
| Get segment counts | Get how many customers a segment holds, in total and by channel. |
| Launch a campaign | Launch a campaign now. |
| List campaigns | List campaigns by name, status, type or date. |
| List catalogs | List the product catalogs in the account. |
| List email templates | List email templates, optionally by name. |
| List segments | List segments, optionally by name. |
| List subscription groups | List the subscription groups customers can opt in to or out of. |
| Pause a campaign | Pause a running or scheduled campaign. |
| Remove a customer from a list | Take a customer out of a customer list. |
| Search customers | Find customers by email address. |
| Send an event | Record an event for a customer, such as a purchase or a sign-up. |
| Trigger a campaign | Send an event-triggered or API-triggered campaign to one customer. |
| Unarchive a campaign | Bring an archived campaign back. |
| Update an email template | Change an email template's subject, preheader or content. |
Add a customer to a list
Add a customer to a customer list.
Inputs
- List ID
list_idnumberRequired - The number of the customer list, from its page in Blueshift.
- Find customer by
identifier_keytextRequired - Whether the customer is given by email address or customer ID.One of:
email,customer_id(Customer id). - Email or customer ID
identifier_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
- Catalog
catalog_uuidtextRequired - The catalog.
- Products
productslistRequired - 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
- Campaign
campaign_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
- Name
nametextRequired - 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
- Name
nametextRequired - The list's name.
- Description
descriptiontextRequired - What the list holds.
- Seed list
is_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
- Name
nametextRequired - The template's name.
- Subject
subjecttextRequired - The email's subject line.
- HTML content
contenttextRequired - The email's HTML.
- Preheader
preheadertext - The preview text shown after the subject.
- Author email
authortext - The email address of the template's author.
- Tags
tag_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
- Email
emailtext - The customer's email address.
- Customer ID
customer_idtext - The customer ID your systems use.
- Phone number
phone_numbertext - The phone number, with its country code.
- First name
firstnametext - The first name.
- Last name
lastnametext - The last name.
- Gender
gendertext - The gender, as your account records it.
- Unsubscribed from email
unsubscribedtrue/false - Whether the customer is unsubscribed from email.
- Other attributes
attributesobject - 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
- Email
emailtext - The customer's email address.
- Customer ID
customer_idtext - The customer ID your systems use.
- Delete all matching profiles
delete_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
- Catalog
catalog_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 UUID
customer_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 ID
list_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 template
template_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 UUID
customer_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 name
event_nametextRequired - The event's name, such as purchase.
- Limit
limitnumber - 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
- Segment
segment_uuidtextRequired - The segment.
- Refresh counts
refreshtrue/false - Start working the counts out again. They update in the background.
- Channel
channelstext - 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
- Campaign
campaign_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 contains
nametext - Only campaigns whose name contains this text.
- Status
statustext - Only campaigns with this status.One of:
draft,launched,paused,completed. - Type
exec_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. - Archived
archivedtrue/false - List archived campaigns.
- Author email
author_emailtext - Only campaigns made by the person with this email address.
- Created after
created_afterdate and time - Only campaigns created after this time.
- Created before
created_beforedate and time - Only campaigns created before this time.
- Started after
startdatedate and time - Only campaigns that started after this time.
- Page
pagenumber - The page of results, starting at 1.At least 1.
- Per page
per_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 contains
nametext - Only templates whose name contains this text.
- Archived
archivedtrue/false - List archived templates instead of current ones.
- Editor
editor_typetext - Only templates made in this editor.One of:
html,visual. - Page
pagenumber - The page of results, starting at 1.At least 1.
- Per page
per_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 contains
nametext - Only segments whose name contains this text.
- Archived
archivedtrue/false - List archived segments instead of current ones.
- Page
pagenumber - The page of results, starting at 1.At least 1.
- Per page
per_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
- Campaign
campaign_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 ID
list_idnumberRequired - The number of the customer list, from its page in Blueshift.
- Find customer by
identifier_keytextRequired - Whether the customer is given by email address or customer ID.One of:
email,customer_id(Customer id). - Email or customer ID
identifier_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
- Email
emailtextRequired - 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 name
eventtextRequired - The event's name, such as identify, add_to_cart or purchase.
- Email
emailtext - The customer's email address.
- Customer ID
customer_idtext - The customer ID your systems use.
- Event ID
event_uuidtext - A unique ID for the event, so it is only recorded once.
- Event attributes
attributesobject - 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
- Campaign
campaign_uuidtextRequired - The event-triggered or API-triggered campaign.
- Email
emailtextRequired - The email address of the customer to send it to.
- Transaction ID
transaction_uuidtext - A unique ID (a UUID) for this send, so a repeat isn't sent twice.
- High priority
high_prioritytrue/false - Process this send ahead of others.
- Attachment links
email_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
- Campaign
campaign_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 template
template_uuidtextRequired - The email template.
- Subject
subjecttext - The new subject line.
- Preheader
preheadertext - The new preview text.
- HTML content
contenttext - The new HTML.
Outputs
dataobject- The response from Blueshift.
Example output
{
"data": {
"status": "example",
"uuid": "example"
}
}