Skip to main content

Fetches the Gravatar avatar of a user

GET 

/users/:userId/avatar

Returns the user's Gravatar image at 128 pixels, fetched and cached by the server so neither the user's email nor the viewer's address reaches Gravatar. The server caches an image, or the absence of one, for up to 24 hours, so a changed email or Gravatar image can take that long to appear. The user can refresh their own cached avatar sooner with ImmersionProfileAvatarRefresh.

Request​

Responses​

The avatar image, as JPEG, PNG, GIF or WebP.

Response Headers
    Cache-Control

    Always public, max-age=86400.

    X-Content-Type-Options

    Always nosniff.