Get a user
You can retrieve information about a user using this API.
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 |
---|---|---|
include_unread_count | boolean | Determines whether to include the number of unread messages of the user's group channels in the response. (Default: |
custom_types | string | Specifies a comma-separated string of one or more custom types. This string can be used to filter the user's group channels and retrieve the number of unread messages only in the filtered channels. This parameter should be specified in conjunction with |
super_mode | string | Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are |
Responses
If successful, this action returns a user resource in the response body.
Error
In the case of an error, an error object like below is returned. See the error codes section for more details.