Video room tokens
Let signed-in members join live video or audio rooms (Tencent TRTC or LiveKit) from your own pages, while the provider secret stays in the vault. configure sets the provider and app id; the page calls get-token and gets a short-lived join token for the member who is signed in with tenant_auth. The user id comes from the member session, never from the page.
Try it with your AI assistant
Once WebsitePublisher is connected to your AI assistant, paste one of these into the chat.
@WebsitePublisher set up Tencent TRTC so signed-in students can join the live classroom on my site@WebsitePublisher use LiveKit for the video rooms on my members pageWith WebsitePublisher, set up Tencent TRTC so signed-in students can join the live classroom on my siteWith WebsitePublisher, use LiveKit for the video rooms on my members pageWith WebsitePublisher, set up Tencent TRTC so signed-in students can join the live classroom on my siteWith WebsitePublisher, use LiveKit for the video rooms on my members pageEndpoints (3)
Set the provider for video room tokens. tencent_trtc: app_id = the numeric SDKAppID; store the SDKSecretKey in the vault (default name trtc_secret_key). livekit: app_id = the API key, server_url = your LiveKit server (wss://...); store the API secret in the vault (default name livekit_api_secret). Never put the secret in this call or in a page. ttl_seconds is the token lifetime (300-86400, default 3600). Replaces earlier settings.
| Field | Type | Required | Description |
|---|---|---|---|
provider |
string | ✓ Yes | tencent_trtc or livekit. |
app_id |
string | ✓ Yes | Tencent: SDKAppID (digits). LiveKit: API key. |
server_url |
string | No | LiveKit only: wss:// or https:// URL of your LiveKit server. |
vault_key |
string | No | Name of the vault secret, if not the default (trtc_secret_key / livekit_api_secret). |
ttl_seconds |
integer | No | Token lifetime in seconds, 300-86400. Default 3600. |
The video room token settings and whether the secret is stored in the vault (never its value).
No input parameters required.
A short-lived join token for the member who is signed in with tenant_auth. From a page: call it with the member session; the user id is "<tenant code>_<member id>" and cannot be chosen by the page. Tencent returns sdk_app_id, user_id and user_sig for the TRTC Web SDK; LiveKit returns server_url, room and token. room is required for LiveKit (1-64 letters, digits, _ or -). Not signed in: 403 RTC_SIGN_IN_REQUIRED. The owner (MCP) may pass user_id to test.
| Field | Type | Required | Description |
|---|---|---|---|
room |
string | No | Room to join. Required for LiveKit; for Tencent it is only echoed back. |
user_id |
string | No | Owner only, for testing. Ignored for page calls. |
MCP Tool Names
When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:
| Endpoint | MCP Tool Name |
|---|---|
| configure | rtc-token_configure |
| get-config | rtc-token_get_config |
| get-token | rtc-token_get_token |
Website