The API is the best pick for that approach:
https://docs.zammad.org/en/latest/api/intro.html
Extending existing forms is not update save and thus shouldn’t be done to stay on an updatable installation.
If you want to add stuff you could go by addons, there’s no documentation for that.
This forum thread might help through: