Localess

Get Asset By ID

GET
/api/v1/spaces/{spaceId}/assets/{assetId}

The endpoint allows you to retrieve a specific Asset by Unique identifier for the Asset object.

Path Parameters

spaceId*string

Unique identifier for the Space object.

assetId*string

Unique identifier for the Asset object.

Query Parameters

w?integer

Asset width in pixels. Only applied to images; ignored otherwise.

h?integer

Asset height in pixels. Only applied to images; ignored otherwise.

q?integer

Image quality (1-100). When omitted, each encoder applies its own default: JPEG and WebP 80, AVIF 50. Ignored for PNG, which is lossless.

Range1 <= value <= 100
f?string

Output image format. Nothing is converted implicitly - omit this and the stored format is kept, though the image is still re-encoded at that format default quality. Passing webp or avif is the recommended way to reduce transfer size.

Value in

  • "webp"
  • "jpeg"
  • "png"
  • "avif"
fit?string

How the image is fitted when both w and h are given. Ignored with a single dimension, since the aspect ratio is preserved regardless.

Value in

  • "cover"
  • "contain"
  • "inside"
  • "outside"
  • "fill"
thumbnail?boolean

In case you have a video or animated image like WebP/Gif, and you wish to generate thumbnail.

Response Body

curl -X GET "https://example.com/api/v1/spaces/UdV5ygPZuOD1JMO9Qat9/assets/UdV5ygPZuOD1JMO9Qat9"
null