Overview
The Segments API enables you to personalize experiences in your web and mobile applications. It is a lightning fast way to get customer information from a performant API sitting right on your cloud data stack. You can see customer information to use in personalization, and the audiences a user is currently qualified for.
For instance, let's say you define a churned, high spender audience called "Churned High Value". When a user visits your app, you can check if they are in this audience to decide whether to provide them with an incentive to make a purchase to win them back.
Access:
Access is controlled in Flywheel’s SaaS environment using an API key, please have your designated admin reach out to your assigned solutions architect to receive your API key. When making requests to the segments API, you’ll need to pass an Authorization header with a value of Bearer base64_encoded_api_key.
Audience List Endpoint
To list all available segments in your organization, you can use the endpoint listed above. This will return the Audience Name and Audience ID of all audiences currently exported to the segments API.
Sample Call:
Sample Response:
Audience Profile Endpoint
To list all audiences a user is a part of, you can query the base endpoint listed above and include an identifier parameter. The identifier parameter is tied to the unique identifier mapping chosen when connecting your Users Datasets to Flywheel.
In addition to the audiences a user is a member of, this endpoint also returns customer profile information in an instant from any Users Dataset or Users Model configured in Flywheel from your data warehouse. You can query the base endpoint listed above and include an identifier parameter. The identifier parameter is tied to the unique identifier mapping chosen when connecting your Users Dataset to Flywheel. This is great for serving personalization, recommendations, or creatives that have been stored for a customer in your data warehouse.
Sample Call:
Sample Response:
Our customers are leveraging the Segments API to bring the power of their Cloud Data Stack to drive personalized experiences in mobile applications and their CMS. If you are interested in learning more reach out to solutions@flywheelsoftware.com.