[API] Added the `flat_settings` and `local` parameters to the "Get Template" API