Platform/Framework | Version number |
Android/iOS/Flutter/uni-app (client) | ≥ 1.7.1 |
Web | ≥ 1.4.6 |
WeChat Mini Program | ≥ 1.5.1 |
Feature Overview | API |
Access records through callId | |
Access records by condition |
https://xxxxxx/$version/$kind/$command?sdkappid=$SDKAppID&identifier=$identifier&usersig=$usersig&random=99999999&contenttype=json
Parameter | Meaning | Fetching Value |
https | Request protocol | The request protocol is HTTPS, and the request method is POST |
xxxxxx | reserved domain name | China callkit.trtc.tencent-cloud.com |
version | Protocol Version Number | Fixed as v1 |
kind | Management Classification | Example: v1/records/get_record_by_callId , where `records` is a kind |
command | The word `command`, combined with `kind`, is used to indicate a specific business feature | Example:
v1/records/get_record_by_callId , where `get_record_by_callId` is a command |
sdkappid | The application identifier accessed in the console | Obtained when applying for integration |
identifier | username, must be an App Administrator Account when calling RESTful APIs | Using the Admin account of IM |
usersig | password corresponding to username | |
random | Identifies the random number parameter for the current request | 32-bit unsigned integer random number, ranging from 0 to 4294967295 |
contenttype | Request Format | Fixed value: json |
identifier
parameter in requests. If you cancel or delete an administrator in IM Account Management, please correctly specify the administrator account and corresponding UserSig.{}
.{"errorCode": 0,"errorMessage": "Success","requestId": "1c8960ac38d61be38b6fb219db0182d1","data": {}}
Field | Type | Description |
errorCode | String | Error code, 0 for success, others for failure |
errorMessage | String | Error message |
requestId | Integer | Request Unique Identifier |
POST /records/get_record_by_callId
?usersig=xxx&identifier=admin&sdkappid=88888888&random=99999999&contenttype=json HTTP/2Host: callkit.trtc.tencent-cloud.comContent-Length: 36{"callId": "2ae7d549-c441-4a9b-87c0-61810fe19582"}
HTTP/2 200 OKDate: Fri, 21 Apr 2023 06:06:16 GMTContent-Length: 112Connection: keep-alive{"errorCode": 0,"errorMessage": "Success","requestId": "9f01db503f2006ad10c45f4f4609e38d","data": {"callId": "2ae7d549-c441-4a9b-87c0-61810fe19582","sdkAppId": 88888888,"mediaType": "video","roomId": "123456","startCallTs": 1688705638,"acceptTs": 1688705641,"endTs": 1688705668,"caller": "alice","totalUserNumber": 2,"callType": "single","callResult": "normal_end","callees": ["bob1","bob2"]}}
Error code | Description |
0 | Request succeeded |
50001 | The current application needs to purchase the TUICallKit Group Call Version Package to use |
70001 | Invalid request parameters, please check whether mandatory parameters are missing or incorrectly entered |
70002 | UserSig is invalid |
70003 | UserSig has expired |
70004 | Requesting user is not a Super Administrator |
70005 | Request frequency limited |
70009 | Error in parsing request body, please check if the request parameter type is correct |
Unknown error code |
telnet callkit.trtc.tencent-cloud.com 443
to confirm if the service port can be connected.curl -I https://callkit.trtc.tencent-cloud.com
for a simple test to see if the status code is 200.
Was this page helpful?