Thats why we dont really recommend doing that :D
Right now we recommend that the docker packaged scans are best for most people when automating ZAP.
However we are working on a new Automation Framework which will be the recommended option when it matures.
There is also a new reporting add-on which allows you to choose which sites to include in reports, but that doesnt support the API yet - thats coming soon.
Note that we will not be deprecating the API at all, we will keep maintaining and extending it, but for most people the other options are more suitable.