doc/api/avatar.md
{{< details >}}
{{< /details >}}
Use this API to interact with user avatars.
Retrieves the URL of a user account avatar associated with a specified public email address. This endpoint does not require authentication.
403 Forbidden.GET /[email protected]
Parameters:
| Attribute | Type | Required | Description |
|---|---|---|---|
email | string | yes | Public email address of the account. |
size | integer | no | Single pixel dimension. Only used for avatar lookups at Gravatar or a configured Libravatar server. |
Example request:
curl --request GET \
--url "https://gitlab.example.com/api/v4/[email protected]&size=32"
Example response:
{
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=64&d=identicon"
}