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: