GET
/
users
/
{uid}
Get
curl --request GET \
  --url https://{appid}.api-{region}.cometchat.io/v3/users/{uid} \
  --header 'apikey: <api-key>'
{
  "data": {
    "uid": "superhero6",
    "name": "Barry Allen",
    "link": "http://placehold.it",
    "avatar": "http://placehold.it/120x120&text=image1",
    "status": "offline",
    "role": "manager",
    "createdAt": 1638354015
  }
}

Authorizations

apikey
string
header
required

API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).

Headers

onBehalfOf
string

UID of the user on whose behalf the action is performed.

Path Parameters

uid
string
required

UID of the user on whose behalf the action is performed.

Response

200 - application/json

Fetched User

The response is of type object.