Return the avatar image for a personal contact. This route sits outside /api/v1, like user avatars.
Only the contact owner can fetch the image. Authenticate with rc_uid and rc_token as query parameters or cookies. Auth headers are not accepted.
If the contact has an uploaded avatar, that file is returned. Otherwise Rocket.Chat generates an SVG from the contact's displayName initials. Unknown contacts and contacts owned by another user return 404.
Changelog
| Version | Description |
|---|---|
| 9.1.0 | Added |
Enter the contact ID.
The user ID of the contact owner. Required unless provided as a cookie.
The login token of the contact owner. Required unless provided as a cookie.
Optional image format for the generated fallback avatar: jpg, jpeg, or png. Defaults to SVG.
OK
Not Modified
Not Found