have you checked the newest Alerting API?
See this thread for using Grafana’s newest stable Alerting API: