basin api tutorial