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
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X GET /api/v2/user/me/avatar/ \
-H 'Accept: application/json'
-H "Authorization: Bearer <token>"
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | User |
Example responses
- 200
{
"avatar": "string"
}