Merged export and import endpoints into one