Host template automation

I would like to automate the host template creation process. I couldn’t find any solution yet.
The background is that we want to use host templates for each zone (it will reach about 100 zones) for Windows hosts using Self Service API. Based on the host IP this will be linked with the zone and the proper API key.
Is there any way to create multiple host templates? in sync automation there is no host template creation.