tencent cloud

Feedback

DescribeProtectedTelCdr

Last updated: 2024-09-09 17:57:56

1. API Description

Domain name for API request: ccc.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 for this API.
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.tencentcloudapi.com/?Action=DescribeProtectedTelCdr
&SdkAppId=1400000000
&StartTimeStamp=1590547606
&EndTimeStamp=1590147606
&PageSize=10
&PageNumber=0
&<Common request parameters>

Output Example

{
    "Response": {
        "TotalCount": 2,
        "TelCdrList": [
            {
                "ProtectedCaller": "abc",
                "EndStatus": 1,
                "SessionId": "abc",
                "CustomRecordURL": "abc",
                "SkillGroupId": 100,
                "Direction": 0,
                "StartTimestamp": 1590547606,
                "AsrUrl": "abc",
                "HungUpSide": "abc",
                "ServeParticipants": [
                    {
                        "TransferTo": "abc",
                        "TransferFromType": "abc",
                        "EndStatusString": "abc",
                        "RecordURL": "abc",
                        "TransferToType": "abc",
                        "AcceptTimestamp": 0,
                        "RecordId": "abc",
                        "TransferFrom": "abc",
                        "EndedTimestamp": 0,
                        "Sequence": 0,
                        "Phone": "abc",
                        "SkillGroupName": "abc",
                        "Mail": "abc",
                        "RingTimestamp": 0,
                        "Type": "abc",
                        "StartTimestamp": 0,
                        "CustomRecordURL": "abc",
                        "SkillGroupId": 0
                    }
                ],
                "PostIVRKeyPressed": [
                    {
                        "Key": "abc",
                        "Label": "abc"
                    }
                ],
                "EndStatusString": "abc",
                "UUI": "abc",
                "QueuedSkillGroupId": 100,
                "RingTimestamp": 1590547606,
                "AcceptTimestamp": 1590547606,
                "EndedTimestamp": 1590547606,
                "Caller": "",
                "CallerLocation": "abc",
                "Time": 1590547606,
                "Callee": "",
                "SeatUser": {
                    "Name": "abc",
                    "Phone": "abc",
                    "UserId": "abc",
                    "Nick": "abc",
                    "StaffNumber": "abc",
                    "Mail": "abc",
                    "SkillGroupNameList": [
                        "abc"
                    ]
                },
                "RecordURL": "abc",
                "RecordId": "abc",
                "QueuedTimestamp": 1610627284,
                "ProtectedCallee": "abc",
                "IVRDuration": 5,
                "SkillGroup": "abc",
                "Duration": 60,
                "IVRKeyPressed": [
                    "5"
                ],
                "IVRKeyPressedEx": [
                    {
                        "Key": "abc",
                        "Label": "abc"
                    }
                ],
                "QueuedSkillGroupName": "abc",
                "Remark": "abc",
                "VoicemailRecordURL": [
                    "abc"
                ]
            },
            {
                "ProtectedCaller": "abc",
                "EndStatus": 1,
                "SessionId": "abc",
                "CustomRecordURL": "abc",
                "SkillGroupId": 100,
                "Direction": 0,
                "StartTimestamp": 1590547630,
                "AsrUrl": "abc",
                "HungUpSide": "abc",
                "ServeParticipants": [
                    {
                        "TransferTo": "abc",
                        "TransferFromType": "abc",
                        "RecordURL": "abc",
                        "TransferToType": "abc",
                        "AcceptTimestamp": 0,
                        "RecordId": "abc",
                        "TransferFrom": "abc",
                        "EndedTimestamp": 0,
                        "Sequence": 0,
                        "Phone": "abc",
                        "EndStatusString": "abc",
                        "SkillGroupName": "abc",
                        "Mail": "abc",
                        "RingTimestamp": 0,
                        "Type": "abc",
                        "StartTimestamp": 0,
                        "CustomRecordURL": "abc",
                        "SkillGroupId": 0
                    }
                ],
                "PostIVRKeyPressed": [
                    {
                        "Key": "abc",
                        "Label": "abc"
                    }
                ],
                "EndStatusString": "abc",
                "UUI": "abc",
                "QueuedSkillGroupId": 100,
                "RingTimestamp": 1590547606,
                "AcceptTimestamp": 1590547606,
                "EndedTimestamp": 1590547606,
                "Caller": "",
                "CallerLocation": "abc",
                "Time": 1590547630,
                "Callee": "",
                "SeatUser": {
                    "Name": "abc",
                    "Nick": "abc",
                    "UserId": "abc",
                    "Phone": "abc",
                    "StaffNumber": "abc",
                    "Mail": "abc",
                    "SkillGroupNameList": [
                        "abc"
                    ]
                },
                "RecordURL": "abc",
                "RecordId": "abc",
                "QueuedTimestamp": 1610627284,
                "ProtectedCallee": "abc",
                "IVRDuration": 5,
                "SkillGroup": "abc",
                "Duration": 62,
                "IVRKeyPressed": [
                    "5"
                ],
                "IVRKeyPressedEx": [
                    {
                        "Key": "abc",
                        "Label": "abc"
                    }
                ],
                "QueuedSkillGroupName": "abc",
                "Remark": "abc",
                "VoicemailRecordURL": [
                    "abc"
                ]
            }
        ],
        "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.