The Rest API allows you to manage your segments programmatically.
Using this API you can get
segments, as well as update a segments keys in an environment.
Learn more about segments
To best familiarize yourself with using segments in your deployment and rollout strategy, refer to the Create a segment guide for more information.