logo

Call Center Customer Service Group Monitoring Interface

This interface is used to obtain the call center monitoring information for all members of a specific customer service group under the current company.

Request Method

GET /callcenter_analysis/agents_of_group

Request Parameters

Parameter NameRequiredTypeDescriptionRestrictions
group_idNoIntegerIf left blank, returns the status of all customer service agents
pageNoIntegerPage number, starting from 1, default is 1
perpageNoIntegerNumber of items per page, default is 30, maximum is 100

Response Data

Attribute NameTypeDescription
codeIntegerExecution result code, 1000 represents success
server_timeDateTimeCurrent server time
itemsArrayDetails below
metaObjectPagination information, details below
Items Structure
Parameter NameTypeDescription
idIntegerCustomer service ID
nameStringCustomer service name
agent_work_stateStringCurrent state of the customer service agent
agent_neaten_timeIntegerCustomer service tidy time
agent_work_wayStringCustomer service work method
cc_custom_state_idIntegerCustom break state ID
subaccount_stateStringDevice state
agent_call_stateStringAgent call state
callout_countIntegerOutbound call count
callin_answer_countIntegerInbound call answer count
callin_noanswer_countIntegerInbound call unanswered count
callout_answer_countIntegerOutbound call answer count
categoryStringType of the last call
answer_delayIntegerAnswer delay of the last call
talking_timeIntegerDuration of the last call
conversation_idIntegerCall record ID of the last call
customerJSONCustomer information of the last call
idIntegerCustomer ID of the last call
cellphoneStringCustomer's phone number of the last call
other_start_atDateStart time of the agent switching to the current state

Explanation

Parameter NameValueDescription
1 agent_work_stateofflineOffline
idleIdle
busyBusy
restingResting
neatenTidying
2 agent_work_wayvoip_onlineWeb phone
fixed_voip_onlineIP phone
phone_onlineTraditional phone (mobile/landline)
3 subaccount_stateofflinePhone offline
unregisterUnregistered
expireExpired
idleIdle
busyIn a call
4 agent_call_stateoffNot in a call
ringRinging
inIn a call
5 categorynormalNormal call
transferTransfer
transfer_outlineTransfer to external line
consultConsultation
consult_outlineConsultation (external line)
three_partyThree-party
three_party_outlineThree-party (external line)
listeningListening
barge_inSupervisor intrusion
substituteSupervisor disconnection
6 customeridCustomer ID
cellphoneCustomer phone number

Pagination Information

When obtaining a list through interfaces, the returned data usually includes pagination information (meta), which is as follows:

Attribute NameTypeDescription
current_pageIntegerCurrent page number
total_pagesIntegerTotal number of pages
countIntegerTotal number of data

Example

Request

curl https://demo.udesk.cn/open_api_v1/callcenter_analysis/agents_of_group?group_id=269&page=1&perpage=1&email=admin@udesk.cn&timestamp=1494474404&sign=6892f1b794071c260e1b1eac15df588fc919c9e86eb742affaa742ad6c03cb52&nonce=2d931510-d99f-494a-8c67-87feb05e1594&sign_version=v2 \
-X GET \
-H 'content-type: appliacation/json' \

Response

{
  "code": 1000,
  "server_time": "2018-05-08T20:09:47+08:00",
  "items": [{
    "id": 269,
    "name": "Display",
    "agent_work_state": "idle",
    "agent_neaten_time": 10,
    "agent_work_way": "fixed_voip_online",
    "cc_custom_state_id": null,
    "subaccount_state": "idle",
    "agent_call_state": "off",
    "callout_count": 2,
    "callin_answer_count": 0,
    "callin_noanswer_count": 0,
    "callout_answer_count": 2,
    "category": "normal",
    "answer_delay": 0,
    "talking_time": 0,
    "conversation_id": 100100100,
    "customer": {
      "id": 196001,
      "cellphone": "13261998838"
    },
    "other_start_at": "2018-05-08T16:56:05.000+08:00"
}],
"meta": {
"current_page": 1,
"total_pages": 1,
"count": 1
}
}

Today's Call Data

This interface is used to obtain the call data for the current company today.

Request URL

GET /callcenter_analysis/calls_info_of_today

Request Parameters

Field NameTypeRequired
group_idstringNo, if not filled, return data for all customer service groups
pageIntegerNo, page number, defaults to 1
perpageIntegerNo, number of items per page, defaults to 30, maximum 100

Response Data

Field NameTypeField Description
codeIntegerExecution result, 1000 for success
server_timeDateTimeCurrent server time
itemsArrayDetails below
metaObjectPagination information

Items Description

Field NameTypeField Description
group_idIntegerCustomer service group ID, empty for overall data of all customer service groups
callin_countstringInbound call count
transfer_agent_countstringTransfer to agent/count
queue_success_countstringSuccessful queue count
queue_quit_countstringAbandoned queue count
callin_ringing_countstringInbound ringing count
callin_answered_countstringInbound answered count
callin_answered_ratestringInbound answer rate
survey_rated_ratiostringSurvey participation rate
callout_countstringOutbound call count
callout_no_answered_countstringOutbound unanswered count
callout_answered_countstringOutbound answered count
callout_answered_ratestringOutbound answer rate

Request Example

curl https://demo.udesk.cn/open_api_v1/callcenter_analysis/calls_info_of_today?
group_id=1,2&page=1&perpage=1&email=admin@udesk.cn&timestamp=1494474404&sign=6892f1b794071c260e1b1eac15df588fc919c9e86eb742affaa742ad6c03cb52&nonce=2d931510-d99f-494a-8c67-87feb05e1594&sign_version=v2 \
-X GET \
-H 'content-type: appliacation/json' \

