In the dashboard, under Wireless > Access Point, when I choose a specific AP, I can see its status.
If the status is "alerting", there is a orange rectangle above the map with the reason for the alerting. Or red rectangle on case of error. See example in the attached image.
What is the API I can use to get this error message (reason)?