Contents

GET /products/$IMAGE_HASH/image#

Returns a stored product image by its content hash. The hash is the lowercase hexadecimal SHA-256 digest of the base64-encoded image data supplied in image during product creation or update.

Required permission: none (public endpoint)

Response:

200 OK:

The body is a ProductImageResponse.

400 Bad Request:

The hash is not a valid hex-encoded SHA-256 digest.

404 Not found:

No image is known for the given hash.

interface ProductImageResponse {
  // Data URL containing the product image as stored in the backend.
  image: ImageDataUrl;
}