Add import/export functionality to the API