add message templates api

erawat is volunteering for the UT