Type 'unknown' when trying to use API - BuildShip