A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.
Retrieves an image of a the user's avatar.
12345The ID of the user.
When an avatar can be found for the user the image data will be returned in the body of the response.
An unexpected client error.
curl -i -X GET "https://api.box.com/2.0/users/12345/avatar" \
-H "authorization: Bearer <ACCESS_TOKEN>"await client.avatars.getUserAvatar(user.id);client.avatars.get_user_avatar(user.id)await client.Avatars.GetUserAvatarAsync(userId: user.Id);try await client.avatars.getUserAvatar(userId: user.id, downloadDestinationUrl: destinationPath)client.getAvatars().getUserAvatar(user.getId())await client.Avatars.GetUserAvatarAsync(userId: user.Id);await client.avatars.getUserAvatar(user.id);