Create a catalog source
Products live in a catalog source attached to one of your sites. Create one with your account token; the response includes the numeric source id you will use in every product request.
curl -X POST "$SETCH_API/api/catalog/sources/" \
-H "Authorization: Token $SETCH_TOKEN" \
-H "Content-Type: application/json" \
-d '{"site_key": "site_abc123", "name": "Acme product catalog", "source_type": "api"}'Shape your product records
Each product is identified by a stable external_id within its source, and a new product needs a non-empty title. Everything else — description, brand, categories, images, price, availability, attributes, and variants — is optional but makes answers better.
- Send prices as decimal strings or integers, never floating-point numbers, with a three-letter ISO 4217 currency.
- Availability is one of
in_stock,out_of_stock,preorder,backorder,discontinued, orunknown. - Image and product URLs must be absolute.
Upsert in batches
Send between 1 and 200 products per bulk request, wrapped in a products array. Reuse the same external_id on every sync so updates replace the existing record instead of creating a new one.
curl -X POST "$SETCH_API/api/catalog/sources/$SOURCE_ID/products/bulk/" \
-H "Authorization: Token $SETCH_TOKEN" \
-H "Content-Type: application/json" \
--data @products.jsonEach bulk request returns a sync job with per-product results and errors. Row-level errors can sit alongside successful rows, so check both job.status — succeeded, partial, or failed — and the errors list.
Keep the catalog current
Deleting a product soft-deletes it rather than removing it for good. To retire products that disappeared from your source, send a full batch to the sync endpoint with both delete_missing and complete_snapshot set to true — and only when that batch truly is your complete list. Missing products are only marked deleted if the batch has no errors.
Setch accepts normalized JSON records today. If your products come from a CSV or XML feed, fetch and normalize it in your own integration, then send it with a bulk upsert. Native Shopify and WooCommerce connectors are not available yet.
Search from your server
Catalog search takes a text query plus structured filters such as availability, price range, brand, and category, and returns up to 100 results per page.
curl -G "$SETCH_API/api/catalog/search/" \
-H "Authorization: Token $SETCH_TOKEN" \
--data-urlencode "site_key=site_abc123" \
--data-urlencode "q=waterproof jacket" \
--data-urlencode "max_price=150"Search uses deterministic text matching and filters rather than semantic ranking. Because it needs your account token, call it from your server; if you need search in the browser, proxy it through your app and apply your own authorization and rate limits.