setup api