cancel
Showing results for 
Search instead for 
Did you mean: 

API to create/update Segments

pcapazzi
Practitioner

Currently we have to manually create a segment to export users that meet a criteria. It would be great if we had an API endpoint to create/update segments to help manage and report on the data. 

7 REPLIES 7

DavidO
Strategist

Hi @pcapazzi 

Have you had a look at the Braze docs for APIs, there is quite a lot of good info in there? Here's a couple of links that are relevant for your use case:

API Segment Identifier
You will find the API identifiers search at the bottom of the Settings -- > APIs and Identifiers page

REST API Permissions --> then click on Segments

Let us know if this is what you are after. 😊

That is not what I'm after.

Currently we can only create a segment using the web UI. There is no API endpoint to create or update a segment. I'm suggesting developing an endpoint that can do this. 

Currently we can do the following using APIs:

  • List Existing Segments
  • Get Definitions of Existing Segments
  • Export User Data Identified in an Existing Segment

What we cannot do with segments via the API:

  • Create a segment
  • Update a segment (change the definition)

DavidO
Strategist

Gotcha. Great product suggestions indeed. 😊

bob
Specialist

Why do you need to export this segment of users? I wonder if we knew more about what you're achieving, there might be another solution.

This is perhaps something that could be implemented as a webhook campaign and Braze could push the data to a destination.

Can you use currents or the snowflake integration? That would let you dump all the data and query it externally.

Regardless of anything though, there is a clear gap in the API.

If Braze were to create such an endpoint, I feel that they'd want to implement it such a way that it maintained feature parity with the segments in the UI - which is presumably a more challenging thing to implement. I wonder though if it could be limited to those only defined by SQL, which would keep things simple from an implementation standpoint.