Skip to main content
Version: 5.7.0

GetChannelId

Retrieves a channel id given the specified lookup parameters.

ServiceOperation
chatGET_CHANNEL_ID

Method Parameters

ParameterDescription
channelTypeThe channel type - ‘gl’ for global, ‘gr’ for groups, ‘dy’ for dynamic.
channelSubIdThe type-specific sub id.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"status": 200,
"data": {
"channelId": "55555:gl:brainCloudDev"
}
}
Common Error Code

Status Codes

CodeNameDescription
40601RTT_NOT_ENABLEDRTT must be enabled for this feature
40603CHAT_UNRECOGNIZED_CHANNELThe sub id for the channel type is not recognized