tencent cloud

Feedback

Tencent Cloud AI Digital Human

Obtaining the Key to the TRTC Room

Last updated: 2024-07-19 10:14:53
When a live session is created and the TRTC protocol is selected, this API is used by users other than the Digital Human to obtain the key for entering the room.
Note:
This only applies to situations where the internal TRTC account of the digital human is used.

Calling Protocol

HTTPS + JSON
POST /v2/ivh/sessionmanager/sessionmanagerservice/gettrtcsign
Header Content-Type: application/json;charset=utf-8

Request Parameters

Parameter name
Required
Type
Description
ReqId
Yes
String
Unique identifier for a single request.
SessionId
Yes
string
Session ID.
RoomId
Yes
string
The room ID, obtained through API 4.1 and parsed from the returned addr address.
UserId
Yes
string
User ID for entering the room.

Response Parameter

Parameter name
Required
Type
Description
ReqId
Yes
String
Unique identifier for a single request.
UserSig
Yes
string
Room Key.
PrivateMapKey
Yes
string
Permission Key.

Request Sample

{
"Header": {},
"Payload": {
"ReqId": "d7aa08da33dd4a662ad5be508c5b77cf",
"SessionId": "12123132",
"RoomId": "1200111",
"UserId": "avcvdafasfds",
}
}

Response Sample

{
"Header": {
"Code": 0,
"Message": "",
"RequestID": "123",
},
"Payload": {
"ReqId": "d7aa08da33dd4a662ad5be508c5b77cf",
"UserSig": "vafdasfda",
"PrivateMapKey": "fdasfdafdasfdasfd"
}
}


Catalog

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
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon