recommendations
POST
https://lucidace.com /v1/projects/{project_id}/recs/build Scope experiment:writeParameters
project_idstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/recs/build"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Catalog refreshed and every placement's lists rebuilt
Example
{
"bought_with": 0,
"items": 0,
"lists": 0,
"placements": 0,
"popular": 0,
"viewed_with": 0
}Schema
bought_withintegerrequireditemsintegerrequiredCatalog items after the refresh.
listsintegerrequiredLists stored across placements.
placementsintegerrequiredpopularintegerrequiredItems with a popularity score.
viewed_withintegerrequiredAnchors with viewed-with / bought-with neighbours.
403
404
503
GET
https://lucidace.com /v1/projects/{project_id}/recs/items Scope experiment:readParameters
project_idstringpathrequiredqstringqueryItem id or name contains
limitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/recs/items"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"attributes": {},
"category": "string",
"image_url": "string",
"in_stock": true,
"item_id": "string",
"name": "string",
"price": 0,
"source": "string",
"updated_at": "2024-01-01T00:00:00Z",
"url": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
attributesobjectrequiredcategorystringimage_urlstringin_stockbooleanrequireditem_idstringrequirednamestringrequiredpricenumbersourcestringrequiredevents | feed | manual.updated_atstringrequiredurlstringnext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/recs/items/feed Scope experiment:writeParameters
project_idstringpathrequiredRequest body
application/json
datastringrequiredThe CSV text (header row first) or a JSON array of item objects.
formatstringrequiredcsv | jsonreplacebooleanRemove feed items missing from this upload (a full catalog replace).
{
"data": "string",
"format": "string",
"replace": true
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/recs/items/feed" \
-H "Content-Type: application/json" \
-d '{"data":"string","format":"string","replace":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"removed": 0,
"upserted": 0
}Schema
removedintegerrequiredupsertedintegerrequired400
403
404
PUT
https://lucidace.com /v1/projects/{project_id}/recs/items/{item_id} Scope experiment:writeParameters
project_idstringpathrequireditem_idstringpathrequiredRequest body
application/json
attributesobjectcategorystringimage_urlstringin_stockbooleannamestringpricenumberurlstring{
"attributes": {},
"category": "string",
"image_url": "string",
"in_stock": true,
"name": "string",
"price": 0,
"url": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/recs/items/{item_id}" \
-H "Content-Type: application/json" \
-d '{"attributes":{},"category":"string","image_url":"string","in_stock":true,"name":"string","price":0,"url":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"attributes": {},
"category": "string",
"image_url": "string",
"in_stock": true,
"item_id": "string",
"name": "string",
"price": 0,
"source": "string",
"updated_at": "2024-01-01T00:00:00Z",
"url": "string"
}Schema
attributesobjectrequiredcategorystringimage_urlstringin_stockbooleanrequireditem_idstringrequirednamestringrequiredpricenumbersourcestringrequiredevents | feed | manual.updated_atstringrequiredurlstring400
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/recs/items/{item_id} Scope experiment:writeParameters
project_idstringpathrequireditem_idstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/recs/items/{item_id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/recs/placements Scope experiment:readParameters
project_idstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/recs/placements"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"exclude_anchor": true,
"exclude_out_of_stock": true,
"exclude_recent": true,
"fallback": "string",
"id": "string",
"key": "string",
"limit": 0,
"name": "string",
"same_category": true,
"strategies": [
"string"
],
"strategy": "string",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
created_atstringrequireddescriptionstringrequiredexclude_anchorbooleanrequiredexclude_out_of_stockbooleanrequiredexclude_recentbooleanrequiredfallbackstringrequiredpopular | none.idstringrequiredkeystringrequiredlimitintegerrequirednamestringrequiredsame_categorybooleanrequiredstrategiesstring[]requiredstrategystringrequiredupdated_atstringrequirednext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/recs/placements Scope experiment:writeParameters
project_idstringpathrequiredRequest body
application/json
Create body; on PATCH every field is optional and absent ones keep their value.
descriptionstringexclude_anchorbooleanexclude_out_of_stockbooleanexclude_recentbooleanfallbackstringpopular | nonekeystringlimitintegernamestringsame_categorybooleanstrategiesarraystrategystringpopular | trending | viewed_with | bought_with | recently_viewed{
"description": "string",
"exclude_anchor": true,
"exclude_out_of_stock": true,
"exclude_recent": true,
"fallback": "string",
"key": "string",
"limit": 0,
"name": "string",
"same_category": true,
"strategies": [
"string"
],
"strategy": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/recs/placements" \
-H "Content-Type: application/json" \
-d '{"description":"string","exclude_anchor":true,"exclude_out_of_stock":true,"exclude_recent":true,"fallback":"string","key":"string","limit":0,"name":"string","same_category":true,"strategies":["string"],"strategy":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"exclude_anchor": true,
"exclude_out_of_stock": true,
"exclude_recent": true,
"fallback": "string",
"id": "string",
"key": "string",
"limit": 0,
"name": "string",
"same_category": true,
"strategies": [
"string"
],
"strategy": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
created_atstringrequireddescriptionstringrequiredexclude_anchorbooleanrequiredexclude_out_of_stockbooleanrequiredexclude_recentbooleanrequiredfallbackstringrequiredpopular | none.idstringrequiredkeystringrequiredlimitintegerrequirednamestringrequiredsame_categorybooleanrequiredstrategiesstring[]requiredstrategystringrequiredupdated_atstringrequired400
403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/recs/placements/{id} Scope experiment:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/recs/placements/{id}"TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/projects/{project_id}/recs/placements/{id} Scope experiment:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/recs/placements/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
Updated