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

Queries → Antivirus threats report

AI-generated

Summary

Retrieve antivirus threat reports with optional filtering and pagination from the NinjaOne API endpoint /v2/queries/antivirus-threats.

Inputs

  • returnAll — Boolean to decide whether to fetch all pages of results or just a single page.
  • additionalFields — Optional filters including device filter (df), monitoring timestamp (ts), cursor for pagination, and page size to limit records per page.
  • options — Various optional request customizations including custom request body JSON, custom HTTP headers, query string filters, batching settings, debug output toggle, pagination configuration, and request timeout in milliseconds.

Output shape

A list of antivirus threat report items as returned by the NinjaOne API, potentially paginated depending on input settings and API response.

Pagination can be controlled via multiple modes (offset, cursor, next URL) and related parameters. Debug mode, if enabled, appends the full request details to the output for troubleshooting. If 'Return All' is false, only a single page of results is returned without pagination parameters.

Links

Discussion