Get Avatar Suggestion

Prev Next
Get
/api/v1/users.getAvatarSuggestion

Use this endpoint to get avatar suggestions for the user from their connected OAuth services. The response is empty if no suggestions are found.

Changelog

Version Description
9.0.0 Removed Gravatar suggestions.
Header parameters
X-Auth-Token
stringRequired

The authenticated user token.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The authenticated user ID.

ExamplerbAXPnMktTFbNpwtJ
Responses
200

OK

Example 1
{
  "suggestions": {
    "google": {
      "service": "google",
      "url": "https://lh3.googleusercontent.com/a/example",
      "blob": "data:image/png;base64,...",
      "contentType": "image/png"
    }
  },
  "success": true
}
Expand All
object
suggestions
object
google
object
service
string
url
string
blob
string
contentType
string
success
boolean
401

Unauthorized

Authorization Error
{
  "success": false,
  "error": "You must be logged in to do this."
}
object
success
boolean
error
string