Browse SDKs · React Native
Platform
SDKsReact NativeEnterprise

Get room credentials by room ID

Retrieve audio or video call room credentials by room ID using the OpenIM React Native SDK.

Copy

When the calling room ID is already known, query its RTC media access credentials using signalingGetTokenByRoomID():

const roomCredentials =
  await OpenIMSDK.signalingGetTokenByRoomID(roomID);

Parameters

ParameterTypeRequiredDescription
roomIDstringYesTarget calling room ID.

Return value

Resolves to an RtcInviteResults object containing roomID, token, liveURL, and optional busyLineUserIDList. Pass these room credentials to your real-time audio/video media engine to connect to the media session. For detailed field descriptions, see Start a one-to-one call.