Skip to main content

My Avatar

This endpoint returns the url to the user's current avatar

info

This operation requires authentication.

info

If the user has not set an avatar, the endpoint return an avatar from www.gravatar.com.

HTTP Request

GET /api/v2/user/me/avatar/

Example Request

const headers = {
'Accept':'application/json',
'Authorization: Bearer <token>'
};

fetch('/api/v2/user/me/avatar/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeUser

Example responses

{
"avatar": "string"
}