added api endpoint to get template data