查看客服状态
GET /apiv2/voice/availabilities/{id}.json
调用权限
admin
curl 示例
curl https://{subdomain}.kf5.com/apiv2/voice/availabilities/10.json \ -v -u {email_address}:{password}
Name | Type | Read-only | Comment |
---|---|---|---|
agent_id | integer | yes | 客服UID |
user_id | integer | yes | 用户UID |
type | string | yes | phone:手机/落地号码上班,client:客户端上班 |
status_updated | integer | yes | 最近一次状态更新时间 |
status | integer | yes | 离线 0,在线 1,忙碌 2,小休 3 |
call_status | integer | yes | 未通话 0,通话中 1 |
number | string | yes | 上班号码 |
agent_name | string | yes | 客服名称 |
返回示例
Status: 200 OK{ "availability": { "user_id": "25897249", "agent_id": "1001118", "type": "client", "status_updated": "1501150681", "status": "1", "call_status": 0, "number": "8018862300000773", "agent_name": "mike" }}