Get Support Ticket Stats
Statistics about the support tickets in the calling organisation’s help desk for a period: the same numbers the Support Dashboard in Support Tickets shows for the same dates.
It returns counts and averages only. It never returns a ticket, its messages, the customer who raised it or the staff member who worked on it.
Parameters
Days run from midnight to midnight UTC. A period can be up to two years long; longer returns 422.
Organisation and tribe keys
- An organisation key without
tribe_idreports on every ticket in the organisation’s help desk. - An organisation key with
tribe_idreports on that tribe’s tickets: those raised from it or assigned to it. The tribe must be one of the organisation’s own, or the request returns 422. - A tribe key always reports on its own tribe and gets the same numbers the organisation key gets for it. Naming a different
tribe_idreturns 403.
What is counted — support tickets and tasks in the help desk, without tickets merged into another one.
open, sla_breaches and open_by_status describe the help desk at the moment of the call, not the period. To track them over time, call on a schedule and keep each answer with its generated_at.
There is no updated_after: this is one set of counts for a period, not a list of records. Read a period again when you build its report.
API key permissions — a key limited to chosen endpoints needs Support › Support Tickets ticked, or it gets 403. Full Access keys, and keys made before endpoint permissions existed, already have it.
Not cached. Success is HTTP 201, not 200.
Full guide: Support ticket statistics on the API.
Headers
Query parameters
First day of the period, YYYY-MM-DD (UTC). Defaults to 30 days before end_date. Without end_date it cannot be later than today (422).
Last day of the period, YYYY-MM-DD (UTC), included in full. Defaults to today. Cannot be before start_date (422).
