Pb api setup