cURL
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 } }
Retrieves user details for a specified UID.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
UID of the user on whose behalf the action is performed.
Fetched User
Was this page helpful?