Skip to Content
iAdvizeDocs

List a site's product imports

Returns the product feed imports of the site, newest first, each with its state, outcome, counts and the bounds it reached. `limit` is 1 to 50 (20 by default). Each import carries the feed address it read as `sourceUrl`.

GET
/api/v1/sites/{siteId}/products/imports

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

A WorkOS org-scoped API key, created from the dashboard's organization settings page. Identifies the tenant every read and write is scoped to. Missing, malformed, unknown, revoked, expired, or non-organization-owned keys all return 401 (no distinction, so the response can't be used to probe which keys or org ids exist).

Path Parameters

siteId*string

The site id (prefixed site_). A site id that isn't yours is a 404, same as any other cross-tenant id.

Query Parameters

limit?integer

How many imports, 1 to 50.

Range1 <= value <= 50
Default20

Response Body

The site's imports, newest first.

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://example.com/api/v1/sites/string/products/imports'
Example Response
{  "data": [    {      "id": "kimp_01kvnwmagvf27rc9cze5rm9e1r",      "state": "completed",      "outcome": "completed",      "counts": {        "found": 1240,        "created": 1100,        "updated": 120,        "refused": {          "no_image": 14,          "invalid_price": 6        },        "parseErrors": 0,        "markedAbsent": 3,        "purged": 0      },      "boundsReached": [],      "refusedExamples": [],      "sourceUrl": "https://feeds.example.net/products.csv",      "startedBy": "api",      "startedAt": "2026-11-20T09:00:00.000Z",      "endedAt": "2026-11-20T09:04:12.000Z"    }  ]}

List a site's stored products

Returns the products stored from the site's product feed, 50 a page by default (`limit` is 1 to 100), sorted by `title` (default) or `importedAt`. Only live products are listed unless `state=absent` asks for the ones the last complete import no longer held. Each product carries the date of the import that last held it. A cursor is bound to the site, the filter, the sort and the order it was issued for. Prices are in minor units; a product the feed gives no availability for reads `availability: null`, never `false`. Titles and descriptions come from the merchant's feed.

Import products from a feed

Starts a product feed import for the site and answers at once with the import. The server downloads the https feed address in the background (a Google Merchant style CSV or TSV, optionally gzipped, up to 10,000 products), stores its products and marks absent the ones a complete import no longer finds. A site holds one feed: a new address replaces the set at the next complete import. Follow the import at `GET .../products/imports/{importId}`. The address is judged before anything is queued or fetched; each refusal has its own code. A second import while one runs is refused with `product_import_already_running`. The answer is `202` when the import was handed to the background, and `200` with the import closed as `failed` when it could not be started. Recorded in the audit log, attributed to the API key; the audit entry does not hold the feed address, which the import keeps and returns as `sourceUrl`.