api setup