Insider One

App · 22 actions

Create and update users, record events and purchases, manage static segments, opt-outs and data deletion requests in Insider One's customer database, and read email campaign analytics.

Actions

ActionWhat it does
Add user to static segmentsAdd a user to one or more static segments by their IDs.
Check segment membershipFind out whether a user is in each of up to 100 segments, static or dynamic.
Create or update userAdd a user to Insider One, or update the one with this identifier.
Delete identifierRemove an email address, phone number, user ID or custom identifier from a user.
Delete user attributesRemove attributes from a user's profile, such as for a right-to-erasure request.
Delete user profileDelete a user's whole profile: attributes, events and identifiers.
Delete user's personal dataRemove a user's personal data, such as their name, email address and phone number, keeping the profile as an anonymous one.
Get email campaign analyticsGet an email campaign's sends, opens, clicks, conversions, revenue and unsubscribes, in total and for each variant.
Get overall email analyticsGet the totals across every email campaign in a period: sends, opens, clicks, conversions, revenue, top links, email clients and devices.
Get user eventsRead a user's events of the kinds you name in a period, such as their purchases or email clicks.
Get user profileRead a user's attributes, such as their name, opt-ins and custom attributes.
List email campaignsList the email campaigns that have been sent or are sending, newest first.
Record eventRecord an event on a user's profile, such as account_created or a custom event, to use in segments and journeys.
Record purchaseRecord a purchased product on a user's profile, such as an offline or in-store sale.
Remove user from static segmentsTake a user out of one or more static segments by their IDs.
Resubscribe email addressesLet marketing email reach these addresses again, everywhere or for one unsubscribe group.
Resubscribe phone numbers to SMSLet marketing SMS reach these phone numbers again.
Resubscribe phone numbers to WhatsAppLet marketing WhatsApp messages reach these phone numbers again.
Unsubscribe email addressesStop marketing email to these addresses, everywhere or for one unsubscribe group.
Unsubscribe phone numbers from SMSStop marketing SMS to these phone numbers.
Unsubscribe phone numbers from WhatsAppStop marketing WhatsApp messages to these phone numbers.
Update identifierChange a user's email address, phone number, user ID or custom identifier, keeping their history.

Add user to static segments

Add a user to one or more static segments by their IDs.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.
Segment IDssegment_idslistRequired
Segment IDs, from each segment's page in Insider One.
Don't start journeysskip_hooktrue/false
Turn on to keep this data from starting Architect journeys or data streams, such as when importing past activity.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "fail": {
      "count": 1,
      "errors": {}
    },
    "successful": {
      "count": 1
    }
  }
}

Check segment membership

Find out whether a user is in each of up to 100 segments, static or dynamic.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.
Segment IDssegment_idslistRequired
Segment IDs, from each segment's page in Insider One.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "identifiers": {},
    "insider_id": "example",
    "member_of": [
      1
    ],
    "not_member_of": [
      1
    ],
    "segment_ids": {}
  }
}

Create or update user

Add a user to Insider One, or update the one with this identifier. Only the fields filled in change.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.
First namenametext
The user's first name.
Last namesurnametext
The user's last name.
Emailemailtext
The user's email address, saved on the profile. Leave empty when the user is found by email.
Phone numberphone_numbertext
The user's phone number with + and the country code, such as +14155550123.
Gendergendertext
The user's gender.
Birthdaybirthdaydate
The user's birthday.
Ageagenumber
The user's age.At least 0.
Languagelanguagetext
The user's language, such as en_US.
Countrycountrytext
The user's country.One of: AD (Andorra), AE (United Arab Emirates), AF (Afghanistan), AG (Antigua & Barbuda), AI (Anguilla), AL (Albania), AM (Armenia), AO (Angola), AQ (Antarctica), AR (Argentina), and 240 more.
Citycitytext
The user's city.
Email opt-inemail_optintext
Whether the user allows marketing email.One of: true (Yes), false (No).
SMS opt-insms_optintext
Whether the user allows marketing SMS.One of: true (Yes), false (No).
WhatsApp opt-inwhatsapp_optintext
Whether the user allows marketing WhatsApp messages.One of: true (Yes), false (No).
Data processing consentgdpr_optintext
Whether Insider One may process the user's data and reach them at all. No stops every campaign and message to them.One of: true (Yes), false (No).
Custom attributescustom_attributesobject
Custom attributes to set, by their name in Insider One, such as loyalty_tier. A new name creates the attribute.
Don't start journeysskip_hooktrue/false
Turn on to keep this data from starting Architect journeys or data streams, such as when importing past activity.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "fail": {
      "count": 1,
      "errors": {}
    },
    "successful": {
      "count": 1
    }
  }
}

