api leads controller