Finished 352 securing api

#355