Already a NinjaOne customer? Log in to view more guides and the latest updates.

Filter NinjaOne Tickets with the Public API

Topic

This article shows you where to find the NinjaOne API endpoint that will allow you to filter NinjaOne tickets and lists the supported operator conditions. 

Environment

  • NinjaOne Ticketing
  • NinjaOne Public API

Description

Select a category to learn more: 

API Operator Conditions Supported by NinjaOne

  • present
  • not_present

  • equals
  • not_equals

  • greater_than

  • less_than

  • greater_or_equal_than

  • less_or_equal_than

  • contains

  • does_not_contains

  • contains_any

  • contains_none

  • changed

  • changed_to

  • between

  • is

  • in

  • not_in

Access the API Endpoint for Filtering Tickets

Refer to Ninja One Public API Reference for more information. 

Access the Public API through NinjaOne to find endpoints and parameters that return tickets matching the board condition and filters. Execute the provided endpoints in your preferred API development tool. 

  1. Access NinjaOne's API documentation. You can find it by clicking the Help resources icon in the top right corner of the NinjaOne console.

API.png 
Figure 1: Open NinjaOne's API documentation (click to enlarge)

  1. Find the Ticketing section within the API documentation and expand the "List of tickets for board" resource. 

API_list of tickets for boards.png
Figure 2: NinjaOne API → Ticketing: List of tickets for board (click to enlarge)

  1. Find the Request URL under the Responses section. Use the request URL to post the command in your API client. 

API_request URL.png
Figure 3: NinjaOne API → Ticketing: List of tickets for board → Request URL (click to enlarge)

Test the API

  1. To test the API endpoint, click Try it out

API_list of tickets for boards_try it out.png
Figure 4: NinjaOne API → Ticketing: List of tickets for board → Try it out

  1. Enter the number of the ticket board that you would like to filter in the Description field. You can find this number at the end of the Web address when you have the ticket board open.
If the Web address reflects https://app.ninjarmm.com/#/ticketing/board/1011, then the data you need to enter for the Description field is "1011."
  1. Delete the contents in the Request body field and click Execute.

API_list of tickets for boards_execute.png

The results display under Responses. 

Additional Resources

Refer to the following resource(s) to learn more about NinjaOne Ticketing and our Public API:

FAQ

Next Steps