Statistics API
You can use the statistics API to fetch information from our statistics system into your own environment.
All statistic calls are GET requests on the https://account.omnidesk.com/api/v2/statistics/showData endpoint. From here you define what facts, groups and filters you want to use. The easiest way to get data is to use the statistics widget creator and create a widget. After creating the widget you can go to the settings of the widget and click "data url". If you append your apiKey to this url you can use this data from server to server.
Sample data url: https://account.omnidesk.com/api/v2/statistics/showData?facts[]=ticketResponseTime&factOptionticketResponseTime=average&factOptionUnitTypeticketResponseTime=hours&groupBy[]=ticketID&filters[]=timeRelativeToday
Available facts
Available Group by's
Available filters
The available groupBy's and filters vary based on the facts that are selected. For a user status it may not make sense to filter by ticketID for instance. Information on valid combinations is available on: https://account.omnidesk.com/api/v2/statistics/options
Sample response
The statistics/showData response contains buckets (these are the groupBy's you specified in the request) and facts (which you specified in the request). The order of the facts corresponds with the buckets. Ticket id: 529523 for instance has the corresponding ticketResponsetime: 00:17:27 and ticketSLAPercentage: 90.
Last updated