Public API avatar

#4863 

@DeepDiver1975 @tanghus @bartv2