List group channels by user
This action retrieves a list of group channels that a specific user has joined. 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.
If you're looking to retrieve a list of group channels in a specific application, visit the list group channels page under the Channel section.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Parameters
Required | Type | Description |
---|---|---|
user_id | string | Specifies the unique ID of the user. |
Optional | Type | Description |
---|---|---|
token | string | Specifies a page token that indicates the starting index of results to retrieve. If not specified, the index is set to |
limit | int | Specifies the number of results to return per page. Acceptable values are |
distinct_mode | string | Restricts the search scope to only retrieve distinct or nondistinct group channels. Acceptable values are |
public_mode | string | Restricts the search scope to only retrieve public or private group channels. Acceptable values are |
super_mode | string | Restricts the search scope to only retrieve super or nonsuper group channels. Acceptable values are |
hidden_mode | string | Restricts the search scope to group channels that match a specific |
member_state_filter | string | Restricts the search scope to retrieve group channels based on whether the user has accepted an invitation and whether the user has been invited by a friend. Acceptable values are |
unread_filter | string | Restricts the search scope to only retrieve group channels with one or more unread messages. This filter doesn't support Supergroup channels. Acceptable values are |
created_after | long | Restricts the search scope to only retrieve group channels that have been created after the specified time in Unix milliseconds format. |
created_before | long | Restricts the search scope to only retrieve group channels that have been created before the specified time in Unix milliseconds format. |
show_empty | boolean | Determines whether to include empty channels in the response. Empty channels are channels that have been created but contain no messages. (Default: |
show_frozen | boolean | Determines whether to include frozen channels in the response. In frozen channels, only operators are allowed to send messages. (Default: |
show_member | boolean | Determines whether to include information about the members of each channel in the response. (Default: |
show_delivery_receipt | boolean | Determines whether to include information about the delivery receipts of each channel in the response. The delivery receipt indicates the timestamp of when each member has last received the messages from Sendbird server, in Unix milliseconds. (Default: |
show_read_receipt | boolean | Determines whether to include information about the read receipts of each channel in the response. The read receipt indicates the timestamp of when each user has last read the messages in the channel, in Unix milliseconds. (Default: |
order | string | Specifies the method to sort a list of results. Acceptable values are the following: |
metadata_order_key | string | Specifies the key of an item in metadata. This is effective only when the |
custom_types | string | Specifies a comma-separated string of one or more custom types to filter the user's group channels. URL encoding each type is recommended. If not specified, all channels are returned regardless of their custom type. |
custom_type_startswith | string | Searches for group channels with a custom type that starts with the specified string. URL encoding the value is recommended. |
channel_urls | string | Specifies a comma-separated string of one or more group channel URLs to search for. URL encoding each channel URL is recommended. |
name | string | Specifies the name of group channels. |
name_contains | string | Searches for group channels that contain the specified string in their names. This parameter isn't case-sensitive. URL encoding the value is recommended. |
name_startswith | string | Searches for group channels that have names that begin with the specified string. URL encoding the value is recommended. |
members_exactly_in | string | Searches for group channels that contain the exact members specified in a comma-separated string of URL encoded user IDs. |
members_include_in | string | Searches for group channels that contain one or more members specified in a comma-separated string of URL encoded user IDs. |
query_type | string | Specifies a logical operator applied to the |
members_nickname | string | Searches for group channels with members whose nicknames match the specified string. URL encoding the value is recommended. |
members_nickname_startswith | string | Searches for group channels with members whose nicknames begin with the specified value. This parameter isn't case-sensitive. URL encoding the value is recommended. |
members_nickname_contains | string | Searches for group channels with members whose nicknames contain the specified value. This parameter isn't case-sensitive. URL encoding the value is recommended. |
search_query | string | Searches for group channels where the specified query string matches the channel name or the nickname of the member. This parameter isn't case-sensitive and should be specified in conjunction with the |
search_fields | string | Specifies a comma-separated string of one or more search fields to apply to the query, which restricts the results within the specified fields ( |
metadata_key | string | Searches for group channels with metadata containing an item with the specified string as its key. This parameter should be specified in conjunction with the |
metadata_values | string | Searches for group channels with metadata containing an item with the key specified by the |
metadata_value_startswith | string | Searches for group channels with metadata containing an item with the key specified by the |
metacounter_key | string | Searches for group channels with metacounter containing an item with the specified string as its key. This parameter should be specified in conjunction with the |
metacounter_values | string | Searches for group channels with metacounter containing an item with the key specified by the |
metacounter_value_gt | string | Searches for group channels with metacounter containing an item with the key specified by the |
metacounter_value_gte | string | Searches for group channels with metacounter containing an item with the key specified by the |
metacounter_value_lt | string | Searches for group channels with metacounter containing an item with the key specified by the |
metacounter_value_lte | string | Searches for group channels with metacounter containing an item with the key specified by the |
| string | (Deprecated) Searches for channels with the specified |
Responses
If successful, this action returns a list of the group channel resources in the response body.
List of response properties
Name | Type | Description |
---|---|---|
channels[] | array of objects | An array of group channels associated with the user. |
next | string | The value that can be used in the |
Error
In the case of an error, an error object like below is returned. See the error codes section for more details.