Skip to main content
GET
/
api
/
v1
/
rules
/
alerts
Get alerts for all flocks (optional flockId query parameter)
curl --request GET \
  --url http://localhost:3000/api/v1/rules/alerts \
  --header 'Authorization: Bearer <token>'
{}

Authorizations

Authorization
string
header
required

JWT obtained from POST /api/v1/auth/login.

Query Parameters

flockId
string

flockId query parameter.

fromDate
string

fromDate query parameter.

toDate
string

toDate query parameter.

status
string

status query parameter.

Response

OK

Resource data (object or array depending on endpoint).