1. 接口说明

可通过该接口查询成功或失败的指定类型的推送记录数据列表

注意:

  • 在优音云客服系统中,可通过设置–>开发者中心,查看租户ID:tenant_id。本接口最多返回最近50条推送记录数据

2. 调用URL

https://ykf.uincall.com/openapi/call/pushLog/list?tenant_id=acf528a2-d0e2-xxxx-xxxx-74cb3995cfab&access_token=b57b2dc8edf583xxxxxd71d8a04d0df3&push_type=2

3. 调用方式

GET

4. 传入参数

非必填参数,调用接口时请传递参数名,参数值可为空

名称 类型 是否必填 说明
tenant_id String 租户ID
access_token String 租户鉴权Token
push_type Integer 数据类型 1:session话单数据 2:call话单数据

5. 响应参数

名称 类型 说明
errcode Integer 状态码:0成功,其他非0错误码,详见错误码列表
errmsg String 状态说明
data JsonObject类型数组 结果集
data.pushType Integer 数据类型
1:session话单数据
2:call话单数据
data.isSuccess Boolean 是否推送成功
data.failureReason Integer 推送失败原因
1:系统错误
2:第三方服务未配置推送接口信息
3:第三方服务配置了多个推送信息接口
4:话单数据中未能获取到对应的callId/sessionId
5:第三方服务响应异常
6:数据库中没有对应的call/session数据
data.pushUrl String 推送服务URL
data.pushData JsonObject类型 推送服务参数

6. 使用样例

调用

url:https://ykf.uincall.com/openapi/call/pushLog/list?tenant_id=acf528a2-d0e2-xxxx-xxxx-74cb3995cfab&access_token=b57b2dc8edf583xxxxxd71d8a04d0df3&push_type=2

响应

{
    "errcode": 0,
    "errmsg": "success",
    "data": [
        {
            "pushType": 2,
            "isSuccess": true,
            "failureReason": 0,
            "pushUrl": "https://ykf.uincall.com/callcenter/call/push/test/session?type=0",
            "pushData": {
                "tenant_id": "acf528a2-d0e2-4a7b-8513-74cb3995cfab",
                "service_stop_time": "2023-04-17T15:27:50",
                "app_type": "agent",
                "agent_id": "cdf8146f0270f0fab9f7837ee7ea8a7b",
                "ringing_time": 7,
                "created_at": "2023-04-17T15:27:42",
                "skip": false,
                "bussiness_num": "02863208372",
                "updated_at": "2023-04-17T15:27:51",
                "alterting_time": "2023-04-17T15:27:41",
                "id": "979589d9-926f-4b5a-cba9-0193be172648",
                "dnis": "18710783340",
                "ani": "02863208372",
                "app_id": "",
                "summary": "",
                "service_time": 9,
                "is_repeat": false,
                "agent_call": {
                    "skillnamefrom": "",
                    "skillidfrom": "",
                    "sip_network_ip": "10.10.14.67",
                    "stoptime": "2023-04-17 15:27:50",
                    "starttime": "2023-04-17 15:27:41",
                    "holdtimes": 0,
                    "failreason": "DNIS HANGUP",
                    "answertime": "2023-04-17 15:27:48",
                    "sip_network_port": "53960",
                    "callresult": 1,
                    "agentnum_to": "1003",
                    "dnis": "8008001293",
                    "holdtime": 0,
                    "ani": "02863208372"
                },
                "dnis_place": "陕西西安",
                "call_direction": "call out",
                "session_id": "89375c65-0506-44a0-c465-e37b70ab4127",
                "is_transfer": false,
                "service_start_time": "2023-04-17T15:27:41",
                "multi_match": false,
                "queue_time": 0,
                "ani_place": "四川眉山",
                "service_type": "dialout",
                "call_in_channel": "",
                "assigned": false,
                "customer_id": "e16ff0e4c8aba7ce59bc46a0d7e3ca11",
                "status": 0
            }
        }
    ]
}
文档更新时间: 2024-09-24 14:36   作者:admin