recommendations

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-recommendations"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/8728367b-f531-4013-ae22-403cc6d4ddb0/social-card.svg?v=3e7ae33eec8b" alt="recommendations" width="600" height="315"></a>
POSThttps://lucidace.com/v1/projects/{project_id}/recs/buildScope experiment:write

Parameters

project_idstringpathrequired

Code 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_withintegerrequired
itemsintegerrequired
Catalog items after the refresh.
listsintegerrequired
Lists stored across placements.
placementsintegerrequired
popularintegerrequired
Items with a popularity score.
viewed_withintegerrequired
Anchors with viewed-with / bought-with neighbours.
403
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/recs/itemsScope experiment:read

Parameters

project_idstringpathrequired
qstringquery
Item id or name contains
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
attributesobjectrequired
categorystring
image_urlstring
in_stockbooleanrequired
item_idstringrequired
namestringrequired
pricenumber
sourcestringrequired
events | feed | manual.
updated_atstringrequired
urlstring
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/recs/items/feedScope experiment:write

Parameters

project_idstringpathrequired

Request body

application/json
datastringrequired
The CSV text (header row first) or a JSON array of item objects.
formatstringrequired
csv | json
replaceboolean
Remove 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
removedintegerrequired
upsertedintegerrequired
400
403
404
PUThttps://lucidace.com/v1/projects/{project_id}/recs/items/{item_id}Scope experiment:write

Parameters

project_idstringpathrequired
item_idstringpathrequired

Request body

application/json
attributesobject
categorystring
image_urlstring
in_stockboolean
namestring
pricenumber
urlstring
{
  "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
attributesobjectrequired
categorystring
image_urlstring
in_stockbooleanrequired
item_idstringrequired
namestringrequired
pricenumber
sourcestringrequired
events | feed | manual.
updated_atstringrequired
urlstring
400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/recs/items/{item_id}Scope experiment:write

Parameters

project_idstringpathrequired
item_idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/recs/placementsScope experiment:read

Parameters

project_idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
created_atstringrequired
descriptionstringrequired
exclude_anchorbooleanrequired
exclude_out_of_stockbooleanrequired
exclude_recentbooleanrequired
fallbackstringrequired
popular | none.
idstringrequired
keystringrequired
limitintegerrequired
namestringrequired
same_categorybooleanrequired
strategiesstring[]required
strategystringrequired
updated_atstringrequired
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/recs/placementsScope experiment:write

Parameters

project_idstringpathrequired

Request body

application/json

Create body; on PATCH every field is optional and absent ones keep their value.

descriptionstring
exclude_anchorboolean
exclude_out_of_stockboolean
exclude_recentboolean
fallbackstring
popular | none
keystring
limitinteger
namestring
same_categoryboolean
strategiesarray
strategystring
popular | 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_atstringrequired
descriptionstringrequired
exclude_anchorbooleanrequired
exclude_out_of_stockbooleanrequired
exclude_recentbooleanrequired
fallbackstringrequired
popular | none.
idstringrequired
keystringrequired
limitintegerrequired
namestringrequired
same_categorybooleanrequired
strategiesstring[]required
strategystringrequired
updated_atstringrequired
400
403
404
409
GEThttps://lucidace.com/v1/projects/{project_id}/recs/placements/{id}Scope experiment:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/recs/placements/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

404
DELETEhttps://lucidace.com/v1/projects/{project_id}/recs/placements/{id}Scope experiment:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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