Get User Avatar

HTTP MethodURLRequires Auth

GET

/api/v1/users.getAvatar

no

Query Parameters

KeyExample ValueDescription

userId* or username*

BsNr28znDkG8aeo7W or bobsmith

The ID or username of the user.

Example Call

With userId:

curl http://localhost:3000/api/v1/users.getAvatar?userId=BsNr28znDkG8aeo7W

With username:

curl http://localhost:3000/api/v1/users.getAvatar?username=bobsmith

Response

You will get the user avatar image or a redirect to the image URL.

Change Log

VersionDescription

0.50.0

Added

Last updated

Rocket.Chat versions receive support for six months after release.