List users
You can retrieve a list of users in your Sendbird application using this API. You can generate a customized list using various parameter combinations.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Optional
Parameter name | 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 |
active_mode | string | Specifies the activation status of the users in the list. Acceptable values are |
show_bot | boolean | Determines whether to include bots in the list. (Default: |
user_ids | string | Specifies the user IDs. The value should be a comma-separated string that consists of multiple urlencoded user IDs. An example of a urlencoded string is |
nickname | string | Specifies the nickname of the user. Urlencoding the value is recommended. |
nickname_startswith | string | Specifies the starting characters of the nicknames to look for. When specified, the API request searches for users whose nicknames start with the specified value. Urlencoding the value is recommended. |
metadatakey | string | Specifies a keyword to search for. The keyword acts as a filter to search for users with metadata containing the keyword as a key. This parameter should be specified in conjunction with the |
metadatavalues_in | string | Searches for blocked users with metadata containing an item with the key specified by the |
Responses
If successful, this action returns a list of user resources in the response body.
List of response properties
Property name | Type | Description |
---|---|---|
users[] | array of objects | An array of user resources. |
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.