api for adding notes