Create json api for notifications