> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.gorilladash.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.gorilladash.com/_mcp/server.

# Get Support Ticket Stats

GET https://api.gorilladash.com/api/v1/support-tickets/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**

| Parameter | Notes |
| --- | --- |
| `start_date` | First 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_date` | Last day of the period, `YYYY-MM-DD`, included in full. Defaults to today. Cannot be before `start_date`. |
| `tribe_id` | Report 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.

| Field | Notes |
| --- | --- |
| `period` | `start_date`, `end_date` and `timezone` (always `UTC`). |
| `tribe_id` | The tribe reported on, or `null` for the whole help desk. |
| `generated_at` | When the numbers were worked out, UTC. |
| `created` | Tickets raised in the period. |
| `resolved` | Tickets that became Resolved or Closed in the period, whenever they were raised. |
| `resolved_by_status` | The same split into `Resolved` and `Closed`; both always listed. |
| `average_first_response_hours` | Tickets raised in the period that have had a reply: average hours to the first reply, one decimal. `null` when none. |
| `average_resolution_hours` | Tickets resolved in the period: average hours from raised to resolved, one decimal. `null` when none. |
| `open` | Tickets not Resolved or Closed **right now**. |
| `sla_breaches` | Open tickets past their response deadline **right now** (SLA setting and support hours, as the SLA badge on the ticket list). |
| `open_by_status` | Open tickets by status, most first. |
| `created_by_category` | Tickets raised in the period by category, most first; no category is one entry with `category: null`. |
| `created_by_tribe` | Tickets 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_day` | Tickets 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](https://gorilladash.com/support/guides/api-support-ticket-stats).

Reference: https://docs.gorilladash.com/gorilla-dash-rest-ful-api/support-tickets/get-support-ticket-stats

## Request

### Query parameters

- `start_date` (string, optional) — 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_date` (string, optional) — Last day of the period, YYYY-MM-DD (UTC), included in full. Defaults to today. Cannot be before start_date (422).

### Headers

- `GorillaDash-Api-Key` (string, optional) — Gorilla Dash API Key
- `GorillaDash-Api-Secret` (string, optional) — Gorilla Dash API Secret

## Response

### 201

Created

- `status` (integer, required)
- `success` (boolean, required)
- `data` (ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaData, required)

## Errors

### 403 Forbidden Error

Forbidden

- `message` (string, required)

### 422 Unprocessable Entity Error

Unprocessable Content

- `message` (string, required)
- `errors` (ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaErrors, required)

## Types

### ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaData

- `period` (ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataPeriod, required)
- `generated_at` (datetime, required)
- `created` (integer, required)
- `resolved` (integer, required)
- `resolved_by_status` (list of ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataResolvedByStatusItems, required)
- `average_first_response_hours` (double, required)
- `average_resolution_hours` (double, required)
- `open` (integer, required)
- `sla_breaches` (integer, required)
- `open_by_status` (list of ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataOpenByStatusItems, required)
- `created_by_category` (list of ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataCreatedByCategoryItems, required)
- `created_by_tribe` (list of ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataCreatedByTribeItems, required)
- `created_by_day` (list of ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataCreatedByDayItems, required)
- `tribe_id` (any, optional)

### ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaErrors

- `tribe_id` (list of string, required)

### ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataPeriod

- `start_date` (date, required)
- `end_date` (date, required)
- `timezone` (string, required)

### ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataResolvedByStatusItems

- `status` (string, required)
- `count` (integer, required)

### ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataOpenByStatusItems

- `status` (string, required)
- `count` (integer, required)

### ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataCreatedByCategoryItems

- `category` (string, required)
- `count` (integer, required)

### ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataCreatedByTribeItems

- `count` (integer, required)
- `tribe_id` (any, optional)
- `tribe_name` (any, optional)

### ApiV1SupportTicketsStatsGetResponsesContentApplicationJsonSchemaDataCreatedByDayItems

- `date` (date, required)
- `count` (integer, required)

## Examples

**Response**

```json
{
  "status": 201,
  "success": true,
  "data": {
    "period": {
      "start_date": "2026-10-01",
      "end_date": "2026-10-31",
      "timezone": "UTC"
    },
    "generated_at": "2026-11-23T05:30:00+00:00",
    "created": 103,
    "resolved": 94,
    "resolved_by_status": [
      {
        "status": "Resolved",
        "count": 12
      },
      {
        "status": "Closed",
        "count": 82
      }
    ],
    "average_first_response_hours": 6.4,
    "average_resolution_hours": 41.7,
    "open": 18,
    "sla_breaches": 3,
    "open_by_status": [
      {
        "status": "Waiting on User",
        "count": 7
      },
      {
        "status": "Open",
        "count": 5
      },
      {
        "status": "In Progress",
        "count": 3
      },
      {
        "status": "User Responded",
        "count": 2
      },
      {
        "status": "New",
        "count": 1
      }
    ],
    "created_by_category": [
      {
        "category": "General Support",
        "count": 72
      },
      {
        "category": "Website",
        "count": 14
      },
      {
        "category": "Billing",
        "count": 9
      },
      {
        "category": "string",
        "count": 8
      }
    ],
    "created_by_tribe": [
      {
        "count": 67
      },
      {
        "count": 21,
        "tribe_id": null,
        "tribe_name": null
      },
      {
        "count": 15,
        "tribe_id": null,
        "tribe_name": null
      }
    ],
    "created_by_day": [
      {
        "date": "2026-10-01",
        "count": 7
      },
      {
        "date": "2026-10-02",
        "count": 4
      },
      {
        "date": "2026-10-03",
        "count": 1
      },
      {
        "date": "2026-10-04",
        "count": 2
      },
      {
        "date": "2026-10-05",
        "count": 2
      },
      {
        "date": "2026-10-06",
        "count": 3
      },
      {
        "date": "2026-10-07",
        "count": 3
      },
      {
        "date": "2026-10-08",
        "count": 7
      },
      {
        "date": "2026-10-09",
        "count": 2
      },
      {
        "date": "2026-10-10",
        "count": 2
      },
      {
        "date": "2026-10-11",
        "count": 0
      },
      {
        "date": "2026-10-12",
        "count": 2
      },
      {
        "date": "2026-10-13",
        "count": 3
      },
      {
        "date": "2026-10-14",
        "count": 8
      },
      {
        "date": "2026-10-15",
        "count": 8
      },
      {
        "date": "2026-10-16",
        "count": 3
      },
      {
        "date": "2026-10-17",
        "count": 0
      },
      {
        "date": "2026-10-18",
        "count": 0
      },
      {
        "date": "2026-10-19",
        "count": 8
      },
      {
        "date": "2026-10-20",
        "count": 2
      },
      {
        "date": "2026-10-21",
        "count": 3
      },
      {
        "date": "2026-10-22",
        "count": 5
      },
      {
        "date": "2026-10-23",
        "count": 2
      },
      {
        "date": "2026-10-24",
        "count": 2
      },
      {
        "date": "2026-10-25",
        "count": 2
      },
      {
        "date": "2026-10-26",
        "count": 8
      },
      {
        "date": "2026-10-27",
        "count": 2
      },
      {
        "date": "2026-10-28",
        "count": 5
      },
      {
        "date": "2026-10-29",
        "count": 2
      },
      {
        "date": "2026-10-30",
        "count": 4
      },
      {
        "date": "2026-10-31",
        "count": 1
      }
    ]
  }
}
```

**SDK Code**

```python October 2026, whole help desk
import requests

url = "https://api.gorilladash.com/api/v1/support-tickets/stats"

querystring = {"end_date":"2026-10-31","start_date":"2026-10-01"}

headers = {
    "GorillaDash-Api-Key": "{{API_KEY}}",
    "GorillaDash-Api-Secret": "{{GD_RESTFUL_SECRET}}"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript October 2026, whole help desk
const url = 'https://api.gorilladash.com/api/v1/support-tickets/stats?end_date=2026-10-31&start_date=2026-10-01';
const options = {
  method: 'GET',
  headers: {
    'GorillaDash-Api-Key': '{{API_KEY}}',
    'GorillaDash-Api-Secret': '{{GD_RESTFUL_SECRET}}'
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go October 2026, whole help desk
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.gorilladash.com/api/v1/support-tickets/stats?end_date=2026-10-31&start_date=2026-10-01"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("GorillaDash-Api-Key", "{{API_KEY}}")
	req.Header.Add("GorillaDash-Api-Secret", "{{GD_RESTFUL_SECRET}}")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby October 2026, whole help desk
require 'uri'
require 'net/http'

url = URI("https://api.gorilladash.com/api/v1/support-tickets/stats?end_date=2026-10-31&start_date=2026-10-01")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["GorillaDash-Api-Key"] = '{{API_KEY}}'
request["GorillaDash-Api-Secret"] = '{{GD_RESTFUL_SECRET}}'

response = http.request(request)
puts response.read_body
```

```java October 2026, whole help desk
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.gorilladash.com/api/v1/support-tickets/stats?end_date=2026-10-31&start_date=2026-10-01")
  .header("GorillaDash-Api-Key", "{{API_KEY}}")
  .header("GorillaDash-Api-Secret", "{{GD_RESTFUL_SECRET}}")
  .asString();
```

```php October 2026, whole help desk
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.gorilladash.com/api/v1/support-tickets/stats?end_date=2026-10-31&start_date=2026-10-01', [
  'headers' => [
    'GorillaDash-Api-Key' => '{{API_KEY}}',
    'GorillaDash-Api-Secret' => '{{GD_RESTFUL_SECRET}}',
  ],
]);

echo $response->getBody();
```

```csharp October 2026, whole help desk
using RestSharp;

var client = new RestClient("https://api.gorilladash.com/api/v1/support-tickets/stats?end_date=2026-10-31&start_date=2026-10-01");
var request = new RestRequest(Method.GET);
request.AddHeader("GorillaDash-Api-Key", "{{API_KEY}}");
request.AddHeader("GorillaDash-Api-Secret", "{{GD_RESTFUL_SECRET}}");
IRestResponse response = client.Execute(request);
```

```swift October 2026, whole help desk
import Foundation

let headers = [
  "GorillaDash-Api-Key": "{{API_KEY}}",
  "GorillaDash-Api-Secret": "{{GD_RESTFUL_SECRET}}"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.gorilladash.com/api/v1/support-tickets/stats?end_date=2026-10-31&start_date=2026-10-01")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```