| Variant | URL suffix |
|---|---|
| Small | {baseUrl}/small |
| Medium | {baseUrl}/medium |
| Large | {baseUrl}/large |
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
The image file to upload. Send as a
multipart/form-data file part.The product SKU to associate this image with. If supplied, Nymble Commerce links the image to the matching product after upload.
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
Returns204 No Content on success.
Example
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 returns204 No Content immediately and the images become available shortly after.
Body parameters
Array of image import objects.
Response
Returns204 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
The image file to upload.
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
The name assigned to the uploaded image.
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
The page of results to return.
Number of images per page.
Field to sort on. Accepts
Name or UpdatedAt.Sort direction. Accepts
asc or desc.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
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
A comma-separated string of image IDs to delete, e.g.
"euoGMuxTyhp,sdFg7hJkLmN".Response
Returns204 No Content on success.
Example
The image object
Cloudflare Images unique identifier for this image.
The organization this image belongs to.
The image name (typically the file name without extension).
Image height in pixels.
Image width in pixels.
File size in bytes.
The original source URL the image was imported from, or
"local" if uploaded directly.Image format, e.g.
jpg, png, webp.Whether this image is active.
The CDN base URL for this image. Append
/small, /medium, or /large for the appropriate size variant.Direct CDN URL for the small variant.
Direct CDN URL for the medium variant.
Direct CDN URL for the large variant.
ISO 8601 timestamp of when the image was uploaded.
ISO 8601 timestamp of the most recent update.