Library read_folders
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.
HTTPBearerAuthorizationBearer <token>parent_id?stringStart below this folder; without it the list starts at the root folders.
uuidmax_depth?integerLevels below the start, at least 1; 1 lists only the direct children. Without it the whole subtree.
int64q?stringCase-insensitive search in name and path, at most 200 characters.
limit?integerRows per page, 1 to 500, default 100.
int64cursor?stringnext_cursor of the previous page.
One page of folders and the cursor of the next page, null on the last page.
application/json- response
folders*array<>next_cursor*string|nullcurl -X GET 'https://app.copyhero.app/api/v1/library/folders'{ "folders": [ { "depth": 0, "has_children": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef", "path": "string", "position": 0, "product_count": 0 } ], "next_cursor": "string"}Library check_duplicates POST
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.
Library start_import POST
Imports 1 to 10000 product URLs into the Product Library in one transaction: one task per entry in the order of entries, all in one new batch titled "Import #<batch_id>". Values in the body override the import profile; without either, images are PNG. An entry whose link matches a product in an exclusion folder or its subfolders is skipped and costs nothing. A workflow that costs credits is checked against the quota of the whole list and reserved in the same transaction; an unpriced import queues its first jobs at once. With an Idempotency-Key, a repeat with the same body answers the first import again.