View a user
Changed onView a user
You can retrieve information about a user using this API.
https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/get-a-user#1-get-a-user
user_id
Type: string
Description: Specifies the unique ID of the user to retrieve.
Request
- Base URLhttps://api-APP_ID.sendbird.com
- Authnone declared
Path parameters
(Required)
Query parameters
Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are all, super, and nonsuper. This parameter should be specified in conjunction with include_unread_count above. (Default: all)
Headers
Response
Successful response
Example response
{
"metadata": "{}",
"is_active": true,
"preferred_languages": [
"preferred_languages",
"preferred_languages"
],
"require_auth_for_profile_image": true,
"unread_channel_count": 6,
"discovery_keys": [
"discovery_keys",
"discovery_keys"
],
"profile_url": "profile_url",
"is_created": true,
"created_at": 9,
"has_ever_logged_in": true,
"locale": "locale",
"unread_message_count": 8,
"access_token": "access_token",
"is_shadow_blocked": true,
"user_id": "user_id",
"nickname": "nickname",
"phone_number": "phone_number",
"is_online": true,
"state": "",
"is_hide_me_from_friends": true,
"last_seen_at": 9
}Changes
- breaking
the
queryrequest parametersuper_modewas restricted to a list of enum values - warning
deleted the
headerrequest parameterApi-Token - info
api operation id
viewUserByIdremoved and replaced withviewAUser - info
added the new optional
headerrequest parameterapi-token - info
added the new enum value
allto thequeryrequest parametersuper_mode - info
added the new enum value
nonsuperto thequeryrequest parametersuper_mode - info
added the new enum value
superto thequeryrequest parametersuper_mode
- breaking
- info
the
headerrequest parameterApi-Tokenbecame optional
- info