Skip to main content
Contributor I
May 27, 2022
Solved

Create segment via API

  • May 27, 2022
  • 15 replies
  • 1320 views

Does anyone know of a way to create a segment via API? Im trying to automate creating a segment to contain all profiles in the account. There is an endpoint to create a list through the API, but I cant find an endpoint to create a segment.

The reason I ask here is because I have noticed that there there are API endpoints that exist but are not included in the documentation. Possibly because they have been deprecated.

If anyone has any input here it would be much appreciated! Thanks!

This topic has been closed for replies.
Best answer by Kim Strauch

Hey @aemery @jimk @DanErezSD @eaglepeakoutdoors, good news! We released an API for creating and updating segments. I’d recommend checking out our Segments API overview to get started. 


Excited to hear more about what you build with it!

15 replies

Contributor I
March 16, 2024

the issue with a a list that you automatically update is that once you hit 10K plus users it just takes for ever to do any sort of ops. 

I don’t see why a json or some SQL like statment can’t define the same or.and conditions as what the website allows. 
i’ts actually very programatically friendly and fully defined as is. 

Brian Turcotte
Klaviyo Alum
March 18, 2024

Hi @DanErezSD!

I will definitely forward this sentiment to our product team for consideration in future releases!

Best,

Brian

April 11, 2024

Joining my voice to this request if it can help move it forward. We would also have a use case for a create segment API endpoint. Lists will work for now, but it means that we need a dev from the team to build a feature to dynamically add and remove profiles from the list where as segments would allow our marketing team to be self-sufficient in the work. And since the number of segment is too large to me manageable manually, we would really need an API to automate their creation.

 

Cheers,

Alex

jimk
Active Contributor II
Active Contributor II
April 11, 2024

Agree Alex.  What you describe is what we’re doing now with lists.  A create segment API is going to be a much better solution.  Can’t wait to roll up our sleeves and dive into this.

Cheers…..Jim

 
 
 
Segmentninja.io - High-margin, high-CLV retention and acquisition only, using proven Fortune 500 segmentation and predictive AI models.
Kim Strauch
Klaviyo Employee
Klaviyo Employee
July 1, 2024

Hey @aemery @jimk @DanErezSD @eaglepeakoutdoors, good news! We released an API for creating and updating segments. I’d recommend checking out our Segments API overview to get started. 


Excited to hear more about what you build with it!