Manage Applications

    Get user avatar

    get
    https://api.box.com/2.0
    /users/:user_id/avatar

    Retrieves an image of a the user's avatar.

    Request

    application/json

    Path Parameters

    stringin pathrequired
    12345

    The ID of the user.

    Response

    image/jpg

    When an avatar can be found for the user the image data will be returned in the body of the response.

    You can now try out some of our APIs live, right here in the documentation.
    Log In

    Request Example

    cURL
    curl -X GET https://api.box.com/2.0/users/12345/avatar \
         -H "Authorization: Bearer <ACCESS_TOKEN>"
    .NET
    Stream imageStream = await client.UsersManager.GetUserAvatar(string userId);
    Java
    String userID = "33333";
    BoxUser user = new BoxUser(api, userID);
    InputStream avatarStream = user.getAvatar();
    Python
    avatar = client.user('33333').get_avatar()
    Node
    client.users.getAvatar('22222')
        .then(avatarImageStream => {
    
            avatarImageStream.on('data', bytes => {
                // read avatar image bytes
            });
        });