API Alerts returning unexcpected results

We are trying to utilize the API to get alert data. The documentation indicates the route -https://librenms.org/api/v0/alerts/1 should return:

{
 "status": "ok",
 "message": "",
 "count": 7,
 "alerts": [
  {
   "hostname": "localhost",
   "id": "1",
   "device_id": "1",
   "rule_id": "1",
   "state": "1",
   "alerted": "1",
   "open": "1",
   "timestamp": "2014-12-11 14:40:02"
  }]
}


The data we are getting is:
{
  "status": "ok",
  "alerts": [],
  "count": 0
}

Not sure what we are doing wrong.

Version 	21.7.0 - Fri Jul 16 2021 15:28:22 GMT-0700
Database Schema 	2021_06_07_123600_create_sessions_table (211)
Web Server 	Apache/2.4.29 (Ubuntu)
PHP 	7.3.9-1+ubuntu18.04.1+deb.sury.org+1
Python 	3.6.9
MySQL 	10.3.31-MariaDB-1:10.3.31+maria~bionic

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.