Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Avatar API (get the profile picture of a user, given the email address) #130

Open
collimarco opened this issue Dec 4, 2023 · 0 comments

Comments

@collimarco
Copy link

Introduction

A standard API that allows to get the user avatar (profile picture), given an email address.

Use Cases (Recommended)

  • Display the user avatar in a email inbox
  • Display the user avatar in the top navigation of a website
  • Display the user avatar in a forum

Proposed Solution

  1. Compute the sha256 hash of a user email (USER_EMAIL_SHA256)
  2. Make an API request to the user email domain, using a well know endpoint: https://example.com/.well-known/email-avatars/{USER_EMAIL_SHA256} (if the user is user@example.com)
  3. In the response, get the URL of an image that can represent that user

Alternate Approaches (Optional)

  • Gravatar is a similar, but proprietary approach. This would be an open standard.
  • BIMI (Brand Indicators for Message Identification) is just for the domain, not for specific users

Privacy & Security Considerations

The profile picture is public and anyone who knows the email can get the picture. This is not something surprising and the email provider can simply inform the user that the avatar is public (e.g. in the avatar upload form or in the Privacy policy).

Let’s Discuss (Optional)

I am open to any feedback on this idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant