tencent cloud

文档反馈

DescribeTelCdr

最后更新时间:2024-11-26 16:02:50

1. API Description

Domain name for API request: ccc.intl.tencentcloudapi.com.

This API is used to access phone service records and recordings.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeTelCdr.
Version Yes String Common Params. The value used for this API: 2020-02-10.
Region No String Common Params. This parameter is not required.
StartTimeStamp Yes Integer Start timestamp, Unix Timestamp in Seconds. Supports up to the past 180 days.
EndTimeStamp Yes Integer End timestamp, Unix Timestamp in Seconds. The range between the end time and start time is less than 90 days.
Limit No Integer Maximum number of returned entries (deprecated).
Offset No Integer Offset (deprecated).
SdkAppId No Integer Application ID (required) can be found at https://console.tencentcloud.com/ccc.
PageSize No Integer Page size (required), up to 100.
PageNumber No Integer Page number (required), starting from 0.
Phones.N No Array of String Filter by Phone Number.
SessionIds.N No Array of String Filter by SessionId.

3. Output Parameters

Parameter Name Type Description
TotalCount Integer Total number of call records.
TelCdrList Array of TelCdrInfo Call record.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Sample Code for Accessing Phone Call Record

Input Example

https://ccc.intl.tencentcloudapi.com/?Action=DescribeTelCdr
&SdkAppId=1400000000
&StartTimeStamp=1590547606
&EndTimeStamp=1590147606
&PageSize=10
&PageNumber=0
&<Common request parameters>

Output Example

{
    "Response": {
        "TotalCount": 1,
        "TelCdrList": [
            {
                "AcceptTimestamp": 1729756307,
                "AsrUrl": "https://xxxxxx",
                "Callee": "00860200000000",
                "Caller": "0086075500000",
                "CallerLocation": "广东深圳固话",
                "CustomRecordURL": "https://xxxxxxxx.mp3",
                "Direction": 0,
                "Duration": 8,
                "EndStatus": 1,
                "EndStatusString": "ok",
                "EndedTimestamp": 1729756315,
                "HungUpSide": "seat",
                "IVRDuration": 15,
                "IVRKeyPressed": [
                    "香蕉"
                ],
                "IVRKeyPressedEx": [
                    {
                        "Key": "香蕉",
                        "Label": "香蕉"
                    }
                ],
                "PostIVRKeyPressed": [
                    {
                        "Key": "1",
                        "Label": "不满意"
                    }
                ],
                "ProtectedCallee": "",
                "ProtectedCaller": "",
                "QueuedSkillGroupId": 2522,
                "QueuedSkillGroupName": "test-tel",
                "QueuedTimestamp": 1729756306,
                "RecordId": "e9fdbff5-2e35-4480-83f7-81917e723fa5",
                "RecordURL": "https://xxxxxxx.mp3",
                "Remark": "skillGroupId--34588",
                "RingTimestamp": 1729756306,
                "SeatUser": {
                    "Mail": "xxxxxxx@tencent.com",
                    "Name": "xiaoming",
                    "Nick": "guanjia",
                    "Phone": "00861580000000",
                    "SkillGroupNameList": [
                        "1539",
                        "2522",
                        "3551"
                    ],
                    "StaffNumber": "20012",
                    "UserId": "xxxxxxx@tencent.com"
                },
                "ServeParticipants": [
                    {
                        "AcceptTimestamp": 1729756306,
                        "CustomRecordURL": "https://xxxxx.mp3",
                        "EndStatusString": "ok",
                        "EndedTimestamp": 1729756312,
                        "Mail": "xxxxxx@tencent.com",
                        "Phone": "",
                        "RecordId": "96eaa575-be4c-48f1-99b8-9722f2f816ec",
                        "RecordURL": "https://xxxxxx.mp3",
                        "RingTimestamp": 1729756306,
                        "Sequence": 0,
                        "SkillGroupId": 2522,
                        "SkillGroupName": "test-tel",
                        "StartTimestamp": 1729756306,
                        "TransferFrom": "",
                        "TransferFromType": "",
                        "TransferTo": "",
                        "TransferToType": "",
                        "Type": "staffSeat"
                    }
                ],
                "SessionId": "0955de87-c86d-4457-aac2-bee3d0a0b67a",
                "SkillGroup": "test-tel",
                "SkillGroupId": 2522,
                "StartTimestamp": 1729756291,
                "Time": 1729756291,
                "UUI": "",
                "Uui": "",
                "VoicemailAsrURL": [],
                "VoicemailRecordURL": []
            }
        ],
        "RequestId": "abc"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError An internal error occurs.
InternalError.DBError Internal database access failure.
InvalidParameter.InstanceNotExist The instance does not exist.
InvalidParameterValue parameter value is invalid.
InvalidParameterValue.InstanceNotExist The instance does not exist.
联系我们

联系我们,为您的业务提供专属服务。

技术支持

如果你想寻求进一步的帮助,通过工单与我们进行联络。我们提供7x24的工单服务。

7x24 电话支持