curl --request POST \
--url https://api.neuronsearchlab.com/v1/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "7f3a2c9e",
"name": "Wireless Headphones",
"description": "Noise-cancelling Bluetooth headphones.",
"metadata": {
"category": "electronics",
"brand": "Acme",
"price": 10999,
"currency": "usd"
}
}
'
{
"id": 3187,
"object": "item",
"name": "Wireless Headphones",
"description": "Noise-cancelling Bluetooth headphones.",
"metadata": {
"category": "electronics",
"brand": "Acme"
},
"active": true,
"created": 1777478400,
"updated_at": 1777478500
}
Items
Create items
Create catalog items for recommendation.
POST
/
v1
/
items
curl --request POST \
--url https://api.neuronsearchlab.com/v1/items \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "7f3a2c9e",
"name": "Wireless Headphones",
"description": "Noise-cancelling Bluetooth headphones.",
"metadata": {
"category": "electronics",
"brand": "Acme",
"price": 10999,
"currency": "usd"
}
}
'
{
"id": 3187,
"object": "item",
"name": "Wireless Headphones",
"description": "Noise-cancelling Bluetooth headphones.",
"metadata": {
"category": "electronics",
"brand": "Acme"
},
"active": true,
"created": 1777478400,
"updated_at": 1777478500
}
Create one item or an array of items. NSL generates each integer item ID; do not provide your own top-level ID.
Set
metadata.source_item_id to a stable source identifier when repeated imports should update the same item. The same source ID within your workspace resolves to the existing NSL ID. Other metadata keys, such as a custom sku, do not enable this matching by themselves.
Store the returned integer IDs for event tracking, related-item requests and direct updates. New items are active; change availability with Update item.
See Catalogue for ingestion paths and field guidance.Authorizations
Body
application/json
- object
- object[]
Response
Created item or created item list
- Option 1
- Option 2
Was this page helpful?