Delete identifier

Remove an email address, phone number, user ID or custom identifier from a user. A user's only identifier can't be removed.

Inputs

Identifieridentifier_typetext
Which identifier to change. Leave empty for email address.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), custom (Custom identifier). Default: email.
ValuevaluetextRequired
The identifier's value.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "deleted": true,
    "identifiers": {}
  }
}

Delete user attributes

Remove attributes from a user's profile, such as for a right-to-erasure request. This can't be undone.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.
Attributesattributeslist
Default attributes to remove.One or more of: name (First name), surname (Last name), gender, age, birthday, language, country, city, email_optin (Email opt-in), sms_optin (SMS opt-in), whatsapp_optin (WhatsApp opt-in), gdpr_optin (Data processing consent (GDPR opt-in)).
Custom attributescustom_attributeslist
Custom attributes to remove, by their name in Insider One.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "fail": {
      "count": 1,
      "errors": {}
    },
    "successful": {
      "count": 1
    }
  }
}

Delete user profile

Delete a user's whole profile: attributes, events and identifiers. This can't be undone.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "found": true,
    "queued": true
  }
}

Delete user's personal data

Remove a user's personal data, such as their name, email address and phone number, keeping the profile as an anonymous one. This can't be undone.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "anonymized": true
  }
}

Get email campaign analytics

Get an email campaign's sends, opens, clicks, conversions, revenue and unsubscribes, in total and for each variant.

Inputs

Campaigncampaign_idnumberRequired
The email campaign.At least 1.
Fromstartdate and timeRequired
Count activity from this time, such as when the campaign was launched.
Toenddate and time
The end of the period. Leave empty for now.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "data": {
      "details": {},
      "summary": {
        "blocks": 1,
        "bounce": 1,
        "bounceDrop": 1,
        "bounceRate": 1,
        "clickThroughRate": 1,
        "clickToOpenRate": 1,
        "conversionRate": 1,
        "conversions": 1,
        "delivered": 1,
        "deliveryRate": 1,
        "frequencyDrop": 1,
        "invalidDrop": 1,
        "linkClickActivity": [
          {
            "link": "example",
            "totalClick": 1,
            "uniqueClick": 1
          }
        ],
        "openRate": 1,
        "revenue": 1,
        "sendingDrops": 1,
        "sent": 1,
        "spamDrop": 1,
        "spamReports": 1,
        "systemDrops": 1,
        "totalClicks": 1,
        "totalOpens": 1,
        "uniqueClicks": 1,
        "uniqueMachineOpenRate": 1,
        "uniqueMachineOpens": 1,
        "uniqueOpens": 1,
        "uniqueUserOpenRate": 1,
        "uniqueUserOpens": 1,
        "unsubscribe": 1,
        "unsubscribeDrop": 1
      }
    }
  }
}

Get overall email analytics

Get the totals across every email campaign in a period: sends, opens, clicks, conversions, revenue, top links, email clients and devices.

Inputs

Fromstartdate and timeRequired
The start of the period.
Toenddate and time
The end of the period. Leave empty for now.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "data": {
      "linkActivities": [
        {
          "link": "example",
          "totalClick": 1,
          "uniqueClick": 1
        }
      ],
      "summary": {
        "blocks": 1,
        "bounce": 1,
        "bounceDrop": 1,
        "bounceRate": 1,
        "clickThroughRate": 1,
        "clickToOpenRate": 1,
        "conversionRate": 1,
        "conversions": 1,
        "delivered": 1,
        "deliveryRate": 1,
        "frequencyDrop": 1,
        "invalidDrop": 1,
        "openRate": 1,
        "revenue": 1,
        "sendingDrops": 1,
        "sent": 1,
        "spamDrop": 1,
        "spamReports": 1,
        "systemDrops": 1,
        "totalClicks": 1,
        "totalOpens": 1,
        "uniqueClicks": 1,
        "uniqueMachineOpenRate": 1,
        "uniqueMachineOpens": 1,
        "uniqueOpens": 1,
        "uniqueUserOpenRate": 1,
        "uniqueUserOpens": 1,
        "unsubscribe": 1,
        "unsubscribeDrop": 1
      },
      "topEmailClients": {},
      "topEmailDevices": {}
    }
  }
}

