语音账号列表
GET /apiv2/voice/agents.json
Query参数
| Name | Required | Type | Comment |
|---|---|---|---|
| page | 否 | number | 页码,默认为 1 |
| per_page | 否 | number | 分页尺寸,默认为 100 |
| group_id | 否 | number | 客服组 ID |
| ids | 否 | number[] | 多个客服 ID |
调用权限
admin
curl 示例
curl https://{subdomain}.kf5.com/apiv2/voice/agents.json \
-v -u {email_address}:{password}<
| Name | Type | Read-only | Comment |
|---|---|---|---|
| id | integer | yes | 客服ID |
| user_id | string | yes | 客服ID |
| name | string | yes | 客服名称 |
| voip_account | string | yes | voip 账号 |
| voip_pwd | string | yes | voip 密码 |
| type | string | yes | ‘client’:非落地上班,‘phone’:落地上班 |
| status | string | yes | 坐席状态,0:离线 ,1:在线,2:忙碌,3:小休 |
| created | string | yes | 创建时间 |
| status_updated | integer | yes | 状态更新时间 |
返回示例
Status: 200 OK{
"agents": [
{
"id": "10",
"user_id": "10",
"name": "bruce",
"voip_account": "12345678900004",
"voip_pwd": "eerdfodfe",
"type": "client",
"status": "0",
"created": "2015-02-14 18:13:07",
"status_updated": "2017-06-30 06:07:41"
}
],
"count": 1,
"next_page": null,
"previous_page": null
}