Response Result

{
  "code": 1000,
  "server_time": "2018-05-08T20:09:47+08:00",
  "items": [
    {
      "group_id": "",
      "callin_count": "10",
      "transfer_agent_count": "4",
      "queue_success_count": "5",
      "queue_quit_count": "3",
      "callin_ringing_count": "12",
      "callin_answered_count": "13",
      "callin_answered_rate": "0.43",
      "survey_rated_ratio": "0.71",
      "callout_count": "40",
      "callout_no_answered_count": "20",
      "callout_answered_count": "20",
      "callout_answered_rate": "0.50"
    },
    {
      "group_id": "1",
      "callin_count": "10",
      "transfer_agent_count": "4",
      "queue_success_count": "5",
      "queue_quit_count": "3",
      "callin_ringing_count": "12",
      "callin_answered_count": "13",
      "callin_answered_rate": "0.43",
      "survey_rated_ratio": "0.71",
      "callout_count": "40",
      "callout_no_answered_count": "20",
      "callout_answered_count": "20",
      "callout_answered_rate": "0.50"
    },
    {
      "group_id": "2",
      "callin_count": "10",
      "transfer_agent_count": "4",
      "queue_success_count": "5",
      "queue_quit_count": "3",
      "callin_ringing_count": "12",
      "callin_answered_count": "13",
      "callin_answered_rate": "0.43",
      "survey_rated_ratio": "0.71",
      "callout_count": "40",
      "callout_no_answered_count": "20",
      "callout_answered_count": "20",
      "callout_answered_rate": "0.50"
    }
],
"meta": {
"current_page": 1,
"total_pages": 1,
"count": 2
}
}

Current Queue Status

This interface is used to obtain the current queue data for the current company.

Request URL

GET /callcenter_analysis/calls_in_queue

Request Parameters

Field NameTypeRequired
group_idstringNo, if not filled, return data for all customer service groups
pageIntegerNo, page number, defaults to 1
perpageIntegerNo, number of items per page, defaults to 30, maximum 100

Response Data

Field NameTypeField Description
codeIntegerExecution result, 1000 for success
server_timeDateTimeCurrent server time
itemsArrayDetails below
metaObjectPagination information

Items Description

Field NameTypeField Description
group_idIntegerCustomer service group ID, empty for overall data of all customer service groups
cellphonestringCustomer's phone number
namestringCustomer's name
queuestringQueue name
start_atstringStart time
queue_timestringTime spent in queue

Request Example

curl https://demo.udesk.cn/open_api_v1/callcenter_analysis/calls_in_queue?
     group_id=1&page=1&perpage=1&email=admin@udesk.cn&timestamp=1494474404&sign=6892f1b794071c260e1b1eac15df588fc919c9e86eb742affaa742ad6c03cb52&nonce=2d931510-d99f-494a-8c67-87feb05e1594&sign_version=v2 \
-X GET \
-H 'content-type: application/json' \

Response Result

{
  "code": 1000,
  "server_time": "2018-05-08T20:09:47+08:00",
  "items": [
    {
      "group_id": 1,
      "cellphone": "18710812345",
      "name": "udesk",
      "queue": "Leave the queue",
      "start_at": "20180710",
      "queue_time": "10"
    }
  ],
  "meta": {
    "current_page": 1,
    "total_pages": 1,
    "count": 1
  }
}

Queue Abandonment Status

This interface is used to obtain the current queue abandonment data for the current company.

Request URL

GET /callcenter_analysis/calls_quitted_queue

Request Parameters

Field NameTypeRequired
group_idstringNo, if not filled, return data for all customer service groups
pageIntegerNo, page number, defaults to 1
perpageIntegerNo, number of items per page, defaults to 30, maximum 100

Response Data

Field NameTypeField Description
codeIntegerExecution result, 1000 for success
server_timeDateTimeCurrent server time
itemsArrayDetails below
metaObjectPagination information

Items Description

Field NameTypeField Description
group_idIntegerCustomer service group ID, empty for overall data of all customer service groups
cellphonestringCustomer's phone number
namestringCustomer's name
abort_atstringAbandonment time
queuestringQueue name
queue_timestringTime spent in queue
sub_callstringSubsequent call
task_namestringOutbound task name

Request Example

curl https://demo.udesk.cn/open_api_v1/callcenter_analysis/calls_quitted_queue?
     group_id=1&page=1&perpage=1&email=admin@udesk.cn&timestamp=1494474404&sign=6892f1b794071c260e1b1eac15df588fc919c9e86eb742affaa742ad6c03cb52&nonce=2d931510-d99f-494a-8c67-87feb05e1594&sign_version=v2 \
-X GET \
-H 'content-type: application/json' \

Response Result

{
  "code": 1000,
"server_time": "2018-05-08T20:09:47+08:00",
"items": [
{
"group_id": 1,
"cellphone": "18710812345",
"name": "udesk",
"abort_at": "2018-03-14 10:14:01 +0800",
"queue": "Leave the queue",
"queue_time": 9,
"sub_call": 21,
"task_name": "Outbound call task"
}
],
"meta": {
"current_page": 1,
"total_pages": 1,
"count": 1
}
}

Code Error Codes Explanation

Error CodeMessageexception:MessageDescription
11012The group does not exist or has been deletedThe group does not exist or has been deletedThe customer service group specified by {group_id} does not exist