GET | https://[domain].omnidesk.ru/api/stats_lb_staff.json
{
"staff" : {
"staff_id" : 100,
"staff_name" : "Viktor Persov",
"new_assigned_cases": 293,
"cases_with_first_reply" : 251,
"first_reply_speed" : 28,
"total_amount_of_replies": 457,
"total_amount_of_notes": 56,
"closed_cases" : 212,
"closing_speed" : 445,
"average_rating" : 84%
},
"staff" : {
"staff_id" : 102,
"staff_name" : "Stas Pokrasin",
"new_assigned_cases" : 65,
"cases_with_first_reply" : 61,
"first_reply_speed" : 43,
"total_amount_of_replies" : 137,
"total_amount_of_notes": 16,
"closed_cases" : 49,
"closing_speed" : 409,
"average_rating" : 79%
},
}
curl -u [staff_email]:[api_key] -H "Content-Type: application/json" -X GET "https://[domain].omnidesk.ru/api/stats_lb_staff.json?from_time=01+Jan+2015+00%3A00%3A00+%2B0300&to_time=05+Dec+2015+00%3A00%3A00+%2B0300"
GET | https://[domain].omnidesk.ru/api/stats_lb_groups.json
{
"group" : {
"group_id" : 21,
"group_name" : "General questions",
"new_assigned_cases": 103,
"total_amount_of_notes": 25,
"cases_with_first_reply" : 86,
"first_reply_speed" : 36,
"total_amount_of_replies" : 194,
"closed_cases" : 57,
"closing_speed" : 458,
"average_rating" : 82%
},
"staff" : {
"group_id" : 22,
"group_name" : "Billing questions",
"new_assigned_cases": 45,
"total_amount_of_notes": 12,
"cases_with_first_reply" : 38,
"first_reply_speed" : 42,
"total_amount_of_replies" : 91,
"closed_cases" : 35,
"closing_speed" : 607,
"average_rating" : 89%
},
}
curl -u [staff_email]:[api_key] -H "Content-Type: application/json" -X GET "https://[domain].omnidesk.ru/api/stats_lb_groups.json?from_time=01+Jan+2015+00%3A00%3A00+%2B0300&to_time=05+Dec+2015+00%3A00%3A00+%2B0300"
GET | https://[domain].omnidesk.ru/api/stats_satisfaction.json
{
"0": {
"rating_id": 79,
"rating": "3",
"rating_comment": "cool123",
"rated_staff_id": 193,
"case_id": 47232,
"case_number": "882-935664",
"user_id": 222760,
"staff_id": 193,
"group_id": 318,
"created_at": "Thu, 16 Jul 2020 15:00:35 +0300",
"updated_at": "Thu, 16 Jul 2020 15:00:35 +0300"
},
"1": {
"rating_id": 78,
"rating": "2",
"rating_comment": "",
"rated_staff_id": 0,
"case_id": 47223,
"case_number": "898-213499",
"user_id": 213381,
"staff_id": 193,
"group_id": 746,
"created_at": "Thu, 16 Jul 2020 14:49:38 +0300",
"updated_at": "Thu, 16 Jul 2020 14:54:50 +0300"
},
"total_count": 8
}
curl -u [staff_email]:[api_key] -H "Content-Type: application/json" -g "http://[domain].omnidesk.ru/api/stats_satisfaction.json?from_time=2021-01-01&to_time=2021-31-01&user_id=213450&channel=sync&sort=added_at_asc"