Get user events

Read a user's events of the kinds you name in a period, such as their purchases or email clicks.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.
Eventsevent_nameslistRequired
The events to read, such as purchase, email_click or a custom event's name.
Parametersparamslist
Event parameters to return with each event, such as product_id or campaign_id. The time of each event always comes back.
Fromstartdate and timeRequired
The start of the period.
Toenddate and time
The end of the period. Leave empty for now.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "events": {},
    "quota": {
      "cost": 1,
      "total": 1,
      "used": 1
    }
  }
}

Get user profile

Read a user's attributes, such as their name, opt-ins and custom attributes.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.
Attributesattributeslist
The attributes to read. Leave empty for the user's identifiers, name, opt-ins and profile dates.One or more of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), iid (Profile ID), name (First name), surname (Last name), gender, age, birthday, language, and 12 more.
Custom attributescustom_attributeslist
Custom attributes to read, by their name in Insider One, such as loyalty_tier.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "attributes": {},
    "events": {},
    "quota": {
      "cost": 1,
      "total": 1,
      "used": 1
    }
  }
}

List email campaigns

List the email campaigns that have been sent or are sending, newest first. Journey emails aren't included.

Inputs

Pagepagenumber
The page to read. Leave empty for the first.At least 1.
Campaigns per pageper_pagenumber
Campaigns per page, up to 100. Leave empty for 100.From 1 to 100.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "currentPage": 1,
    "data": [
      {
        "id": 1,
        "name": "example",
        "senderDomain": "example",
        "startTime": "example",
        "subject": "example",
        "tags": "example",
        "type": "example",
        "utmParameters": {}
      }
    ],
    "lastPage": 1,
    "perPage": 1,
    "total": 1
  }
}

Record event

Record an event on a user's profile, such as account_created or a custom event, to use in segments and journeys.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.
Event nameevent_nametextRequired
The event's name in lowercase with underscores, such as account_created. A new name creates a custom event.
Happened attimestampdate and time
When the event happened. Leave empty for now.
Product IDproduct_idtext
The product's ID, for a product event.
Product namenametext
The product's name, for a product event.
Categoriestaxonomylist
The product's category path, from the top, such as Electronics then Phones.
Product URLurltext
The product's page.
Currencycurrencytext
The currency the price is in.One of: AED (UAE dirham (AED)), AFN (Afghan afghani (AFN)), ALL (Albanian lek (ALL)), AMD (Armenian dram (AMD)), AOA (Angolan kwanza (AOA)), ARS (Argentine peso (ARS)), AUD (Australian dollar (AUD)), AWG (Aruban florin (AWG)), AZN (Azerbaijani manat (AZN)), BAM (Bosnia and Herzegovina convertible mark (BAM)), and 143 more.
Quantityquantitynumber
How many of the product.At least 0.
Unit priceunit_pricenumber
The product's price before discounts.
Unit sale priceunit_sale_pricenumber
The product's price after discounts.
Event group IDevent_group_idtext
Groups events of the same kind, such as the lines of one order.
Custom parameterscustom_paramsobject
Custom event parameters, by name, such as customer_type.
Don't start journeysskip_hooktrue/false
Turn on to keep this data from starting Architect journeys or data streams, such as when importing past activity.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "fail": {
      "count": 1,
      "errors": {}
    },
    "successful": {
      "count": 1
    }
  }
}

Record purchase

