Get Records by CallId
功能说明
App 管理员可以通过该接口获取指定 CallId 的通话记录信息。
警告:
如果您使用的是
TUICallKit.call()
或者TUICallKit.groupCall()
接口发起通话的,请查看:Deprecated Document 目录,如果您还有任何疑问,您可以联系:info_rtc@tencent.com 。接口调用说明
请求 URL 示例
https://xxxxxx/v4/call_record_http_srv/get_record_by_callid?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
请求参数说明
参数 | 说明 |
xxxxxx | SDKAppID 所在国家/地区对应的专属域名: 中国: console.tim.qq.com 新加坡: adminapisgp.im.qcloud.com 首尔: adminapikr.im.qcloud.com |
v4/call_record_http_srv/get_record_by_callid | 请求接口 |
sdkappid | 创建应用时即时通信 IM 控制台分配的 SDKAppID |
identifier | |
usersig | |
random | 请输入随机的32位无符号整数,取值范围0 - 4294967295 |
contenttype | 请求格式固定值为 json |
最高调用频率
200次/秒。
请求包示例
基础形式
{"CallId": "04c9a0ac-8e38-4a19-be45-349c5ce7911b"}
请求包字段说明
字段 | 类型 | 属性 | 说明 |
CallId | String | 必填 | 通话 ID |
应答包体示例
基础形式
{"ErrorCode": 0,"ErrorInfo": "","ActionStatus": "OK","RequestId": "Id-da9b3ee8bece466d951a9d93965c3d2c-O-Seq-324151555","Response": {"CallRecord": {"CallId": "04c9a0ac-8e38-4a19-be45-349c5ce7911b","Caller_Account": "user1","MediaType": "Audio","CallType": "MultiCall","StartTime": 1739868165,"EndTime": 1740064224,"AcceptTime": 1739872743,"CallResult": "NormalEnd","CalleeList_Account": ["user1","user5","user2"],"RoomId": "roomid-1434","RoomIdType": 2}}}
应答包字段说明
字段 | 类型 | 说明 |
ErrorCode | Integer | 错误码,0表示成功,非0表示失败 |
ErrorInfo | String | 错误信息 |
ActionStatus | String | 请求处理的结果,OK 表示处理成功,FAIL 表示失败 |
RequestId | String | 唯一请求 ID,每次请求都会返回,定位问题时需要提供该次请求的 RequestId |
CallRecord | Struct | 通话记录信息 |
CallId | String | 通话 ID |
Caller_Account | String | 主叫用户 ID |
MediaType | String | 媒体类型: Video 视频通话Audio 音频通话 |
CallType | String | 通话类型: SingleCall 一对一通话MultiCall 多人通话 |
StartTime | Integer | 通话发起的时间戳(秒级) |
EndTime | Integer | 通话结束的时间戳(秒级) |
AcceptTime | Integer | 通话接通的时间戳(秒级) |
CallResult | Integer | 通话结果: Cancel 取消:主叫方在接通前取消通话Reject 拒接:被叫方拒接NotAnswer 未接听:被叫方超时未接听NormalEnd 完成:通话接通并正常结束CallBusy 忙线:通话忙线Interrupt 中断:网络等原因导致通话中断 |
CalleeList_Account | Array | 通话成员列表 |
RoomId | String | TRTC 房间 ID |
RoomIdType | Integer | RoomId 类型: 1 数字房间号2 字符串房间号 |
错误码说明
除非发生网络错误(例如502错误),否则该接口的 HTTP 返回码均为200。真正的错误码,错误信息是通过应答包体中的 ErrorCode、ErrorInfo 来表示的。
本 API 私有错误码如下:
错误码 | 含义说明 |
101001 | 服务器内部错误,请重试 |
101050 | 通话记录不存在 |