API: Getting the account avatar
| Target URL | /api.php/Core/account/avatar |
| Required scope | profile |
| HTTP Method | GET |
| Output format | Image |
Request Parameters Reference
| Parameter | Type | Required | Description |
|---|---|---|---|
| puid | string | No | The public ID of the user account. Defaults to the account of the access token. |
The response is the avatar image of the account: the picture the user uploaded, the Gravatar image (when Gravatar is enabled on the installation), or an SVG image generated from the initials of the user when the account has neither. An unknown public ID is answered with an error, not with an image.