Pular para o conteúdo principal
POST
/
api
/
workspace
/
{workspaceId}
/
catalog
/
products
Create product
curl --request POST \
  --url https://app.alana.shopping/api/workspace/{workspaceId}/catalog/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "price": 1,
  "catalog_id": "<string>",
  "description": "<string>",
  "brand": "<string>",
  "category_path": [
    "<string>"
  ],
  "original_price": 1,
  "currency": "USD",
  "primary_image_url": "<string>",
  "sku": "<string>",
  "gtin": "<string>",
  "availability": "in_stock",
  "attributes": {}
}
'
{
  "id": "<string>",
  "workspaceId": "<string>",
  "title": "<string>",
  "price": 123,
  "currency": "<string>",
  "availability": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "catalogId": "<string>",
  "description": "<string>",
  "brand": "<string>",
  "categoryPath": [
    "<string>"
  ],
  "originalPrice": 123,
  "primaryImageUrl": "<string>",
  "sku": "<string>",
  "gtin": "<string>",
  "attributes": {},
  "optimizationScore": 50,
  "feedReady": true,
  "createdBy": "<string>"
}

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication via Auth0. Users authenticate through Auth0 Universal Login. Include the access token in the Authorization header: Authorization: Bearer <token>

Parâmetros de caminho

workspaceId
string
obrigatório

The workspace ID

Pattern: ^ws_[a-z0-9]+$

Corpo

application/json
title
string
obrigatório
Required string length: 1 - 500
price
number
obrigatório
Intervalo obrigatório: x >= 0
catalog_id
string | null
description
string | null
Maximum string length: 5000
brand
string | null
category_path
string[]
original_price
number | null
Intervalo obrigatório: x >= 0
currency
string
padrão:USD
primary_image_url
string<uri> | null
sku
string | null
gtin
string | null
availability
string
padrão:in_stock
attributes
object

Resposta

Product created successfully

id
string
obrigatório
workspaceId
string
obrigatório
title
string
obrigatório
price
number<float>
obrigatório
currency
string
obrigatório
availability
string
obrigatório
createdAt
string<date-time>
obrigatório
updatedAt
string<date-time>
obrigatório
catalogId
string | null
description
string | null
brand
string | null
categoryPath
string[]
originalPrice
number<float> | null
primaryImageUrl
string<uri> | null
sku
string | null
gtin
string | null
attributes
object
optimizationScore
integer

Product optimization score (0-100)

Intervalo obrigatório: 0 <= x <= 100
feedReady
boolean

Whether product is ready for feed export

createdBy
string
Last modified on April 13, 2026