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.
Path parameters
-
User Logto ID (use the logto_id from user responses, not the internal id) or local database ID
GET
/public/users/{id}/avatar
curl \
--request GET 'https://my.nethesis.it/backend/api/public/users/jf584cz36kce/avatar'
Response examples (400)
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}