apis for getting and creating notes