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

System → List active jobs

AI-generated

Summary

List active jobs from the NinjaOne system with optional filtering and pagination controls.

Inputs

  • returnAll — Boolean to decide whether to return all active jobs or just a single page. Defaults to false (single page).
  • additionalFields — Optional filters including Job Type, Device Filter (df), Language tag (lang), and Time Zone (tz) to refine the list of active jobs.
  • options — Optional parameters to customize the request, including sending a custom JSON body, adding custom HTTP headers, query filters, batching settings, debug flag, pagination controls (with options for offset, cursor, or URL-based pagination), and request timeout.

Output shape

a list of active job objects returned from the NinjaOne system's /v2/jobs endpoint, potentially paginated depending on the Return All and Pagination settings.

The operation supports pagination using offset, cursor, or next URL modes configurable via the Pagination input. When Return All is true, it fetches all pages according to these settings. Debug mode adds API request details in the output for troubleshooting. Additional filters and custom headers may modify the request accordingly.

Examples

Example 1: Fetch first page of active jobs filtered by a specific Job Type.

Set 'returnAll' to false, add a 'jobType' filter under Additional Fields with the desired job type value.

Example 2: Fetch all active jobs in batches respecting rate limits.

Set 'returnAll' to true, configure batching to set batch size and interval, and use Pagination to handle multiple pages automatically.

Links

Discussion