List open channels
Changed onList open channels
This action retrieves a list of open channels. You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels.
Request
- Base URLhttps://api-APP_ID.sendbird.com
- Authnone declared
Query parameters
Specifies a comma-separated string of one or more open channel URLs to restrict the search scope. URL encoding each channel URL is recommended.
Specifies a comma-separated string of one or more custom types to filter open channels. Urlencoding each type is recommended (for example, ?custom_types=urlencoded_type_1,urlencoded_type_2). If not specified, all channels are returned, regardless of their custom type.
Determines whether to include frozen channels in the response. Frozen channels are channels where only channel operators are allowed to send messages. (Default: true)
Determines whether to include channel metadata in the response. (Default: false)
Headers
Response
Successful response
Example response
{
"next": "next",
"channels": [
{
"cover_url": "cover_url",
"metadata": "{}",
"data": "data",
"custom_type": "custom_type",
"is_ephemeral": true,
"created_at": 0,
"is_dynamic_partitioned": true,
"channel_url": "channel_url",
"freeze": true,
"participant_count": 1,
"operators": [
{
"metadata": "{}",
"require_auth_for_profile_image": true,
"is_active": true,
"role": "",
"user_id": "user_id",
"profile_url": "profile_url",
"nickname": "nickname",
"is_blocked_by_me": true
},
{
"metadata": "{}",
"require_auth_for_profile_image": true,
"is_active": true,
"role": "",
"user_id": "user_id",
"profile_url": "profile_url",
"nickname": "nickname",
"is_blocked_by_me": true
}
],
"max_length_message": 6,
"name": "name"
},
{
"cover_url": "cover_url",
"metadata": "{}",
"data": "data",
"custom_type": "custom_type",
"is_ephemeral": true,
"created_at": 0,
"is_dynamic_partitioned": true,
"channel_url": "channel_url",
"freeze": true,
"participant_count": 1,
"operators": [
{
"metadata": "{}",
"require_auth_for_profile_image": true,
"is_active": true,
"role": "",
"user_id": "user_id",
"profile_url": "profile_url",
"nickname": "nickname",
"is_blocked_by_me": true
},
{
"metadata": "{}",
"require_auth_for_profile_image": true,
"is_active": true,
"role": "",
"user_id": "user_id",
"profile_url": "profile_url",
"nickname": "nickname",
"is_blocked_by_me": true
}
],
"max_length_message": 6,
"name": "name"
}
],
"ts": 5
}Changes
- breaking
the response property
//became nullable for the status - breaking
the response property
////became nullable for the status - breaking
the response property
////became nullable for the status - info
the
response's property default valuewas added for the status
- breaking
- warning
deleted the
headerrequest parameterApi-Token - warning
deleted the
queryrequest parametercustom_type - warning
removed the optional property
//from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - warning
removed the optional property
////from the response with the status - info
api operation id
ocListChannelsremoved and replaced withlistOpenChannels - info
added the new optional
headerrequest parameterapi-token - info
added the new optional
queryrequest parameterchannel_urls - info
added the optional property
//to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status - info
the response property
//became required for the status - info
the response property
////became required for the status
- warning