Add branch API