adding the send-template api call