Library check_duplicates
Advisory and read-only: which of 1 to 10000 product URLs already sit in 1 to 100 of the organization's folders, matched by source identity (Shopify handle, AliExpress item id, otherwise origin and path). Each URL and folder pair reports at most one member, the oldest. A URL sharing an identity with an earlier one is reported against the first such URL. Results refer to URLs by their index in source_urls. Never blocks an import.
HTTPBearerAuthorizationBearer <token>application/json- body
folder_ids*array<string>source_urls*array<string>The folder matches, URL-major in the order of folder_ids, and the URLs that repeat an earlier one.
application/json- response
folder_matches*array<>selection_duplicates*array<>curl -X POST 'https://app.copyhero.app/api/v1/library/folders/duplicate-check' \ -H 'Content-Type: application/json' \ -d '{ "folder_ids": [ "string" ], "source_urls": [ "string" ]}'{ "folder_matches": [ { "candidate_index": 0, "existing_product": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "source_type": "string", "source_url": "string", "thumbnail_url": "string", "title": "string" }, "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901" } ], "selection_duplicates": [ { "candidate_index": 0, "duplicate_of_index": 0 } ]}Check Status GET
Previous Page
Library read_folders GET
The organization's Product Library folders in tree order as flat rows: from the root folders, or from below parent_id, depth counted from there. Each row carries the path from the root joined by " / ", the number of products directly in the folder and whether it has subfolders. q filters on name and path, case-insensitive. Pages of limit rows; pass next_cursor as cursor for the next page.