Skip to main content
POST
Upsert products

Overview

Synchronize your entire product catalog with a product block. This endpoint creates new products, updates existing ones, and deletes products not in the request - providing a complete catalog sync. ⚠️ Important: Products not included in the request will be deleted from the block.

Use Cases

  • Full Catalog Sync: Replace entire catalog with current inventory
  • Nightly Sync: Complete synchronization from e-commerce platform
  • Inventory Management: Ensure only available products are in catalog
  • Clean Sync: Remove discontinued products automatically

Authentication

Path Parameters

Request Body

Array of product objects (no limit):
⚠️ DELETES PRODUCTS: Any products in the block that are NOT in this request will be permanently deleted.

Example Request

Behavior

What Happens

  1. Creates: Products with new external_id are created
  2. Updates: Products with existing external_id are updated
  3. Deletes: Products in block but NOT in request are deleted
  4. AI Embeddings: All products are re-indexed for AI search

Example Scenario

Before: Block has products A, B, C Request: Send products B (updated), D (new) After: Block has products B (updated), D (new) Deleted: Products A and C

Error Responses

Headers

x-api-key
string
required

API key needed to authorize the request

Path Parameters

promptBlockId
string
required

The prompt block ID to upsert the products

Body

application/json

The payload to send with the products

name
string
required
Minimum string length: 1
description
string
required

In the description you only need to add words that help the AI do a semantic search, avoide placing here prices, links or other type of data that is not natural language

Required string length: 1 - 8192
type
enum<string>
required
Available options:
shopify,
vambe,
woocommerce,
axis,
vtex,
jumpseller,
odoo,
tiendanube,
magento,
mercado_libre,
custom_app
currency
enum<string>
required
Available options:
CLP,
USD,
MXN,
BRL,
UF,
ARS,
COP,
UYU,
PEN,
EUR,
HNL,
BOB,
PYG,
GTQ,
NIO,
PAB,
CRC,
DOP,
VES,
BZD,
SRD,
GYD
price
number
required
Required range: x > 0
external_id
string
required
metadata
object[]
required
file_url
string
sku
string

Response

Products upserted successfully.