CopyHero

Import To Library

POST
/api/v1/library/mcp/imports

Import product links or watched products into the Product Library: one task per entry, all in one new batch, optionally with a workflow and folders. Costs credits when the workflow is priced.

Query Parameters

idempotency_key?|

Send a fresh value (e.g. a uuid) per import and reuse it on retry: a repeat with the same body returns the first import.

Request Body

application/json
  1. body

Only the tool's argument list: Rust validates every field.

entries?Entries

1 to 10000 entries, each {"url": "https://..."} or {"watched_product_id": ""}.

folder_ids?Folder Ids

Product Library folder ids (uuids) to file into.

task_blueprint_id?Task Blueprint Id

Workflow (blueprint) id to run on every product.

import_profile_id?Import Profile Id

Import profile (uuid) whose settings apply.

exclude_library_folder_ids?Exclude Library Folder Ids

Skip entries whose link already sits in these folders or below.

exclude_by_image?Exclude By Image

Also skip products matching by image.

image_output?Image Output

{"format": "png"} or {"format": "webp", "webp_quality": 1-100}.

options?Options

Import options of the workflow.

source_extras?Source Extras

One object or null per entry, in entry order.

[key: string]?any

Response Body

Successful Response

response?unknownapplication/json
Example Request
curl -X POST 'https://app.copyhero.app/api/v1/library/mcp/imports' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
null