building out api