A collection or store copy runs in the background, like a task in the app. You start it, check on it until it finishes, then read what happened to each product. The copies you start through the API also show on the app’s Tasks page, and copies started in the app show here.
POST /copies
Starts a collection or store copy. Clonely checks the source the same way the copy page does, then queues the copy and answers 202 with the copy.
| Field | Type | |
|---|---|---|
kind | "collection" or "store" | Required. |
sourceUrl | string | Required. A collection URL for collection, any URL of the store for store. |
destination | object | The collection to add the products to. See destination. Leave it out to add them to no collection. |
sourcePassword | string | The storefront password, if the source store has one. Used once to log in, never stored. |
options | object | Settings for this copy only. See options. |
applyToEach | object | Category and handle text for each product. See applyToEach. |
curl https://app.clonelyapp.com/api/v1/copies \
-H "Authorization: Bearer $CLONELY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "collection",
"sourceUrl": "https://supplier.example.com/collections/boots",
"destination": { "collectionHandle": "boots" },
"options": { "onDuplicate": "update", "updateMatch": "copied", "updatePrice": true },
"applyToEach": { "handleStart": "acme-" }
}'
Only one copy of the same source into the same collection can be pending or running at a time. A second one gets 409 copy_running, and copyId in the error names the copy that is still going. The check covers existing collections and copies with no destination. A copy with newCollectionTitle always starts, since it makes a new collection.
Starting is not idempotent. If the request times out on your side, look for the copy with GET /copies before you try again.
Errors: 400 (invalid_request, invalid_source, password_required, password_wrong, collection_failed), 409 (copy_running, reconnect_required), 503 shopify_unavailable. See Errors.
GET /copies
Lists collection and store copies, newest first. Single-product copies are in GET /products.
| Query parameter | |
|---|---|
status | PENDING, IN_PROGRESS, COMPLETED, FAILED or CANCELLED. |
kind | collection or store. |
source | Part of the source URL, like supplier.example.com. |
since | Copies started at or after this time, in ISO 8601 with a time zone, like 2026-11-30T00:00:00Z. |
limit | 1 to 50. Default 25. |
cursor | nextCursor from the previous page. |
curl "https://app.clonelyapp.com/api/v1/copies?status=IN_PROGRESS&limit=10" \
-H "Authorization: Bearer $CLONELY_API_KEY"
{
"data": [ { "id": "cmx2zsul80000mn1va6so6jbt", "kind": "collection", "status": "IN_PROGRESS", "...": "..." } ],
"nextCursor": "eyJhdCI6IjIwMjYtMTEtMzBUMDg6MTQ6NTIuMTI0WiJ9"
}
GET /copies/{id}
Returns one copy. A copy that doesn’t exist, or belongs to another store, is 404 not_found.
curl https://app.clonelyapp.com/api/v1/copies/cmx2zsul80000mn1va6so6jbt \
-H "Authorization: Bearer $CLONELY_API_KEY"
GET /copies/{id}/products
Lists the result for each product, newest first. It is the Task Log on the task page, with the reason for products that failed or were saved with issues.
| Query parameter | |
|---|---|
result | Only this result, like failed. |
limit | 1 to 50. Default 25. |
cursor | nextCursor from the previous page. |
curl "https://app.clonelyapp.com/api/v1/copies/cmx2zsul80000mn1va6so6jbt/products?result=failed" \
-H "Authorization: Bearer $CLONELY_API_KEY"
{
"data": [
{
"handle": "acme-trail-boot",
"storeHandle": null,
"sourceHandle": "trail-boot",
"result": "failed",
"message": "Title can't be blank",
"at": "2026-11-30T08:14:58.878Z"
}
],
"nextCursor": null
}
| Field | |
|---|---|
handle | The URL handle this copy gives the product. |
storeHandle | The handle of the matching product in your store, when it differs from handle (a match by SKU). Set for updates and for skips in update mode; null for skips in skip mode. |
sourceHandle | The product’s handle in the source store. |
result | One of the product results. |
message | Why the product failed or was saved with issues, when known. Usually Shopify’s own error text. |
at | When the result was recorded. |
There is one row per recorded result. A copy that was paused and then resumed can record the same product more than once.
POST /copies/{id}/cancel
Cancels a pending or running copy and returns it. No request body.
The copy stops after the product it is working on. Products already copied stay in your store. Cancelling a copy that is already CANCELLED returns it unchanged with 200. A COMPLETED or FAILED copy can’t be cancelled and gets 409 not_cancellable.
curl -X POST https://app.clonelyapp.com/api/v1/copies/cmx2zsul80000mn1va6so6jbt/cancel \
-H "Authorization: Bearer $CLONELY_API_KEY"
The copy object
{
"id": "cmx2zsul80000mn1va6so6jbt",
"kind": "collection",
"status": "COMPLETED",
"message": null,
"sourceUrl": "https://supplier.example.com/collections/boots",
"destinationCollectionId": "gid://shopify/Collection/520855322904",
"productsCopied": 41,
"productsTotal": 44,
"totalIsEstimate": false,
"outcomes": {
"added": 38, "updated": 3, "savedWithIssues": 0,
"skippedAlreadyExists": 2, "skippedUnchanged": 0, "skippedNotCopied": 0,
"failed": 1, "waitingForVariantLimit": 0
},
"options": { "publish": true, "onDuplicate": "update", "...": "..." },
"applyToEach": { "categoryId": null, "categoryName": null, "handleStart": "acme-", "handleEnd": null },
"retryAfter": null,
"stoppedAtProductLimit": false,
"createdAt": "2026-11-30T08:14:52.124Z",
"updatedAt": "2026-11-30T08:16:21.430Z"
}
| Field | |
|---|---|
id | The copy’s ID. |
kind | collection or store. |
status | See statuses. |
message | Why the copy is paused, retrying or failed, as the task page shows it. null otherwise. |
sourceUrl | The URL the copy reads from. |
destinationCollectionId | The collection products are added to, or null. |
productsCopied | Products added, updated or saved with issues so far. It counts copy events, so a copy that was paused and resumed can count a product twice. For exact numbers, use outcomes. |
productsTotal | 0 until the copy starts reading the source. While the copy runs, it is the number of products in the source. When it completes, it is the number of products the copy processed. |
totalIsEstimate | true until the copy is COMPLETED, while productsTotal can still change. |
outcomes | Distinct products for each result, as on the task page. One product can count under two results (for example added, then skippedAlreadyExists after a resume), so the numbers can add up to more than the number of products. failed leaves out products that later got another result. |
options | Every option the copy runs with, saved settings and overrides combined. null for copies started in the app without advanced options, which read the saved settings when they start. |
applyToEach | categoryId, categoryName, handleStart and handleEnd, or null for each one not used. |
retryAfter | When a paused copy resumes. null if it isn’t paused. |
stoppedAtProductLimit | true if the copy stopped at Shopify’s limit of 25,000 products for a storefront listing. The source may have more products; copy its collections one by one to get the rest. |
createdAt, updatedAt | ISO 8601 times. |
Statuses
| Status | |
|---|---|
PENDING | Queued, or paused until retryAfter (for example at Shopify’s daily variant limit). message says why it is paused. |
IN_PROGRESS | Copying products. |
COMPLETED | Finished. Some products may still have failed; check outcomes. |
FAILED | Stopped on an error. message says why. |
CANCELLED | Cancelled in the app or through the API. |
Product results
| Result | Task page label | |
|---|---|---|
added | Added | Created in your store. |
updated | Updated | Already in your store and updated, because onDuplicate is update. |
savedWithIssues | Saved with issues | Created or updated, but part of it failed. message says what. |
skippedAlreadyExists | Skipped (already exists) | Already in your store, and onDuplicate is skip. |
skippedUnchanged | Skipped (unchanged since the last copy) | Nothing changed at the source since the last copy, so there was nothing to update. |
skippedNotCopied | Skipped (no record of a Clonely copy) | A matching product is in your store, but Clonely didn’t copy it and updateMatch is copied. |
failed | Failed | Not copied. message says why, when known. |
waitingForVariantLimit | Waiting for variant limit | Waiting for Shopify’s daily variant limit to reset. The copy carries on by itself. |