POST
/
api
/
public
/
product
/
create
/
{promptBlockId}
Create products
curl --request POST \
  --url https://api.vambe.me/api/public/product/create/{promptBlockId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '[
  {
    "name": "<string>",
    "file_url": "<string>",
    "description": "<string>",
    "type": "shopify",
    "currency": "CLP",
    "price": 1,
    "external_id": "<string>",
    "metadata": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ]
  }
]'

Headers

x-api-key
string
required

API key needed to authorize the request

Path Parameters

promptBlockId
string
required

The prompt block ID to create the products

Body

application/json · object[]

The payload to send with the products

name
string
required
Minimum 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
currency
enum<string>
required
Available options:
CLP,
ARS,
COP,
MXN,
EUR,
USD,
UF,
PEN,
BRL,
HNL
price
number
required
Required range: x > 0
external_id
string
required
metadata
object[]
required
file_url
string

Response

Products created successfully.