Skip to main content
Nymble Commerce uses Cloudflare Images to store and serve product images via CDN. Use the Images API to upload and manage product images. Every image you upload receives a stable, CDN-backed URL that Nymble Commerce constructs automatically — no signed URLs, no expiry, no extra configuration required. Uploaded images are available at three sizes via their CDN base URL: All endpoints require a valid Bearer token with Admin privileges. The OrganizationId is read from your JWT claims.

Upload images from a local file

Upload a single image file directly from your machine. Nymble Commerce stores the image in Cloudflare Images and optionally associates it with a product by SKU.

Form fields

file
required
The image file to upload. Send as a multipart/form-data file part.
string
The product SKU to associate this image with. If supplied, Nymble Commerce links the image to the matching product after upload.
boolean
default:"false"
When true, Nymble Commerce uses the image’s file name (without extension) as the SKU and attempts to find and associate the matching product automatically. Takes precedence over sku when both are provided.

Response

Returns 204 No Content on success.

Example

Name your image files after their product SKUs and set extractSkuFromImageName: true to automate product association during bulk uploads.

Upload images from remote URLs

Provide one or more public image URLs and let Nymble Commerce fetch, process, and store them in Cloudflare Images. You can optionally associate each image with a product. This endpoint processes uploads asynchronously — it returns 204 No Content immediately and the images become available shortly after.

Body parameters

array
required
Array of image import objects.

Response

Returns 204 No Content. Image processing is asynchronous — check the List images endpoint to confirm availability.

Example

Images without a productSku and without extractSkuFromImageName: true are uploaded to your organization’s image library but are not linked to any product. You can assign them later by updating the product with the image name.

Upload a category image

Upload an image to use as a category’s display image. The image is stored in Cloudflare Images and the resulting URL is associated with the specified category. Pass the category name as a form field alongside the image file.

Form fields

file
required
The image file to upload.
string
required
The name of the category to associate this image with, e.g. Widgets. Spaces are converted to hyphens and the value is lowercased automatically.

Response

string
The name assigned to the uploaded image.
string
The CDN URL for the uploaded category image.

Example


List images

Retrieve a paginated list of all images in your organization’s library, with optional filtering and sorting.

Query parameters

integer
default:"1"
The page of results to return.
integer
default:"25"
Number of images per page.
string
default:"Name"
Field to sort on. Accepts Name or UpdatedAt.
string
default:"asc"
Sort direction. Accepts asc or desc.
array
Optional filter objects. Filter on fields like Name. Supported operators: startswith, contains, notcontains, endswith, equals, notequals.

Response

Returns a paginated result containing an array of image detail objects.

Example


Get an image

Retrieve a single image by its ID.

Path parameters

string
required
The unique identifier of the image to retrieve.

Response

Returns a single image detail object.

Example


Delete images

Permanently delete one or more images from your organization’s library by their IDs.

Body parameters

string
required
A comma-separated string of image IDs to delete, e.g. "euoGMuxTyhp,sdFg7hJkLmN".

Response

Returns 204 No Content on success.
Deleting images is permanent and cannot be undone. If a deleted image is referenced by a product’s images array, that product will have broken image links. Remove the image from any product assignments before deleting.

Example


The image object

string
Cloudflare Images unique identifier for this image.
string
The organization this image belongs to.
string
The image name (typically the file name without extension).
integer
Image height in pixels.
integer
Image width in pixels.
number
File size in bytes.
string
The original source URL the image was imported from, or "local" if uploaded directly.
string
Image format, e.g. jpg, png, webp.
boolean
Whether this image is active.
string
The CDN base URL for this image. Append /small, /medium, or /large for the appropriate size variant.
string
Direct CDN URL for the small variant.
string
Direct CDN URL for the medium variant.
string
Direct CDN URL for the large variant.
string
ISO 8601 timestamp of when the image was uploaded.
string
ISO 8601 timestamp of the most recent update.