avatars
List avatars
Changed onRetrieves a list of available avatars for the authenticated user.
get/me/avatars
Request
- Base URLhttps://api.gravatar.com/v3
- AuthOAuth 2Implicithttps://public-api.wordpress.com/oauth2/authorize
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
selected_email_hashstring
The SHA256 hash of the email address used to determine which avatar is selected. The 'selected' attribute in the avatar list will be set to 'true' for the avatar associated with this email.
Response
Successful retrieval of avatars
Example response
[
{
"image_id": "38be15a98a2bbc40df69172a2a8349",
"image_url": "https://gravatar.com/userimage/252014526/d38bele5a98a2bbc40df69172a2a8348.jpeg",
"alt_text": "Gravatar's avatar image. Gravatar is a service for providing globally unique avatars.",
"selected": true,
"updated_date": "2021-10-01T12:00:00Z"
}
]Changes
- breaking
for the
queryrequest parameterselected_email_hash, default valuewas added
- breaking
- breaking
for the
queryrequest parameterselected_email_hash, default valuewas removed
- breaking