tencent cloud

Feedback

DescribeProtectedTelCdr

Last updated: 2024-11-26 16:02:51

1. API Description

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

This API is used to access protected phone service records and recordings for both inbound and outbound calls.

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: DescribeProtectedTelCdr.
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 second-level timestamp.
EndTimeStamp Yes Integer End timestamp. Unix second-level timestamp.
SdkAppId Yes Integer For the Application ID, go to https://console.tencentcloud.com/ccc.
PageSize Yes Integer Page size, upper limit 100.
PageNumber Yes Integer Page number starting from 0.

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 Accessing Protected Phone Call Records of both Inbound and Outbound Calls

Input Example

https://ccc.intl.tencentcloudapi.com/?Action=DescribeProtectedTelCdr
&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": "",
                "Caller": "",
                "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": "ABABABABA",
                "ProtectedCaller": "CDCDCDCDC",
                "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.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support