first api setup