Added a get_templates API call