REST Call to get executed sequence flows

Hello there,

I would like to call the REST API to get executed sequence flows for a processInstanceId. Similiar to /history/activity-instance etc.
Otherwise I would have to get all executed acitivity IDs and then manually read the BPMN XML to get the matching sequence flows.
My goal is to mark all sequence flows betwenn two executed activities using bpmn js.

For performance reasons the engine does not store the history of sequence flows.
When Camunda creates heatmaps for Optimize i think it does some calculation based on the activity ID and the BPMN XML to generate the heatmap.