[minor] Added a labels API