NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

Devices → Device alerts (triggered conditions)

AI-generated

Summary

Retrieve alerts triggered on a specified device by its ID, optionally returning all available results with pagination and allowing additional filtering.

Inputs

  • id (required) — The unique identifier of the device to fetch alerts for.
  • returnAll — Whether to return all pages of results or just a single page.
  • additionalFields — Optional parameters such as language (lang) and time zone (tz) to customize the response.
  • options — Collection of advanced options including custom request body, headers, query filters, batching, pagination settings, debug flag, and request timeout.

Output shape

a list of device alert objects, potentially paginated according to configuration

Supports pagination modes (offset, cursor, or next URL), batching of multiple requests, and includes debug output details if enabled. The alerts pertain to the device specified by the ID input.

Examples

Example 1: Fetch the first page of alerts for device with ID 1234

Set 'id' to 1234, 'returnAll' to false (default), and configure pagination as needed.

Example 2: Retrieve all triggered alerts for device 5678 with timezone set to UTC

Set 'id' to 5678, 'returnAll' to true, add 'tz' = 'UTC' in Additional Fields, and optionally enable debug for troubleshooting.

Links

Discussion