Skip to main content

Tutorial: Creating a Customer and Adding Them to a Segment Simultaneously


Customer.io

 

Introduction

 

This tutorial aims to address the common query about creating a customer profile and adding them to a segment in a single request on Customer.io.

 

Problem

Due to system limitations, you may experience a delay when creating a new customer and adding them to a segment. This is due to needing to use two different API endpoints to achieve the end goal, which may cause a delay of around 2 seconds between the customer creation API call, and the second API call to add the profile to a segment.

Identify API endpoint
Add to segment API endpoint

 

Solution

Currently, it is not possible to accomplish this task outside of using API calls. However, a viable workaround is to implement a custom programming function on your backend. This function would be triggered to automatically make the two necessary API calls with a suitable buffer period in between.

API call to identify customer profile
API call to add profile to segment

 

Resources

Find more information about API endpoints and how to utilize them effectively below:

  1. Identify API endpoint
  2. Add to segment API endpoint
  3. API call to identify customer profile
  4. API call to add profile to segment
Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings