CopyHero

Library check_duplicates

POST
/api/v1/library/folders/duplicate-check

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.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
folder_ids*array<string>
source_urls*array<string>

Response Body

The folder matches, URL-major in the order of folder_ids, and the URLs that repeat an earlier one.

application/json
  1. response
folder_matches*array<>
selection_duplicates*array<>
Example Request
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"  ]}'
Example Response
{  "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    }  ]}