# /public/users/{id}/avatar - Get user avatar image **GET /public/users/{id}/avatar** Serves a user's avatar image as binary data. This endpoint is public and requires no authentication. Returns the image with appropriate Content-Type header and browser caching headers. ## Servers - Backend API server: https://my.nethesis.it/backend/api (Backend API server) ## Parameters ### Path parameters - **id** (string) User Logto ID (use the logto_id from user responses, not the internal id) or local database ID ## Responses ### 200 Avatar image binary #### Headers - **Cache-Control** (string) #### Body: image/png (string(binary)) string(binary) ### 204 The user has no avatar (or the id is unknown). Deliberately not a 404: most users have no picture, and an error status would make every browser log a failed request. Check `has_avatar` on the user payload to skip the call entirely. #### Headers - **Cache-Control** (string) ### 400 Bad request - validation error #### Body: application/json (object) - **code** (integer) HTTP error code - **message** (string) Error message - **data** (object) [Powered by Bump.sh](https://bump.sh)