Branching in api