Skip to navigation

Get Support Ticket Stats

View as Markdown

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

ParameterNotes
start_dateFirst day of the period, YYYY-MM-DD. Defaults to 30 days before end_date. Without an end_date it cannot be later than today.
end_dateLast day of the period, YYYY-MM-DD, included in full. Defaults to today. Cannot be before start_date.
tribe_idReport on one tribe. Organisation keys only.

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_id reports on every ticket in the organisation’s help desk.
  • An organisation key with tribe_id reports 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_id returns 403.

What is counted — support tickets and tasks in the help desk, without tickets merged into another one.

FieldNotes
periodstart_date, end_date and timezone (always UTC).
tribe_idThe tribe reported on, or null for the whole help desk.
generated_atWhen the numbers were worked out, UTC.
createdTickets raised in the period.
resolvedTickets that became Resolved or Closed in the period, whenever they were raised.
resolved_by_statusThe same split into Resolved and Closed; both always listed.
average_first_response_hoursTickets raised in the period that have had a reply: average hours to the first reply, one decimal. null when none.
average_resolution_hoursTickets resolved in the period: average hours from raised to resolved, one decimal. null when none.
openTickets not Resolved or Closed right now.
sla_breachesOpen tickets past their response deadline right now (SLA setting and support hours, as the SLA badge on the ticket list).
open_by_statusOpen tickets by status, most first.
created_by_categoryTickets raised in the period by category, most first; no category is one entry with category: null.
created_by_tribeTickets raised in the period by tribe (tribe_id, tribe_name), most first. Tickets not linked to one of your tribes are one entry with a null tribe. With tribe_id, everything is listed under that tribe.
created_by_dayTickets raised on each day of the period, every day listed.

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

GorillaDash-Api-KeystringOptional
Gorilla Dash API Key
GorillaDash-Api-SecretstringOptional
Gorilla Dash API Secret

Query parameters

start_datestringOptional

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).

end_datestringOptional

Last day of the period, YYYY-MM-DD (UTC), included in full. Defaults to today. Cannot be before start_date (422).

Response

Created
statusinteger
successboolean
dataobject

Errors

403
Forbidden Error
422
Unprocessable Entity Error