⚠️ This documentation pertains to a preview endpoint. This feature is not yet ready for API consumption and may change.
For inquiries or feedback, please contact us at Glean.

Get image

get/images

Serves images of various types (profile pic, background, UGC thumnail/content, etc).

SecurityBearerAuth
Request
query Parameters
cid
string

Content id to differentitate multiple images that can have the same type and datasource e.g. thumnail or image from content of UGC. It can also be empty.

ds
string

A specific datasource for which an image is requested for. The ds may have different meaning for each type and can also be empty for some.

id
string

ID, if a specific entity/type is requested. The id may have different meaning for each type. for user, it is user id, for UGC, it is the id of the content, and so on.

key
string

Primary key for the image being asked. The key is returned by the API when an image is uploaded. If key is used, other parameters should not be used.

type
string (ImageType)

The type of image requested. Supported values are listed in ImageMetadata.type enum.

Enum: "BACKGROUND" "FEEDBACK" "HEADER" "ICON" "LOGO" "UGC" "USER"
header Parameters
X-Glean-Auth-Type
string

Auth type being used to access the endpoint (should be non-empty only for global tokens).

X-Scio-Actas
string <email>

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

Responses
200

OK

Response Schema: image/*
string <binary>
400

Invalid request

401

Not Authorized

429

Too Many Requests

Request samples