List alerts
listAlertsRetrieve a paginated list of alerts with optional filters for status, device, and cursor-based pagination. Get only the alerts you need by specifying status or device_id.
Instructions
List alerts. Returns a list of your alerts. Level API endpoint: GET /v2/alerts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. | |
| status | No | Filter to only include alerts with the given status. | |
| device_id | No | Filter to only include alerts for the specified device_id. | |
| ending_before | No | A cursor for use in pagination. ending_before is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with ID '1234', your subsequent call can include 'ending_before=1234' in order to fetch the previous page of the list. | |
| starting_after | No | A cursor for use in pagination. starting_after is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with ID '1234', your subsequent call can include 'starting_after=1234' in order to fetch the next page of the list. |