02-24-2024 06:08 AM
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.
02-25-2024 03:09 PM - edited 02-25-2024 03:09 PM
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. 😊
02-26-2024 09:31 AM
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:
What we cannot do with segments via the API:
02-27-2024 05:24 PM
Gotcha. Great product suggestions indeed. 😊
03-01-2024 01:20 AM
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.