Added initial template api for events