Record a purchased product on a user's profile, such as an offline or in-store sale. Send one step per product in the order.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.
Order IDorder_idtextRequired
The order's ID. Use the same one for every product in the order.
Product IDproduct_idtextRequired
The product's ID.
Product nameproduct_nametextRequired
The product's name.
Unit priceunit_pricenumberRequired
The product's price before discounts.At least 0.
Unit sale priceunit_sale_pricenumberRequired
The product's price after discounts, what the user paid for one.At least 0.
QuantityquantitynumberRequired
How many the user bought.At least 1.
CurrencycurrencytextRequired
The currency the prices are in.One of: AED (UAE dirham (AED)), AFN (Afghan afghani (AFN)), ALL (Albanian lek (ALL)), AMD (Armenian dram (AMD)), AOA (Angolan kwanza (AOA)), ARS (Argentine peso (ARS)), AUD (Australian dollar (AUD)), AWG (Aruban florin (AWG)), AZN (Azerbaijani manat (AZN)), BAM (Bosnia and Herzegovina convertible mark (BAM)), and 143 more.
Purchased atpurchased_atdate and time
When the purchase happened. Leave empty for now.
Categoriestaxonomylist
The product's category path, from the top, such as Electronics then Phones.
Product URLurltext
The product's page.
Don't start journeysskip_hooktrue/false
Turn on to keep this data from starting Architect journeys or data streams, such as when importing past activity.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "fail": {
      "count": 1,
      "errors": {}
    },
    "successful": {
      "count": 1
    }
  }
}

Remove user from static segments

Take a user out of one or more static segments by their IDs.

Inputs

Find user byidentify_bytext
How the user is found. Leave empty for email address. A custom identifier must be turned on in Insider One's Identity Resolution Management settings.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), insider_id (Insider profile ID), custom (Custom identifier). Default: email.
UseridentifiertextRequired
The user's email address, phone number with country code (such as +14155550123), user ID, Insider profile ID or custom identifier value, matching Find user by.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.
Segment IDssegment_idslistRequired
Segment IDs, from each segment's page in Insider One.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "fail": {
      "count": 1,
      "errors": {}
    },
    "successful": {
      "count": 1
    }
  }
}

Resubscribe email addresses

Let marketing email reach these addresses again, everywhere or for one unsubscribe group.

Inputs

Email addressesemailslistRequired
Email addresses, up to 500.
Unsubscribe group IDgroup_idnumber
Resubscribe only to this unsubscribe group, by its ID. Leave empty to resubscribe to all marketing email.At least 1.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "statusMessage": "example"
  }
}

Resubscribe phone numbers to SMS

Let marketing SMS reach these phone numbers again.

Inputs

Phone numbersphone_numberslistRequired
Phone numbers with + and the country code, such as +14155550123, up to 500.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "statusMessage": "example"
  }
}

Resubscribe phone numbers to WhatsApp

Let marketing WhatsApp messages reach these phone numbers again.

Inputs

Phone numbersphone_numberslistRequired
Phone numbers with + and the country code, such as +14155550123, up to 500.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "statusMessage": "example"
  }
}

Unsubscribe email addresses

Stop marketing email to these addresses, everywhere or for one unsubscribe group.

Inputs

Email addressesemailslistRequired
Email addresses, up to 500.
Unsubscribe groupgroup_nametext
Unsubscribe only from this group. A name that doesn't exist yet creates the group. Leave empty to unsubscribe from all marketing email.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "statusMessage": "example"
  }
}

Unsubscribe phone numbers from SMS

Stop marketing SMS to these phone numbers.

Inputs

Phone numbersphone_numberslistRequired
Phone numbers with + and the country code, such as +14155550123, up to 500.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "statusMessage": "example"
  }
}

Unsubscribe phone numbers from WhatsApp

Stop marketing WhatsApp messages to these phone numbers.

Inputs

Phone numbersphone_numberslistRequired
Phone numbers with + and the country code, such as +14155550123, up to 500.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "statusMessage": "example"
  }
}

Update identifier

Change a user's email address, phone number, user ID or custom identifier, keeping their history.

Inputs

Identifieridentifier_typetext
Which identifier to change. Leave empty for email address.One of: email (Email address), phone_number (Phone number), uuid (User ID (UUID)), custom (Custom identifier). Default: email.
Current valuecurrent_valuetextRequired
The value the user has now.
New valuenew_valuetextRequired
The value to change it to. No other user may have it.
Custom identifier namecustom_identifiertext
The custom identifier's name, such as user_loyalty_id. Only used when Find user by is Custom identifier.

Outputs

dataobject
The response from Insider One.
Example output
{
  "data": {
    "new_identifier": {},
    "old_identifier": {}
  }
}

On this page