I used the API once and the best way to get the solution to see examples is to create the segment that you desire in the interface, grab its ID (at the end of the URL when you edit the Calculated metric, will start by cm) and do the api call to see its definition.Swagger UI That should give you an i...