---
title: "Generate User Thumbnail"
method: GET
path: "/cloud/v2/users/{user_id}:generateThumbnail"
tags: ["Avatars", "Thumbnails", "Users"]
---

# Generate User Thumbnail

`GET /cloud/v2/users/{user_id}:generateThumbnail`

Generates and returns the URL for the user's avatar thumbnail.

## Path parameters

- `user_id` string, required

## Query parameters

- `size` integer
- `format` 'FORMAT_UNSPECIFIED' | 'PNG' | 'JPEG', enum
- `shape` 'SHAPE_UNSPECIFIED' | 'ROUND' | 'SQUARE', enum

## Response `200`

OK

- Operation — This resource represents a long-running operation that is the result of a network API call.
  - `path` string — The server-assigned path, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `path` should be a resource path ending with `operations/{unique_id}`.
  - `metadata` GoogleProtobufAny — Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
    - `@type` string — The type of the serialized message.
  - `done` boolean — If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status — The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer — The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
    - `message` string — A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
    - `details` GoogleProtobufAny[] — A list of messages that carry the error details. There is a common set of message types for APIs to use.
      - `@type` string — The type of the serialized message.
  - `response` GoogleProtobufAny — Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
    - `@type` string — The type of the serialized message.

---

[API](https://skmtc.net/roblox/apis/roblox-api.md) · [All operations](https://skmtc.net/roblox/apis/roblox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/roblox/roblox-api/versions/e15802062270/schema)
