messages, templates API added.