π½ POST /api/public/product/upsert/{promptBlockId} β Upsert Products
Creates a list of products and their embeddings for a specific prompt block. Any product not included in the payload will be deleted, making this endpoint ideal for full refreshes.
Click to expand full details
πΉ URL
πΉ Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
promptBlockId | string | β | ID of the prompt block using the products |
πΉ Headers
| Name | Type | Required | Description |
|---|---|---|---|
x-api-key | string | β | Your API key for authentication |
πΉ Body Parameters
Send a list of product objects to define the current catalog. Each object typically contains:πΉ Example Request
πΉ Responses
| Code | Description |
|---|---|
| 201 | Products upserted successfully |
| 400 | Bad request (malformed body) |
| 401 | Unauthorized (missing key) |
π½ GET /api/public/order/{id}/product β Get Product by Order ID
Retrieves product information tied to a specific order.
Click to expand full details
πΉ URL
πΉ Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | β | Order ID to retrieve the product from |
πΉ Example Request
πΉ Response Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | OK | Product found |
| 404 | Not Found | No product found for the given order |
π¨π½βπ» Integration Guide π Pipelines Ask AI
