I know I can get the fired alerts from the API on the endpoint:
alerts/ also returns the fired alerts. I'd like to know if its possible to get returned a list of all saved alerts. I can't see this in the documentation. But it would be very handy for me to auto generate some monitoring.
As you may see from the answers suggested so far, alerts are in fact saved searches which have an alert enabled. So instead of looking for alerts in the REST docs, look at saved search endpoints and that's where your answer will lie.
Hello! Try a search like this:
index=_internal sourcetype=scheduler thread_id=AlertNotifier* NOT (alert_actions="summary_index" OR alert_actions="")|table run_time alert_actions app status
Youa can add more fields as you need in your table