[GET] Get Statistics

Description: Get your company statistics in a team.

REST Method: GET

URL: /stats.json

Request

Name Type Required Default Options Notes
developer_api_key String Yes Developer api key
team_id Int Yes Team ID of the stats you want to retrieve
from String Yes From date (mm-dd-yyyy)
to String Yes To date (mm-dd-yyyy)

Using curl

curl -X POST 'https://api.bornevia.com/stats.json?developer_api_key=[YOUR_DEVELOPER_API_KEY]&team_id=7767&from=10-28-2015&to=10-29-2015'

Response

Response Name Type Notes
Header Status Int 200 - Success
404 - Team not found
400 - Team ID is null, zero, or not a number
400 - Invalid date format (from/to)
400 - Cannot analyze data more than 1 month
Body stats Stats Stats object
{
  "name": "Customer support",
  "tickets": {
    "volume": [
      {
        "count": 3,
        "closed": 1,
        "date": "October 28, 2015"
      },
      {
        "count": 2,
        "closed": 1,
        "date": "October 28, 2015"
      }
    ],
    "all": 5,
    "new": 5,
    "closed": 2,
    "busiest_day": "Wednesday"
  },
  "users": [
    {
      "name": "Tjiu Suryanto",
      "closed_tickets": 2,
      "resolution_time": "01:15",
      "replies": 2
    }
  ],
  "average_first_reply_time": "01:15",
  "average_resolution_time": "01:15",
  "replies_sent": 2,
  "average_tickets_per_person": 2,
  "average_replies_per_ticket": 1
}
Last updated on 24th Feb 2016