Statistics export

Data mining from chat usage statistics

Total stats

With this data you can show numbers of using chat. Not intend to draw line charts

http://api.smartsupp.com/stats/totals

Params

Name type default description
apiKey string Your apiKey REQUIRED
from string null Start date in format YYYY-MM-DD (optional)
to string null Until date in format YYYY-MM-DD (optional)
group string null Filters values by smartsupp-group (optional)

Response

{ "success":true, "interval":{ "from":"2014-01-05", "to":"2014-07-11" }, "overview":{ "visitors":1, "channels":11, "chats":140, "completed":95, "completed1to3":20, "completed3to5":38, "completed5to10":20, "completed10toInf":17, "dropped":24, "droppedByVisitorInactivity":1, "droppedByAgentInactivity":5, "missed":13, "offline":8, "triggered":4, "avgDuration":116, "avgFirstResponse":6, "avgResponse":17, "totalDuration":2975 }, "agents":[{ "userId":3, "nickname":"Du\u0161an Kme\u0165", "completed":22, "completed1to3":12, "completed3to5":0, "completed5to10":8, "completed10toInf":2, "dropped":3, "droppedByVisitorInactivity":2, "droppedByAgentInactivity":1, "triggered":0, "avgDuration":137, "avgFirstResponse":6, "avgResponse":12, "totalDuration":2081 },...] }

Overview stats

With this data you can draw overview data in line charts.

http://api.smartsupp.com/stats/overview

Params

Name type default description
apiKey string Your apiKey REQUIRED
interval string "day" Group data by interval (optional). You can set value: day, week, month
from string null Start date in format YYYY-MM-DD (optional)
to string null Until date in format YYYY-MM-DD (optional)
group string null Filters values by smartsupp-group (optional)

Response

{ "success":true, "interval":{ "from":"2014-01-05", "to":"2014-07-11" }, "records":{ "201464":{ "unitId":"201464", "unitName":"6", "unitLongName":"6. March 2014", "visitors":0, "channels":0, "chats":43, "completed":30, "completed1to3":2, "completed3to5":10, "completed5to10":8, "completed10toInf":10, "dropped":8, "droppedByVisitorInactivity":1, "droppedByAgentInactivity":1, "missed":2, "offline":3, "triggered":0, "avgDuration":78, "avgFirstResponse":7, "avgResponse":18, "totalDuration":239 }, "201465":{ ... }, ... } }

Agents stats

With this data you can draw agents conversation stats in line charts.

http://api.smartsupp.com/stats/agents

Params

Name type default description
apiKey string Your apiKey REQUIRED
interval string "day" Group data by interval (optional). You can set value: day, week, month
from string null Start date in format YYYY-MM-DD (optional)
to string null Until date in format YYYY-MM-DD (optional)
group string null Filters values by smartsupp-group (optional)

Response

{ "success":true, "interval":{ "from":"2014-01-05", "to":"2014-07-11" }, "records":[{ "unitId":"201466", "unitName":"8", "unitLongName":"8. March 2014", "userId":4, "nickname":"Petr", "completed":7, "completed1to3":2, "completed3to5":5, "completed5to10":0, "completed10toInf":0, "dropped":4, "droppedByVisitorInactivity":3, "droppedByAgentInactivity":1, "triggered":0, "avgDuration":77, "avgFirstResponse":7, "avgResponse":72, "totalDuration":231 }, ...] }